开发者

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


full solution:

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜