Hello all, Is it possible to switch sub-activity within an Intent Receiver? I wanted to use an IntentReceiver as a top-level dispatcher class that I can use as a way to delegate master actions to different Activities.
I have set up an intent receiver object in my manifest file that listens for PHONE_STATE, and that works fine. The problem is, the only way I know of to switch to a different action is by calling context.startActivity with a NEW_TASK option as the task launch option. This doesn't quite do what I wanted - it starts a brand new instance of a sub activity, which goes away when clicking "BACK". I have added a "registerReceiver" to my main subclass, but the problem is, it receives a "PHONE_STATE" action each and every time it launches, with the same exact data, and same exact parameters that it got from the last PHONE_STATE action. Is there a smarter way to switch between subactivities from within an IntentReceiver? Is this done by broadcasting the intent instead? If someone has an example, I'd love to see it. Any help would be greatly appreciated. Thanks!! --~--~---------~--~----~------------~-------~--~----~ 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 [EMAIL PROTECTED] Announcing the new M5 SDK! http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~----------~----~----~----~------~----~------~--~---