Can anybody tell me how to open Data usage from android settings from my app? I do not now which Intent I should call.
Asked
Active
Viewed 4,672 times
2 Answers
3
It works well for using the below code in my project:
Intent intent = new Intent(Intent.ACTION_MAIN);
intent.setComponent(new ComponentName("com.android.settings",
"com.android.settings.Settings$DataUsageSummaryActivity"));
intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_CLEAR_TOP);
startActivity(intent);
And you can see the package info from here: https://github.com/CyanogenMod/android_packages_apps_Settings/blob/cm-12.0/AndroidManifest.xml

Geek4IT
- 592
- 5
- 13
-1
public static final String ACTION_MANAGE_NETWORK_USAGE
Activity Action: Show settings for managing network data usage of a specific application. Applications should define an activity that offers options to control data usage.
Constant Value: android.intent.action.MANAGE_NETWORK_USAGE
Also maybe this link will help you.

Nikos Hidalgo
- 3,666
- 9
- 25
- 39

Val
- 4,225
- 8
- 36
- 55
-
ACTION_MANAGE_NETWORK_USAGE brings up a menu that lists applications with that action in their intent filters, I want to only open that activity – moallemi Dec 10 '13 at 08:47
-
What applicatins are in that list? – Val Dec 10 '13 at 08:51
-
applications that has "ACTION_MANAGE_NETWORK_USAGE" in their AndroidManifest.xml file – moallemi Dec 10 '13 at 08:52
-
Sure but are there Settings or System Data Usage? – Val Dec 10 '13 at 08:54
-
Try to choose it. Possible you'll see activity that you need. – Val Dec 10 '13 at 09:05