Since the API apparently doesn't support a synchronous status, here's another, somewhat more complicated option. Add a service to your app that receives the status updates and stores them in the app's preferences, or somesuch. Then your app can get the most recent value synchronously. Note that the service would only run when an update is broadcast, but even if your app's activities are not in the foreground. The complicated part is handling all the corner cases - reboot, app update, etc.
-- 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