[Android Apps and Games] cn0MMnb:
The only 2 ticks in the settinmgs are "enable" and "2g when on wifi".

For the 2g mode I choose 2g and for 3g the nexus 5 appropriate lte/wcdma/gsm.

When I connect to wifi with charger unplugged, it goes to 2G

When I connect to wifi with charger plugged, it stays at 4G

When I connect to wifi with charger unplugged and it went to 2G and then I plug in the charger, it seems to stay at 2g

03-20 02:16:22.566 I/Toggle2G(1529): show notification running=true, noWifi=true, noData=false, saveBattery=false, alwaysSwitchTo3G=false
03-20 02:16:22.566 I/Toggle2G(1529): show notification running=true, wait=false, waitNotify=false, show=false
03-20 02:17:43.656 I/Toggle2G(1529): show notification running=true, noWifi=true, noData=false, saveBattery=false, alwaysSwitchTo3G=false
03-20 02:17:43.656 I/Toggle2G(1529): show notification running=true, wait=false, waitNotify=false, show=false
03-20 02:18:29.366 I/Toggle2G(1529): show notification running=true, noWifi=true, noData=false, saveBattery=false, alwaysSwitchTo3G=false
03-20 02:18:29.366 I/Toggle2G(1529): show notification running=true, wait=false, waitNotify=false, show=false
03-20 02:19:48.696 I/Toggle2G(1529): show notification running=true, noWifi=true, noData=false, saveBattery=false, alwaysSwitchTo3G=false
03-20 02:19:48.696 I/Toggle2G(1529): show notification running=true, wait=false, waitNotify=false, show=false
03-20 02:21:13.336 I/Toggle2G(1529): show notification running=true, noWifi=true, noData=false, saveBattery=false, alwaysSwitchTo3G=false
03-20 02:21:13.336 I/Toggle2G(1529): show notification running=true, wait=false, waitNotify=false, show=false
03-20 02:22:37.646 I/Toggle2G(1529): show notification running=true, noWifi=true, noData=false, saveBattery=false, alwaysSwitchTo3G=false
03-20 02:22:37.646 I/Toggle2G(1529): show notification running=true, wait=false, waitNotify=false, show=false
03-20 02:24:04.376 I/Toggle2G(1529): show notification running=true, noWifi=true, noData=false, saveBattery=false, alwaysSwitchTo3G=false
03-20 02:24:04.376 I/Toggle2G(1529): show notification running=true, wait=false, waitNotify=false, show=false
03-20 02:25:33.386 I/Toggle2G(1529): show notification running=true, noWifi=true, noData=false, saveBattery=false, alwaysSwitchTo3G=false
03-20 02:25:33.386 I/Toggle2G(1529): show notification running=true, wait=false, waitNotify=false, show=false
03-20 02:27:13.366 I/Toggle2G(1529): show notification running=true, noWifi=true, noData=false, saveBattery=false, alwaysSwitchTo3G=false
03-20 02:27:13.366 I/Toggle2G(1529): show notification running=true, wait=false, waitNotify=false, show=false
03-20 02:28:42.426 I/Toggle2G(1529): show notification running=true, noWifi=true, noData=false, saveBattery=false, alwaysSwitchTo3G=false
03-20 02:28:42.426 I/Toggle2G(1529): show notification running=true, wait=false, waitNotify=false, show=false
03-20 02:30:09.726 I/Toggle2G(1529): show notification running=true, noWifi=true, noData=false, saveBattery=false, alwaysSwitchTo3G=false
03-20 02:30:09.726 I/Toggle2G(1529): show notification running=true, wait=false, waitNotify=false, show=false
03-20 02:31:42.696 I/Toggle2G(1529): show notification running=true, noWifi=true, noData=false, saveBattery=false, alwaysSwitchTo3G=false
03-20 02:31:42.696 I/Toggle2G(1529): show notification running=true, wait=false, waitNotify=false, show=false
03-20 02:31:47.486 I/Toggle2G(1529): show notification running=true, noWifi=true, noData=false, saveBattery=false, alwaysSwitchTo3G=false
03-20 02:31:47.486 I/Toggle2G(1529): show notification running=true, wait=false, waitNotify=false, show=false
03-20 02:31:47.516 I/Toggle2G(1529): show notification running=true, noWifi=true, noData=false, saveBattery=false, alwaysSwitchTo3G=false
03-20 02:31:47.516 I/Toggle2G(1529): show notification running=true, wait=false, waitNotify=false, show=false
03-20 02:31:47.546 I/Toggle2G(1529): show notification running=true, noWifi=true, noData=false, saveBattery=false, alwaysSwitchTo3G=false
03-20 02:31:47.546 I/Toggle2G(1529): show notification running=true, wait=false, waitNotify=false, show=false
03-20 02:31:47.686 I/Toggle2G(1529): show notification running=true, noWifi=true, noData=false, saveBattery=false, alwaysSwitchTo3G=false
03-20 02:31:47.686 I/Toggle2G(1529): show notification running=true, wait=false, waitNotify=false, show=false
03-20 02:31:47.716 I/Toggle2G(1529): set2g false, true, false, false
03-20 02:31:47.716 I/Toggle2G(1529): delay or low battery check false, false,true,false
03-20 02:31:47.716 I/Toggle2G(1529): set2gNow
03-20 02:31:47.716 I/Toggle2G(1529): show notification running=true, noWifi=true, noData=false, saveBattery=false, alwaysSwitchTo3G=false
03-20 02:31:47.726 I/Toggle2G(1529): show notification running=true, wait=false, waitNotify=false, show=false
03-20 02:31:47.726 I/Toggle2G(1529): set2g false, true, false, false
03-20 02:31:47.726 I/Toggle2G(1529): delay or low battery check false, false,true,false
03-20 02:31:47.726 I/Toggle2G(1529): set2gNow
03-20 02:31:47.726 E/Toggle2G(1529): Idle Queue
03-20 02:31:47.726 I/Toggle2G(1529): set2g because battery level changed and delayScreenOffEnough=false, delayWifiEnough=true, saveBattery=false, checkDataOff=false, isWifiOn=true, isBackgroundDataEnabled=true, KBps=0
03-20 02:31:47.726 I/Toggle2G(1529): show notification running=true, noWifi=true, noData=false, saveBattery=false, alwaysSwitchTo3G=false
03-20 02:31:47.726 I/Toggle2G(1529): show notification running=true, wait=false, waitNotify=false, show=false
03-20 02:31:47.736 I/Toggle2G(1529): set2g false, true, false, false
03-20 02:31:47.736 I/Toggle2G(1529): delay or low battery check false, false,true,false
03-20 02:31:47.736 I/Toggle2G(1529): set2gNow
03-20 02:31:47.746 I/Toggle2G(1529): 2g=false (9)
03-20 02:31:47.746 I/Toggle2G(1529): show notification running=true, noWifi=true, noData=false, saveBattery=false, alwaysSwitchTo3G=false
03-20 02:31:47.746 I/Toggle2G(1529): show notification running=true, wait=false, waitNotify=false, show=false
03-20 02:31:47.746 I/Toggle2G(1529): switching from 9 to 1
03-20 02:31:47.756 E/Toggle2G(1529): setMobileDataEnabled Error!
03-20 02:31:47.756 E/Toggle2G(1529): java.lang.NoSuchMethodException: setMobileDataEnabled [boolean]
03-20 02:31:47.756 E/Toggle2G(1529): at java.lang.Class.getConstructorOrMethod(Class.java:472)
03-20 02:31:47.756 E/Toggle2G(1529): at java.lang.Class.getDeclaredMethod(Class.java:640)
03-20 02:31:47.756 E/Toggle2G(1529): at com.mb.toggle2g.SetPhoneSettingsV2.setMobileDataEnabled(SetPhoneSettingsV2.java:646)
03-20 02:31:47.756 E/Toggle2G(1529): at com.mb.toggle2g.SetPhoneSettingsV2$SetHandler.handleMessage(SetPhoneSettingsV2.java:297)
03-20 02:31:47.756 E/Toggle2G(1529): at android.os.Handler.dispatchMessage(Handler.java:102)
03-20 02:31:47.756 E/Toggle2G(1529): at android.os.Looper.loop(Looper.java:136)
03-20 02:31:47.756 E/Toggle2G(1529): at android.app.ActivityThread.main(ActivityThread.java:5081)
03-20 02:31:47.756 E/Toggle2G(1529): at java.lang.reflect.Method.invokeNative(Native Method)
03-20 02:31:47.756 E/Toggle2G(1529): at java.lang.reflect.Method.invoke(Method.java:515)
03-20 02:31:47.756 E/Toggle2G(1529): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:791)
03-20 02:31:47.756 E/Toggle2G(1529): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:607)
03-20 02:31:47.756 E/Toggle2G(1529): at dalvik.system.NativeStart.main(Native Method)
03-20 02:31:52.776 I/Toggle2G(1529): Data Setting is now true
03-20 02:31:52.776 E/Toggle2G(1529): start timeout = 10177
03-20 02:31:52.866 I/Toggle2G(1529): 2g=true (1)
03-20 02:31:52.866 I/Toggle2G(1529): show notification running=true, noWifi=true, noData=false, saveBattery=false, alwaysSwitchTo3G=false
03-20 02:31:52.866 I/Toggle2G(1529): show notification running=true, wait=false, waitNotify=false, show=false
03-20 02:31:52.926 I/Toggle2G(1529): onDataConnectionStateChanged state=0, networkType=0
03-20 02:31:52.936 I/Toggle2G(1529): 2g=true (1)
03-20 02:31:52.936 I/Toggle2G(1529): show notification running=true, noWifi=true, noData=false, saveBattery=false, alwaysSwitchTo3G=false
03-20 02:31:52.936 I/Toggle2G(1529): show notification running=true, wait=false, waitNotify=false, show=false
03-20 02:31:57.796 I/Toggle2G(1529): Trying to enable Data Setting
03-20 02:31:57.796 E/Toggle2G(1529): setMobileDataEnabled Error!
03-20 02:31:57.796 E/Toggle2G(1529): java.lang.NoSuchMethodException: setMobileDataEnabled [boolean]
03-20 02:31:57.796 E/Toggle2G(1529): at java.lang.Class.getConstructorOrMethod(Class.java:472)
03-20 02:31:57.796 E/Toggle2G(1529): at java.lang.Class.getDeclaredMethod(Class.java:640)
03-20 02:31:57.796 E/Toggle2G(1529): at com.mb.toggle2g.SetPhoneSettingsV2.setMobileDataEnabled(SetPhoneSettingsV2.java:646)
03-20 02:31:57.796 E/Toggle2G(1529): at com.mb.toggle2g.SetPhoneSettingsV2.checkToRestoreData(SetPhoneSettingsV2.java:572)
03-20 02:31:57.796 E/Toggle2G(1529): at com.mb.toggle2g.SetPhoneSettingsV2$SetHandler.handleMessage(SetPhoneSettingsV2.java:472)
03-20 02:31:57.796 E/Toggle2G(1529): at android.os.Handler.dispatchMessage(Handler.java:102)
03-20 02:31:57.796 E/Toggle2G(1529): at android.os.Looper.loop(Looper.java:136)
03-20 02:31:57.796 E/Toggle2G(1529): at android.app.ActivityThread.main(ActivityThread.java:5081)
03-20 02:31:57.796 E/Toggle2G(1529): at java.lang.reflect.Method.invokeNative(Native Method)
03-20 02:31:57.796 E/Toggle2G(1529): at java.lang.reflect.Method.invoke(Method.java:515)
03-20 02:31:57.796 E/Toggle2G(1529): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:791)
03-20 02:31:57.796 E/Toggle2G(1529): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:607)
03-20 02:31:57.796 E/Toggle2G(1529): at dalvik.system.NativeStart.main(Native Method)
03-20 02:31:57.796 I/Toggle2G(1529): Data Setting is now true
03-20 02:32:00.130 I/Toggle2G(1529): onDataConnectionStateChanged state=0, networkType=2
03-20 02:32:00.140 I/Toggle2G(1529): 2g=true (1)
03-20 02:32:00.140 I/Toggle2G(1529): show notification running=true, noWifi=true, noData=false, saveBattery=false, alwaysSwitchTo3G=false
03-20 02:32:00.140 I/Toggle2G(1529): show notification running=true, wait=false, waitNotify=false, show=false
03-20 02:32:13.439 I/Toggle2G(1529): show notification running=true, noWifi=true, noData=false, saveBattery=false, alwaysSwitchTo3G=false
03-20 02:32:13.439 I/Toggle2G(1529): show notification running=true, wait=false, waitNotify=false, show=false
03-20 02:32:13.469 I/Toggle2G(1529): show notification running=true, noWifi=true, noData=false, saveBattery=false, alwaysSwitchTo3G=false
03-20 02:32:13.469 I/Toggle2G(1529): show notification running=true, wait=false, waitNotify=false, show=false
03-20 02:32:13.499 I/Toggle2G(1529): show notification running=true, noWifi=true, noData=false, saveBattery=false, alwaysSwitchTo3G=false
03-20 02:32:13.499 I/Toggle2G(1529): show notification running=true, wait=false, waitNotify=false, show=false
03-20 02:32:13.849 I/Toggle2G(1529): show notification running=true, noWifi=true, noData=false, saveBattery=false, alwaysSwitchTo3G=false
03-20 02:32:13.849 I/Toggle2G(1529): show notification running=true, wait=false, waitNotify=false, show=false
03-20 02:32:13.869 I/Toggle2G(1529): show notification running=true, noWifi=true, noData=false, saveBattery=false, alwaysSwitchTo3G=false
03-20 02:32:13.869 I/Toggle2G(1529): show notification running=true, wait=false, waitNotify=false, show=false
03-20 02:32:34.219 I/ActivityManager(11074): Timeline: Activity_launch_request id:com.mb.toggle2g time:10214067
03-20 02:32:34.219 I/ActivityManager(859): START u0 {act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10200000 cmp=com.mb.toggle2g/.Toggle2G bnds=[540,960][540,960]} from pid 11074
03-20 02:32:34.519 I/Toggle2G(1529): loading preferences
03-20 02:32:34.519 I/Toggle2G(1529): using shared preferences
03-20 02:32:34.519 E/SharedPreferencesImpl(1529): Couldn't create directory for SharedPreferences file /data/data/com.mb.toggle2g/shared_prefs/com.mb.toggle2g_preferences.xml
03-20 02:32:34.549 E/SharedPreferencesImpl(1529): Couldn't create directory for SharedPreferences file /data/data/com.mb.toggle2g/shared_prefs/com.mb.toggle2g_preferences.xml
03-20 02:32:34.549 E/SharedPreferencesImpl(1529): Couldn't create directory for SharedPreferences file /data/data/com.mb.toggle2g/shared_prefs/com.mb.toggle2g_preferences.xml
03-20 02:32:34.559 E/SharedPreferencesImpl(1529): Couldn't create directory for SharedPreferences file /data/data/com.mb.toggle2g/shared_prefs/com.mb.toggle2g_preferences.xml
03-20 02:32:34.559 E/SharedPreferencesImpl(1529): Couldn't create directory for SharedPreferences file /data/data/com.mb.toggle2g/shared_prefs/com.mb.toggle2g_preferences.xml
03-20 02:32:34.559 E/SharedPreferencesImpl(1529): Couldn't create directory for SharedPreferences file /data/data/com.mb.toggle2g/shared_prefs/com.mb.toggle2g_preferences.xml
03-20 02:32:34.559 E/SharedPreferencesImpl(1529): Couldn't create directory for SharedPreferences file /data/data/com.mb.toggle2g/shared_prefs/com.mb.toggle2g_preferences.xml
03-20 02:32:34.559 E/SharedPreferencesImpl(1529): Couldn't create directory for SharedPreferences file /data/data/com.mb.toggle2g/shared_prefs/com.mb.toggle2g_preferences.xml
03-20 02:32:34.559 E/SharedPreferencesImpl(1529): Couldn't create directory for SharedPreferences file /data/data/com.mb.toggle2g/shared_prefs/com.mb.toggle2g_preferences.xml
03-20 02:32:34.559 E/SharedPreferencesImpl(1529): Couldn't create directory for SharedPreferences file /data/data/com.mb.toggle2g/shared_prefs/com.mb.toggle2g_preferences.xml
03-20 02:32:34.559 E/SharedPreferencesImpl(1529): Couldn't create directory for SharedPreferences file /data/data/com.mb.toggle2g/shared_prefs/com.mb.toggle2g_preferences.xml
03-20 02:32:34.559 E/SharedPreferencesImpl(1529): Couldn't create directory for SharedPreferences file /data/data/com.mb.toggle2g/shared_prefs/com.mb.toggle2g_preferences.xml
03-20 02:32:34.559 I/Toggle2G(1529): WARNING: default 3G network is 0, but Toggle2G is set to use 9
03-20 02:32:34.559 E/SharedPreferencesImpl(1529): Couldn't create directory for SharedPreferences file /data/data/com.mb.toggle2g/shared_prefs/com.mb.toggle2g_preferences.xml
03-20 02:32:34.569 E/SharedPreferencesImpl(1529): Couldn't create directory for SharedPreferences file /data/data/com.mb.toggle2g/shared_prefs/com.mb.toggle2g_preferences.xml
03-20 02:32:34.569 E/SharedPreferencesImpl(1529): Couldn't create directory for SharedPreferences file /data/data/com.mb.toggle2g/shared_prefs/com.mb.toggle2g_preferences.xml
03-20 02:32:34.729 I/ActivityManager(859): Displayed com.mb.toggle2g/.Toggle2G: +344ms
03-20 02:32:34.729 I/ActivityManager(859): Timeline: Activity_windows_visible id: ActivityRecord{42097108 u0 com.mb.toggle2g/.Toggle2G t96} time:10214579
03-20 02:33:41.669 I/Toggle2G(1529): show notification running=true, noWifi=true, noData=false, saveBattery=false, alwaysSwitchTo3G=false
03-20 02:33:41.669 I/Toggle2G(1529): show notification running=true, wait=false, waitNotify=false, show=false
03-20 02:35:18.752 I/Toggle2G(1529): show notification running=true, noWifi=true, noData=false, saveBattery=false, alwaysSwitchTo3G=false
03-20 02:35:18.752 I/Toggle2G(1529): show notification running=true, wait=false, waitNotify=false, show=false