0

I'm curious if there's a method to start up an application whenever the device has been plugged into a power source. I've done a bit of Google searching but all I can find is detecting when a device is plugged in while an application is already running.

Anyone have any resources on the subject?

Spencer Ruport
  • 34,865
  • 12
  • 85
  • 147

1 Answers1

0

The action for the USB is:

android.intent.action.UMS_CONNECTED

There's a tutorial about usb connection here

SERPRO
  • 10,015
  • 8
  • 46
  • 63