Launching mobile network settings screen programmatically

They won’t work because there was a bug that was fixed I think in 2.3. See https://review.source.android.com/#/c/22229/ You can bypass this using (for NETWORK_OPERATOR_SETTINGS) Intent intent = new Intent(Intent.ACTION_MAIN); intent.setClassName(“com.android.phone”, “com.android.phone.NetworkSetting”); startActivity(intent); Replace NetworkSetting with Settings for DATA_ROAMING_SETTINGS there’s another similar solution described in Error opening mobile network settings menu UPDATE I recently tested this … Read more

How to Enable Android Download Manager

Please edit my answer if is not valid Check if download manager is available: int state = this.getPackageManager().getApplicationEnabledSetting(“com.android.providers.downloads”); if(state==PackageManager.COMPONENT_ENABLED_STATE_DISABLED|| state==PackageManager.COMPONENT_ENABLED_STATE_DISABLED_USER ||state==PackageManager.COMPONENT_ENABLED_STATE_DISABLED_UNTIL_USED){ // Cannot download using download manager } else { request.setDestinationInExternalPublicDir(Environment.DIRECTORY_DOWNLOADS, fileName); request.setDescription(fileName); manager.enqueue(request); } And the solution for trying to enable download manager is: packageName = “com.android.providers.downloads” try { //Open the specific App Info … Read more

How to open application permission window in app settings programmatically [duplicate]

This is not possible. You can open the App settings screen but not the permissions setting screen. Refer to this question for more explanations. Here I am sharing code to open application setting screen, Intent intent = new Intent(); intent.setAction(Settings.ACTION_APPLICATION_DETAILS_SETTINGS); Uri uri = Uri.fromParts(“package”, activity.getPackageName(), null); intent.setData(uri); context.startActivity(intent); For more you can refer Open Application … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)