As far as I can see from the docs, createPendingResult works with onActivityResult, which works with startActivityForResult. In other words, it only works with an Activity, not a Service. It's too bad they don't have startServiceForResult. The broadcast/receive approach looks interesting.
It's just amazing how hard this is with Android. Marshalling and displaying data from web services has got to be one of the most common patterns in modern programming. > Use private > broadcasts, or createPendingResult(): > > http://github.com/commonsguy/cw-advandroid/tree/master/AdvServices/Re...http://github.com/commonsguy/cw-advandroid/tree/master/AdvServices/Re... > > There is also a ResultReceiver you could use, though I haven't gotten > that to work well. > > Basically, you pass enough information in the Intent to the > IntentService so it knows how to get data back to the requestor. > > -- > Mark Murphy (a Commons > Guy)http://commonsware.com|http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy -- 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

