Re: [android-developers] Start an external activity from a BroadcastReceiver

2011-06-09 Thread Dianne Hackborn
You are using hand-written constants all over the place. The SDK has a constant for the main action -- Intent.ACTION_MAIN. There are Intent and ComponentName constructors to build references to activities through the Context and their Class. You don't even need to use ACTION_MAIN if you are just

[android-developers] Start an external activity from a BroadcastReceiver

2011-06-09 Thread Marc
Hello folks, after googling all the day, I have solution to actually start an external activity from a receiver. In the end I added a service to the package, so the receiver starts the service and the service should start the activity. Of course that doesn't sound very efficient at all, but in add