You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When it crashes, what does adb logcat produce? I think it is probably a permission issue. Or after researching you may have the wrong object POWER_MANAGER should be POWER_SERVICE at least according android.app.Activity Even android.content.Context does not define POWER_MANAGER.
Also WIFI_POWER should be WIFI_SERVICE.
Activity
FeralBytes commentedon Feb 13, 2015
When it crashes, what does adb logcat produce? I think it is probably a permission issue. Or after researching you may have the wrong object POWER_MANAGER should be POWER_SERVICE at least according android.app.Activity Even android.content.Context does not define POWER_MANAGER.
Also WIFI_POWER should be WIFI_SERVICE.
FeralBytes commentedon Feb 10, 2017
This should be closed.