Wednesday, March 21, 2012

[android-developers] How to wait for file scanning finished before starting the launcher app

Hi there

I am currently working on an Android launcher application, and I would like to play some intro video before the launcher starts. Knowing that playing video directly from assets or raw folder does not work on some devices, I include the video file in assets folder, and let the app copy the video file to SD card before playing it.

However, since launcher is always the first application to be started upon bootup, there is a media scanning process right after the bootup. So the problem is when the launcher is started, the SD card file system may still being scanned and not ready to be accessed, therefore the video cannot be played.

Any suggestions and comments are appreciated!


--
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+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

No comments:

Post a Comment