0

How to start an activity in my broadcast receiver class?

view story
linux-howto

http://stackoverflow.com – In my broadcast receiver activity I need to run some code when an alert is fired which I can get working no problem, but I need to make sure my Map activity is on the screen when this code is run, so I am trying to start the Map activity with an intent but this crashes the application and I do not know why. Here is the broadcast receiver class: public class ProximityIntentReceiver extends BroadcastReceiver { private static final int NOTIFICATION_ID = 1000; Map mp = new Map(); String con; int idpassed = 0; @Override public void onReceive(Context context, Intent intent) (HowTos)