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.
Thanks in advance.
An Intent is a messaging object you can use to request an action from another app component. Although intents facilitate communication between components in several ways, there are three fundamental use cases: Starting an activity. An Activity represents a single screen in an app.
Use Data Saver modeUnless you have a much older version of Android (earlier than 8.0), your phone should come equipped with Data Saver mode, which kicks in when you're not on Wi-Fi and ensures that apps and services that are not being actively used won't be able to stream data in the background.
Content consumption is a strong signal of buyer intent. The easiest way to access this data is to buy it from a third-party vendor. These platforms collect and aggregate online research activity from a data-sharing co-op that includes thousands of B2B websites, media publishers, and other sources.
Try...
Intent intent = new Intent();
intent.setComponent(new ComponentName(
"com.android.settings",
"com.android.settings.Settings$DataUsageSummaryActivity"));
startActivity(intent);
This worked for me. I found it from the link to data usage in the KitKat QuickSettings source code.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With