I have never really looked at LVL. Using a bound service there is annoying.
Anyway, you're going to have to block the IntentService background thread, which sucks IMHO, but I can't quite see how to avoid it. So, here's what I'd do: -- Override onStartCommand() to call bindService() on your IntentService to bind to the LVL, then chain to the superclass -- In the background thread, do the rest of your work, then block until the service has been bound (CountDownLatch, Object#wait(), whatever) -- In onServiceConnected(), do whatever you need to do to allow the background thread to proceed (details depends on whether you are using CountDownLatch, Object#wait(), whatever) -- When you are done with the synchronous LVL work, call unbindService() on your IntentService On Mon, Feb 6, 2012 at 9:39 PM, Zsolt Vasvari <[email protected]> wrote: > Well, here's what I am doing: > > I have a Daily Processing alarm, which among many other (synchronous) > things, as the last thing it does is check of the app's license via the LVL > service. For this, I bind to the LVL service and then as far as I am > concerned, I don't really care what happens and my IntentService can > terminate. > > It SEEMS this is OK, but what's your opinion? > > -- > You received this message because you are subscribed to the Google > Groups "Android Developers" group. > To post to this group, send email to [email protected] > To unsubscribe from this group, send email to > [email protected] > For more options, visit this group at > http://groups.google.com/group/android-developers?hl=en -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy _The Busy Coder's Guide to Android Development_ Version 3.7 Available! -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

