Android-以编程方式检查开发人员选项? [英] Android - Programmatically check developer options?

查看:99
本文介绍了Android-以编程方式检查开发人员选项?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个使用意图用相机制作照片的应用程序,但是最近我遇到了使用背景处理限制"之类的开发人员选项的用户关闭了所有后台应用程序的问题-因此,我的应用程序除了调用onPause外还被杀死了和onResume.我希望是否有可能检查此选项是否已关闭,以便我可以提示用户正确的对话框.

I have a application thats uses intent to make photos with camera, but lately i have met a problem for users using developer options like 'Background process limit' that they turn off all background apps - so my app is killed besides calling onPause and onResume. I'd wish if theres any possibility to check if this options is turn off and so I could prompt user a proper dialog.

推荐答案

您可以使用

startActivity(new Intent(android.provider.Settings.ACTION_APPLICATION_DEVELOPMENT_SETTINGS));

这篇关于Android-以编程方式检查开发人员选项?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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