Hi all
 My use case is to launch one of settings app screen when I receive a
certain event in idle state.
For which, I added my new intent to PhoneAppBroadcastReceiver() in
PhoneApp.java (looks like this receiver handles the misc intents)
But when i call startActivity(), The phone seems to go into a panic

ex. startActivity(new Intent(this, NetworkSetting.class));
My questions are

is this the right approach to go about ?
If so
1. How can I launch the activity inside of broadcastReceiver?

secondly
2. How do i verify if the activity i want to start is already started?

Can the  NEW_TASK_LAUNCH be used to verify this ,

Could some one point me to some sample code if any exists ?

Thanks
Prem Thilagar
--~--~---------~--~----~------------~-------~--~----~
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