开发者

How to create a "stealth"-like Android app?

开发者 https://www.devze.com 2023-03-04 13:29 出处:网络
I\'d like to have my application run in somewhat of a \"stealth\" mode.Two main things I\'d like to do:

I'd like to have my application run in somewhat of a "stealth" mode. Two main things I'd like to do:

  1. Not show app icon in installed app list (drawer?) programmatically.
  2. Launch app via dial pad (some special number combination)

I know I can remove the launcher intent filter to hide the icon:

<category android:name="android.intent.category.LAUNCHER" />

But I'd like to do this programmatically, based on app settings. I guess I could work around that, b开发者_JS百科ut the biggest issue for me is figuring out how to launch the app via dial pad. I've googled around and searched SO, but haven't really found anything to help with that.

Thanks in advance.


  • You can programmatically remove icon from launcher as described here
  • If you want to launch app as call to magic number, it's quite simple using BroadcastReceivers for outgoing call, you can get solution from Right Number app
0

精彩评论

暂无评论...
验证码 换一张
取 消