开发者

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

开发者 https://www.devze.com 2023-02-03 19:41 出处:网络
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.

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


full solution:

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

精彩评论

暂无评论...
验证码 换一张
取 消