Vishesh Joshi
Vishesh Joshi

Reputation: 1611

Open Default Browser Settings page programmatically

Is there a way to open the settings page of the default browser for Android programmatically from an application?

Through some intent? or Maybe some other way to do it?

Upvotes: 0

Views: 2811

Answers (1)

Kartheeswaran
Kartheeswaran

Reputation: 76

Yes, we can use this code for call Browser settings page from our application

 Intent i = new Intent(Intent.ACTION_MANAGE_NETWORK_USAGE);
// It launches Chooser without specify the package name becz ACTION_MANAGE_NETWORK_USUAGE  // action is used in Other apps also.
 i.setPackage("com.android.browser");
 startActivity(i);

Note: it supports from APi14 why this means that Settings page is not accessible from outside of Browser .From Api14 they provide intent-action for this.based on this action we can access it from outside

Upvotes: 1

Related Questions