Hi Frank

I tried to use the PendingIntent but won't work for me may be i was doing it
wrong, Basically i need to start the simple background service that will get
the updates periodically from webserver and look for new coupons there.if he
found any new coupon then i simply need to present user a chioce either to
view the updated coupon or not,


Basically i want to start a new activity from a background service,Is that
possible ?,Please help.

On Sun, Jul 18, 2010 at 12:16 AM, Frank Weiss <[email protected]> wrote:

> 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 [email protected]
> To unsubscribe from this group, send email to
> [email protected]<android-developers%[email protected]>
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en




-- 
*Thanks and Regards
Ajmer Singh*

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

Reply via email to