Brook MG
Brook MG

Reputation: 671

Display connectivity setting dialog on Android

How is it possible to trigger a connectivity setting dialog on Android like what's shown in the picture below?

Connectivity setting dialog

I suspect it's an Intent fired and not a custom API by One UI. android.providers.Settings class has some predefined Actions to open some settings pages but couldn't quite figure out which one to use to achieve this functionality.

Upvotes: 2

Views: 293

Answers (1)

David Wasser
David Wasser

Reputation: 95578

Connect the phone to your PC. Do whatever you do to get this dialog to appear. Use the following command:

adb shell dumpsys activity activities

This will show you all running tasks. You should be able to find the task with the settings Activity and you should be able to see the Intent that was used to open it.

Upvotes: 1

Related Questions