You may need to add a new activity flag before calling startActivity():

myIntent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);

-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of Priyank
Sent: Wednesday, August 18, 2010 3:59 PM
To: Android Developers
Cc: [email protected]
Subject: [android-developers] Starting an Activity from a callback class

Hi,
I have an activity class(Application Class ) which calls a service
class(Service Class) and closes.
The service class takes about 5 seconds to complete its task and calls
a method which is present in another class(Callback Class). Now
according to the result, the callback needs to notify the Application
class.

Once i get the callback from the service, I tried calling a method
defined in the Application class. In this method i create a new intent
of Application class and call startActivity(Application Class).
But this is not working. Can anyone tell where i am going wrong and
what can I do to solve this issue.

Thanks,
Priyank

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