I can launch my app by:
- Tapping on its icon in launcher
- Registering “visible” intent-filter (I mean – user clicks for example “Send with..” then chooses my app)
- Entering numeral code in dialer and “call” – “invisible” intent, user cannot choose app, he just enters code
Are there any other ways to launch my app? (I’m mostly interested in something else like “invisible” intent from paragraph 3).
- Assume that we have clean device only with default system apps (most popular of Google apps are also counted as default) and my app
- Ways for usual users are preferred, but more difficult approaches will be also useful
- Variants, which can be used on one device (no other devices needed to approach) are preferred, but “more-than-one-device variants” will also be useful.
You can also run your app from Web browser :
You can launch your app on NFC transaction :
Into mainfest
<uses-feature android:name="android.hardware.nfc" />Read more about this here : LINK
You can also register a receiver and launch app when you receive sms with secret code in it :
Required permission :
<uses-permission android:name="android.permission.RECEIVE_SMS"></uses-permission>You can also register a receiver and launch app when you receive call from selected phone number :
You need to this
READ_PHONE_STATEpermissionYou can also use shell to do this (phone must be rooted):
For example :
Colleague
"Arpan"wrote :I give you code sample :
"Arpan"wrote also :You can paste this to
TimerI have edited Arpan’s post, i added link about Gesture Search in Android® .
You can launch application using widget (when user click this, app will launch),
I give you widget class code snipet, more you can find here :
check if Headphones are plugged in
Whenever Headphones are plugged in an intent (
ACTION_HEADSET_PLUG) will be fired. Check for this viaBroadcastReceiverand start AcitivityAnd in Manifest: