paul
paul

Reputation: 51

How to start an activity which display "Sound & Display " screen

I am new in android development. I am making an application using intent which to show a sound and display settings screen. I used the following code to have it.

Intent viewIntent = new Intent(Settings.ACTION_SOUND_SETTINGS);
       this.startActivityForResult(viewIntent,0); 

But it doesnt work. It give me force close the application.

If anyone help me about this..

Thanks

Upvotes: 0

Views: 1281

Answers (1)

Zeev
Zeev

Reputation: 11

full solution:

Intent aa = new Intent(android.provider.Settings.ACTION_SOUND_SETTINGS);
startActivityForResult(aa,0);

Upvotes: 1

Related Questions