可以在一个后退按钮preSS可以从服务检测? [英] Can the a backbutton press be detected from a service?

查看:72
本文介绍了可以在一个后退按钮preSS可以从服务检测?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

能否从服务检测到后退按钮preSS?

由于头说,真的吗?我做了很多使用Google,但无法找到一个明确的答案。 也没有办法做到这一点?

解决方案
  

能否从服务检测到后退按钮preSS?

没有,对不起。如果您在前台的活动,该活动可以检测到返回preSS。如果你没有在前台的活动,返回按钮无关,与你的code。

Can the a backbutton press be detected from a service?

As the header says really? I have done a lot of googling but can't find a definitive answer. Nor a way to do it?

解决方案

Can the a backbutton press be detected from a service?

No, sorry. If you have an activity in the foreground, the activity can detect a BACK press. If you do not have an activity in the foreground, the BACK button has nothing to do with your code.

这篇关于可以在一个后退按钮preSS可以从服务检测?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆