And even if you hide the progress controls (start/stop) you definitely cannot prevent the user from exiting the playback through the home button, or even a reboot of the device. Then you lost control, and the video file is still on the device. You could think about doing a pure in-memory streaming but that might only be viable over WiFi.
On Thursday, May 3, 2012 8:56:00 PM UTC-4, TreKing wrote: > On Thu, May 3, 2012 at 11:05 AM, Rohit <rdx2...@gmail.com> wrote: > >> I want to delete video file automatically after watching. How can i do >> this >> > > Define what "after watching" means, then write code to detect when the > video is done being watched, according to your logic. Then write code to > delete the file when your code that determines it's done being watched > executes. > > > ------------------------------------------------------------------------------------------------- > TreKing <http://sites.google.com/site/rezmobileapps/treking> - Chicago > transit tracking app for Android-powered devices > > -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en