You already asked this exact same question from a different email address. Please don't start multiple threads for the same question.
On Tue, Apr 7, 2009 at 11:26 AM, yeons...@gmail.com <yeons...@gmail.com> wrote: > > hello, > > I'd like to launch one of settings app screen when I received a > certain event in idle state. > For that, I added my new intent to PhoneAppBroadcastReceiver() in > PhoneApp.java > (because it seems this receiver handles the misc intents) > But if I called startActivity(), seems phone goes to panic. > ex. startActivity(new Intent(this, NetworkSetting.class)); > > 1. How can I launch the activity inside of bradcastreceiver? > > 2. If the activity which I want to start is already started, how can I > check it? > I read can use NEW_TASK_LAUNCH but don't know how to use it. > If you have a sample code, could you post it? > > Thank you! > > > > > > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---