开发者

Prevent android app from showing up in switcher

I have an app with an SMS receiver set up, but even if the sms receive function is turned off using the package manager, the app will go to the top of recent applications (when holding the home button) if a sms is received. How can I stop this behavior?

Thanks for any help 开发者_JAVA百科in advance.

Cheers!


How are you handling receipt of SMS messages? It sounds like you might have somehow registered your Activity as the receiver for these.

Broadcast receivers don't have a UI, so they shouldn't show up in the activity switcher. Can you confirm that you're not using a broadcast receiver?

http://developer.android.com/reference/android/content/BroadcastReceiver.html

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜