I run a service when the device boots and that service just loads an image from sd card and makes it wallpaper. When the device starts i get an error. But after the sd card finishes the loading the service sets the image as wallpaper fine.
<action android:name="android.intent.action.BOOT_COMPLETED" />
I start the service like this ^ and i want to ask if there is a way to start the service after sd card finishes loading.
You can wait for the SD card to load. One way is to use the
android.intent.action.MEDIA_MOUNTEDaction.Another way is to poll up to some maximum and give up if not mounted:
Hope this helps.