其中意图设置 - 数据使用情况 [英] Which Intent for Settings - Data usage
本文介绍了其中意图设置 - 数据使用情况的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我花了几个小时的寻找正确的意图发动数据使用活动在Android中设置。偏偏我什么也没找到(Web和也在这里)。
I spent several hours by searching correct Intent for launching Data usage Activity in Android Settings. Unfortunetly i found nothing (on web and also here).
我也试过反射(私人领域的情况),但也无果而终。我会很高兴的任何帮助。
I also tried reflection (in a case of private field) but also without result. I will be glad for any help.
在此先感谢。
推荐答案
试试...
Intent intent = new Intent();
intent.setComponent(new ComponentName(
"com.android.settings",
"com.android.settings.Settings$DataUsageSummaryActivity"));
这为我工作。我从奇巧QuickSettings源$ C $ c的连接到数据的使用发现了它。
This worked for me. I found it from the link to data usage in the KitKat QuickSettings source code.
这篇关于其中意图设置 - 数据使用情况的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文