You should be able to do it the same way you would call it from any other
activity. Only before you call startActivity be sure to set the
FLAG_ACTIVITY_NEW_TASK setting like below:

Intent beginActivity //so on
beginActivity.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
startActivity(beginActivity);

I think thats how I did it in my code. I am not infort of that PC right now
to confirm though. Hopefully this will help.

Tommy

-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of Kartik Bansal
Sent: Friday, November 19, 2010 1:32 PM
To: Android Developers
Subject: [android-developers] calling activity from service

hi..

i am writing an app in which i need a background service to call an
activity and show some result..

pls share some example..


thnx a lot..
kartik..

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

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