how can I get access to the Android OS settings from source code? I get access to some settings like check Internet connection
private void checkIntenet() {
connectivityManager = (ConnectivityManager) getSystemService(Context.CONNECTIVITY_SERVICE);
networkInfo = null;
networkInfo = connectivityManager.getActiveNetworkInfo();
if (networkInfo != null) {
stringBuilder.append(getResources().getString(R.string.activeNetwork) + "\n");
stringBuilder.append(getResources().getString(R.string.available) + " " + networkInfo.isAvailable() + "\n");
stringBuilder.append(getResources().getString(R.string.connected) + " " + networkInfo.isConnected() + "\n");
stringBuilder.append(getResources().getString(R.string.extra) + "" + networkInfo.getExtraInfo() + "\n" + "\n");
} else {
Toast.makeText(this, "networkInfo is null", Toast.LENGTH_SHORT).show();
}
}
but I can't get access to Android OS settings
There are few hidden API you can access those apis here http://devmaze.wordpress.com/2011/01/18/using-com-android-internal-part-1-introduction/