0

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

DeRagan
  • 22,827
  • 6
  • 41
  • 50
paul
  • 51
  • 2
  • 11

1 Answers1

1

full solution:

Intent aa = new Intent(android.provider.Settings.ACTION_SOUND_SETTINGS);
startActivityForResult(aa,0);
Jon Lin
  • 142,182
  • 29
  • 220
  • 220
Zeev
  • 11
  • 1