On Tue, Apr 7, 2009 at 11:55 AM, Prem Thilagar <[email protected]> wrote:
>
> 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

What do you mean by that?

> ex. startActivity(new Intent(this, NetworkSetting.class));

When starting an activity from a broadcastreceiver, you need to
specify the FLAG_ACTIVITY_NEW_TASK intent flag.

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