I want to open an activity in android as soon as either charger connects or disconnects. I have used a Broadcast Receiver which is working well.
Please tell me can i launch an activity directly from Broadcast Receiver, how? OR I have to implement a service which is looking after the charging state and opens an activity as soon as the charger state changes. Please guide me.
Thanks in advance.