-4
我想通过我的应用程序打开设置。我已经试过这个代码。但它不起作用。我想通过我的应用程序打开设置。我怎样才能做到这一点?谢谢
startActivityForResult(new Intent(android.provider.Settings.ACTION_DATA_ROAMING_SETTINGS), 0);
我想通过我的应用程序打开设置。我已经试过这个代码。但它不起作用。我想通过我的应用程序打开设置。我怎样才能做到这一点?谢谢
startActivityForResult(new Intent(android.provider.Settings.ACTION_DATA_ROAMING_SETTINGS), 0);
试试这个
Intent intent=new Intent(Settings.ACTION_DATA_ROAMING_SETTINGS);
ComponentName cName = new ComponentName("com.android.phone","com.android.phone.Settings");
intent.setComponent(cName);
和this
指这一个http://developer.android.com/reference/android/provider/Settings.html – Aravin