Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Which Intent for Settings - Data usage

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.

like image 289
Simon Dorociak Avatar asked Sep 26 '13 08:09

Simon Dorociak


People also ask

What is intent data type?

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.

Should data saver be on or off?

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.

How do I get intent data?

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.


1 Answers

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.

like image 138
gsysko Avatar answered Oct 02 '22 11:10

gsysko