它的意图应该打开数据使用屏幕(从设置) [英] Which intent should open Data Usage screen (from settings)

查看:416
本文介绍了它的意图应该打开数据使用屏幕(从设置)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想从一个意图打开数据使用屏幕。
我搜索了android.provider.Settings类适当的意图。
尝试:

I wish to open the Data Usage screen from an intent. I've searched the android.provider.Settings class for an appropriate intent. Tried :

new Intent(android.provider.Settings.ACTION_NETWORK_OPERATOR_SETTINGS)
new Intent(android.provider.Settings.ACTION_DATA_ROAMING_SETTINGS)

这并不导致数据使用量。

Which doesn't lead to the the data usage.

在这里输入的形象描述

我很清楚所有这些都有这个问题的环节,但没有有响应。
<一href=\"http://stackoverflow.com/questions/20489414/how-to-open-system-data-usage-activity-in-android\">How在Android开放系统数据使用活动?
<一href=\"http://stackoverflow.com/questions/28873756/android-programming-to-open-data-usage-setting-page\">Android编程打开数据使用设置页面
等等...

I'm well aware of all the links which has this question, but none has a response. How to open System Data Usage Activity in android? Android programming to open Data Usage setting page etc...

推荐答案

您可以用它来实现上述!我测试了这个在奇巧棒棒糖设备,在两个人其工作

You can use this to achieve the above !! I tested this on Kitkat and lollipop devices , On both of them its working

    Intent intent = new Intent();
    intent.setComponent(new ComponentName("com.android.settings","com.android.settings.Settings$DataUsageSummaryActivity"));
    startActivity(intent);

这篇关于它的意图应该打开数据使用屏幕(从设置)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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