How to open system data usage activity in android?

Can someone tell me how to open using data from Android settings from my application? I’m not right now, what intention should I call.

enter image description here

+2
android android-intent
source share
2 answers

It works well for using the code below 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 information from here: https://github.com/CyanogenMod/android_packages_apps_Settings/blob/cm-12.0/AndroidManifest.xml

+3
source share

Here are the Android intentions and find ACTION_MANAGE_NETWORK_USAGE Intent.

Also maybe this link will help you.

0
source share

All Articles