I think you should know that an Android service is not meant to
interact with the user directly, as with a dialog.

Aside from questioning why the user input is needed in the midst of
the service and whether the entire background process needs to be
performed in a service, here's what I'd recommend:

Split the service into two or three parts. The first would be up to
the point of requesting the user's choice, the other one or two would
be the branches of the user choice. Use a notification (pending
intent, handler) at the branch part (the Android way of having a
service ask or provide information to the user). You can use a single
service instead of several by using a state machine pattern (the
service does different things depending on its state).

hth

-- 
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

Reply via email to