My app supports users down to 1.6 (API level 4) and I want to use WakefulIntentService for scheduled background checks of required data. From a blog post on Dec. 28 2010, Mark indicates the reasoning for dropping support in 0.4.0 and later. From what I can tell, the only real concern with the method used in 0.3.0 is handling a crashing service. If I were to make sure the service never crashed (try not to giggle) would that mean I could safely use 0.3.0, or are other issues afoot?
Share
:: covers mouth, stifles a pending guffaw ::
Uh, well, it’s more that I’m not supporting it on Android 1.x.
Since there have been other modifications, though, you might consider updating your copy of the current stuff to (try to) work on Android 1.x rather than using the older implementation. That should involve:
Getting rid of the
@Overrideannotation ononStartCommand(), as that might give youVerifyErrorswhen trying to load it on older Android versionsAdding
onStart()that just callsonStartCommand()and eats the return valueTwo other notes:
It’s better to ask questions regarding CommonsWare-specific stuff on the
cw-androidGoogle Group. I don’t read every question on StackOverflow, but I don’t miss anything oncw-android.I’ll be making a minor update to
WakefulIntentServiceby early next week, so keep tabs on the project.