problem about android-settings-Collection of common programming errors
Mr_and_Mrs_D
android android-intent android-activity android-settings
The majority of the Activity Actions (used to launch various Settings activities) in the Settings class come with a warning :In some cases, a matching Activity may not exist, so ensure you safeguard against this.So how do I safeguard against this ?try {final Intent i = new Intent(Settings. ACTION_WIRELESS_SETTINGS); // sayi.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK); // not sure if neededstartActivity(i); } catch (Exception e) { // what should I catch here // I would hate to catch Throwable, but sh
Web site is in building