开发者

access android global setting via code

开发者 https://www.devze.com 2023-02-12 08:29 出处:网络
i am working on a simple home launcher, but a cant find a way to access global android setting like wireless,application etc, i\'ve alredy read http://developer.android.com/reference/android/provider/

i am working on a simple home launcher, but a cant find a way to access global android setting like wireless,application etc, i've alredy read http://developer.android.com/reference/android/provider/Settings.Sy开发者_JAVA技巧stem.html but couldnt find the answer,please someone tell me how to do that, sorry for my bad english


This should do it:

startActivity(new Intent(android.provider.Settings.ACTION_SETTINGS));


Two ways:

  1. You read android's src code and you check which intent is sent.
  2. Go to the setting menu you are looking and check in Logcat which intent is used.
0

精彩评论

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

关注公众号