防止 Android 应用程序出现在切换器中
我有一个设置了短信接收器的应用程序,但即使使用包管理器关闭了短信接收功能,如果收到短信,该应用程序也会转到最近的应用程序的顶部(按住主页按钮时)。我怎样才能阻止这种行为?
感谢您提前提供的任何帮助。
干杯!
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 in advance.
Cheers!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
你们如何处理短信的接收?听起来您可能已经以某种方式将您的活动注册为这些的接收者。
广播接收器没有 UI,因此它们不应显示在活动切换器中。您能确认您没有使用广播接收器吗?
http://developer.android.com/reference/android/content/BroadcastReceiver。 html
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