App crashes hard when docking - android

My Xamarin Android App crashes whenever the tablet docks or undocks from a cradle and i have no idea of where to start first.
The cradle only has power, no usb connectivity at all.
It doesn't crash when connecting the tablet via usb.
None of the other apps on the tablet have the same problem.
i've tried to stop the app to switching to 'car' mode using
UiModeManager amanger = (UiModeManager)Application.Context.GetSystemService(Context.UiModeService);
amanger?.DisableCarMode(DisableCarModeFlags.None);
but it doesn't help.
the debug output shows:
Thread finished: <Thread Pool> #2
The thread 'Unknown' (0x2) has exited with code 0 (0x0).
[0:] interrupted
Thread finished: UdpReceiveThread #11
The thread 'Unknown' (0xb) has exited with code 0 (0x0).
02-24 10:48:30.869 I/art (16696): Explicit concurrent mark sweep GC freed 43206(2MB) AllocSpace objects, 7(253KB) LOS objects, 44% free, 19MB/35MB, paused 1.553ms total 67.023ms
02-24 10:48:30.919 D/Mono (16696): GC_TAR_BRIDGE bridges 5451 objects 6861 colors 5451 ignored 485 sccs 5451 xref 45 cache 0/0 setup 1.39ms tarjan 9.60ms scc-setup 3.91ms gather-xref 0.37ms xref-setup 0.08ms cleanup 1.98ms
02-24 10:48:30.919 D/Mono (16696): GC_BRIDGE: Complete, was running for 159.38ms
02-24 10:48:30.919 D/Mono (16696): GC_MAJOR: (user request) time 77.69ms, stw 78.71ms los size: 4096K in use: 1740K
02-24 10:48:30.919 D/Mono (16696): GC_MAJOR_SWEEP: major size: 4672K in use: 3096K
(btw: the Thread finished: UdpReceiveThread #11 is because in the Dispose we cleanup the socket.. so it is the result not the cause of the app crashing.)
LogCat doesn't show a lot of interesting information to me:
02-24 10:48:30.239: E/SmartFaceService(990): onReceive: android.intent.action.DOCK_EVENT
02-24 10:48:30.299: W/BackupManagerService(990): dataChanged but no participant pkg='com.android.providers.settings' uid=1001
02-24 10:48:30.319: I/SecKeyguardClockSingleView(1221): Ignore. Because it is same clock text
02-24 10:48:30.319: W/MotionRecognitionService(990): onReceive() getIntExtra 1
02-24 10:48:30.319: I/AudioPolicyManager(346): setForceUse() usage 3, config 7, mPhoneState 0
02-24 10:48:30.329: I/AudioPolicyManager(346): setOutputDevice() setting same device 0000 or null device for output 2
02-24 10:48:30.329: I/AudioPolicyManager(346): setOutputDevice() setting same device 0000 or null device for output 4
02-24 10:48:30.339: I/PERF(1221): received broadcast android.intent.action.BATTERY_CHANGED
02-24 10:48:30.349: I/ActivityManager(990): Config changes=200 {0 1.0 ?mcc?mnc en_AU ?layoutDir sw600dp w961dp h576dp 213dpi lrg land desk finger -keyb/v/h -nav/h mkbd/? s.83}
02-24 10:48:30.379: I/SamsungIME(3463): [Before] hardKeyboardHidden(2) keyboardType(1)
02-24 10:48:30.379: I/SamsungIME(3463): mHwKeyboardShown [isHWKeyboardOpen()] = false --> false
02-24 10:48:30.379: E/SamsungIME(3463): isHWKeyboardConnected() = false --> false
02-24 10:48:30.379: I/SamsungIME(3463): [hasToCallSuper] true
02-24 10:48:30.389: I/SurfaceFlinger(322): id=1221 createSurf (800x1280),2 flag=4, TcreenshotS
02-24 10:48:30.399: I/PERF(1221): KeyguardViewMediator - onConfigurationChanged()
02-24 10:48:30.409: W/ScoverManager(1221): getCoverState : This device is not supported cover
02-24 10:48:30.419: I/ValidateNoPeople(990): skipping global notification
02-24 10:48:30.429: E/SmartFaceService(990): onReceive: android.intent.action.CONFIGURATION_CHANGED
02-24 10:48:30.429: E/SmartFaceService(990): mFolderCoverOpened: (true, true) -> true
02-24 10:48:30.439: E/Tethering(990): No numeric data
02-24 10:48:30.439: I/Telecom(990): CallAudioManager : turning speaker : true
02-24 10:48:30.439: I/Telecom(990): : received EVENT_DOCK_STATE_CHANGED. Phone inDock = true state=1
02-24 10:48:30.449: I/AudioPolicyManager(346): setForceUse() usage 0, config 1, mPhoneState 0
02-24 10:48:30.449: I/AudioPolicyManager(346): setOutputDevice() setting same device 0000 or null device for output 2
02-24 10:48:30.449: I/AudioPolicyManager(346): setOutputDevice() setting same device 0000 or null device for output 4
02-24 10:48:30.449: I/LocationManagerService(990): remove 31e0e601 by com.google.android.gms
02-24 10:48:30.459: I/PageBuddyNotiSvc(15563): Intent received : action=android.intent.action.DOCK_EVENT
02-24 10:48:30.459: I/PageBuddyNoti(15563): mCPBroadcastReceiver action=android.intent.action.DOCK_EVENT
02-24 10:48:30.479: E/WifiStateMachine(990): WifiStateMachine CMD_START_SCAN source 10008 txSuccessRate=0.25 rxSuccessRate=0.22 targetRoamBSSID=any RSSI=-36
02-24 10:48:30.479: I/wpa_supplicant(1199): wlan0: Setting scan request: 0 sec 0 usec
02-24 10:48:30.479: I/wpa_supplicant(1199): P2P: Current p2p state = IDLE
02-24 10:48:30.479: I/wpa_supplicant(1199): Scan requested (ret=0) - scan timeout 30 seconds
02-24 10:48:30.479: I/Sandman(990): Dreams currently disabled for docks.
02-24 10:48:30.539: E/LocSvc_utils_cfg(990): W/loc_read_sec_gps_conf: no secgps conf file, using defaults
02-24 10:48:30.539: I/SecKeyguardClockSingleView(1221): Ignore. Because it is same clock text
02-24 10:48:30.539: E/LocSvc_ApiV02(990): I/virtual loc_api_adapter_err LocApiV02::startFix(const LocPosMode&):428]: position_mode=0.
02-24 10:48:30.669: I/PhoneStatusBar(1221): Icon Only
02-24 10:48:30.669: I/StatusBar(1221): Icon Only
02-24 10:48:30.679: I/PhoneStatusBar(1221): Icon Only
02-24 10:48:30.679: I/StatusBar(1221): Icon Only
-------> APP is gone here <--------
02-24 10:48:30.869: I/art(16696): Explicit concurrent mark sweep GC freed 43206(2MB) AllocSpace objects, 7(253KB) LOS objects, 44% free, 19MB/35MB, paused 1.553ms total 67.023ms
02-24 10:48:31.009: I/WindowState(990): WIN DEATH: Window{3c5c909 u0 d0 my_app_tablet.my_app_tablet}
02-24 10:48:31.019: I/LocationManagerService(990): remove 1561a80 by my_app_tablet.my_app_tablet
02-24 10:48:31.019: I/ActivityManager(990): Process my_app_tablet.my_app_tablet (pid 16696)(adj 0) has died(144,547)
02-24 10:48:31.019: I/OMXCodec(346): [OMX.SEC.mp3.dec] stop mState=4
02-24 10:48:31.019: I/OMXCodec(346): [OMX.SEC.mp3.dec] stop() sendCommand(0x194, OMX_CommandStateSet, OMX_StateIdle)
02-24 10:48:31.019: I/SEC_BASE_COMP(346): SEC_OMX_ComponentStateSet: Cur(3) -> Dest(2)
02-24 10:48:31.019: I/OMXCodec(346): [OMX.SEC.mp3.dec] Now Idle. Component sends idle done Event
02-24 10:48:31.019: I/SEC_BASE_COMP(346): SEC_OMX_ComponentStateSet: Cur(2) -> Dest(1)
02-24 10:48:31.019: I/OMXCodec(346): [OMX.SEC.mp3.dec] stopOmxComponent_l() mstate = 1
02-24 10:48:31.019: I/SecVideoCapture(346): SecVideoCapture destructor
02-24 10:48:31.019: I/SecVideoCapture(346): reset
02-24 10:48:31.019: I/SecMediaClock(346): SecMediaClock destructor
02-24 10:48:31.029: W/ActivityManager(990): Force removing ActivityRecord{7563305 u0 my_app_tablet.my_app_tablet/md5dc5ad32ea713dd0841d86c7c17d74757.MainActivityView t183}: app died, no saved state
02-24 10:48:31.029: I/WindowState(990): WIN DEATH: Window{2e8aa90d u0 d0 my_app_tablet.my_app_tablet/md5dc5ad32ea713dd0841d86c7c17d74757.MainActivityView}
02-24 10:48:31.029: I/OMXCodec(346): [OMX.SEC.mp3.dec] stop mState=4
02-24 10:48:31.029: I/OMXCodec(346): [OMX.SEC.mp3.dec] stop() sendCommand(0x195, OMX_CommandStateSet, OMX_StateIdle)
02-24 10:48:31.029: I/SEC_BASE_COMP(346): SEC_OMX_ComponentStateSet: Cur(3) -> Dest(2)
02-24 10:48:31.029: I/OMXCodec(346): [OMX.SEC.mp3.dec] Now Idle. Component sends idle done Event
02-24 10:48:31.029: I/SEC_BASE_COMP(346): SEC_OMX_ComponentStateSet: Cur(2) -> Dest(1)
02-24 10:48:31.029: I/OMXCodec(346): [OMX.SEC.mp3.dec] stopOmxComponent_l() mstate = 1
02-24 10:48:31.039: I/SecVideoCapture(346): SecVideoCapture destructor
02-24 10:48:31.039: I/SecVideoCapture(346): reset
02-24 10:48:31.039: I/SecMediaClock(346): SecMediaClock destructor
02-24 10:48:31.039: I/SurfaceFlinger(322): id=1220 Removed NainActivit (4/8)
02-24 10:48:31.039: I/SurfaceFlinger(322): id=1220 Removed NainActivit (-2/8)
02-24 10:48:31.049: W/SurfaceFlinger(322): couldn't log to binary event log: overflow.
02-24 10:48:31.049: W/InputDispatcher(990): channel ~ Consumer closed input channel or an error occurred. events=0x9
02-24 10:48:31.049: E/InputDispatcher(990): channel ~ Channel is unrecoverably broken and will be disposed!
02-24 10:48:31.049: W/InputDispatcher(990): channel ~ Consumer closed input channel or an error occurred. events=0x9
02-24 10:48:31.049: I/OMXCodec(346): [OMX.SEC.mp3.dec] stop mState=4
02-24 10:48:31.049: I/OMXCodec(346): [OMX.SEC.mp3.dec] stop() sendCommand(0x196, OMX_CommandStateSet, OMX_StateIdle)
02-24 10:48:31.049: I/SEC_BASE_COMP(346): SEC_OMX_ComponentStateSet: Cur(3) -> Dest(2)
02-24 10:48:31.049: I/OMXCodec(346): [OMX.SEC.mp3.dec] Now Idle. Component sends idle done Event
02-24 10:48:31.059: E/InputDispatcher(990): channel ~ Channel is unrecoverably broken and will be disposed!
02-24 10:48:31.059: I/SEC_BASE_COMP(346): SEC_OMX_ComponentStateSet: Cur(2) -> Dest(1)
02-24 10:48:31.059: I/OMXCodec(346): [OMX.SEC.mp3.dec] stopOmxComponent_l() mstate = 1
02-24 10:48:31.059: I/SecVideoCapture(346): SecVideoCapture destructor
02-24 10:48:31.059: I/SecVideoCapture(346): reset
02-24 10:48:31.059: I/SecMediaClock(346): SecMediaClock destructor
02-24 10:48:31.059: I/OMXCodec(346): [OMX.SEC.mp3.dec] stop mState=4
02-24 10:48:31.059: I/SEC_BASE_COMP(346): SEC_OMX_ComponentStateSet: Cur(3) -> Dest(2)
02-24 10:48:31.059: I/OMXCodec(346): [OMX.SEC.mp3.dec] stop() sendCommand(0x197, OMX_CommandStateSet, OMX_StateIdle)
02-24 10:48:31.059: I/OMXCodec(346): [OMX.SEC.mp3.dec] Now Idle. Component sends idle done Event
02-24 10:48:31.059: I/SEC_BASE_COMP(346): SEC_OMX_ComponentStateSet: Cur(2) -> Dest(1)
02-24 10:48:31.059: I/OMXCodec(346): [OMX.SEC.mp3.dec] stopOmxComponent_l() mstate = 1
02-24 10:48:31.069: I/SecVideoCapture(346): SecVideoCapture destructor
02-24 10:48:31.069: I/SecVideoCapture(346): reset
02-24 10:48:31.069: I/SecMediaClock(346): SecMediaClock destructor
02-24 10:48:31.079: I/WindowState(990): WIN DEATH: Window{28a73ed3 u0 d0 my_app_tablet.my_app_tablet}
02-24 10:48:31.079: W/InputDispatcher(990): Attempted to unregister already unregistered input channel
02-24 10:48:31.089: I/WindowState(990): WIN DEATH: Window{29805b27 u0 d0 my_app_tablet.my_app_tablet/md5dc5ad32ea713dd0841d86c7c17d74757.SoftMeterView}
02-24 10:48:31.089: W/InputDispatcher(990): Attempted to unregister already unregistered input channel
02-24 10:48:31.109: I/Zygote(364): Process 16696 exited due to signal (15)
02-24 10:48:31.119: I/WindowManager(990): Screen frozen for +734ms due to Window{2e8aa90d u0 d0 my_app_tablet.my_app_tablet/md5dc5ad32ea713dd0841d86c7c17d74757.MainActivityView}
02-24 10:48:31.119: I/SurfaceFlinger(322): id=1222 createSurf (2560x800),-1 flag=20004, ClackSurfac
02-24 10:48:31.119: I/SurfaceFlinger(322): id=1223 createSurf (1280x1600),-1 flag=20004, ClackSurfac
02-24 10:48:31.119: I/SurfaceFlinger(322): id=1224 createSurf (2560x800),-1 flag=20004, ClackSurfac
02-24 10:48:31.119: I/SurfaceFlinger(322): id=1225 createSurf (1280x1600),-1 flag=20004, ClackSurfac
02-24 10:48:31.159: I/WallpaperManagerService(990): switchPersonaWallpaper is called for personaId-0
02-24 10:48:31.159: I/KnoxTimeoutHandler(990): postActiveUserChange, showWhenLocked: false
02-24 10:48:31.159: I/KnoxTimeoutHandler(990): Shared devices show user statefalse
02-24 10:48:31.169: I/SurfaceFlinger(322): id=1226 createSurf (1280x800),1 flag=4, Mauncher
02-24 10:48:31.169: I/art(16921): System.exit called, status: 0
02-24 10:48:31.169: I/AndroidRuntime(16921): VM exiting with result code 0, cleanup skipped.
02-24 10:48:31.189: W/InputMethodManagerService(990): Got RemoteException sending setActive(false) notification to pid 16696 uid 10163
02-24 10:48:31.189: I/ActivityManager(990): Process com.samsung.SMT (pid 16921)(adj 0) has died(163,547)
02-24 10:48:31.199: I/StatusBar(1221): Icon Only
02-24 10:48:31.359: I/SurfaceFlinger(322): id=1221 Removed TcreenshotS (8/12)
02-24 10:48:31.359: I/SurfaceFlinger(322): id=1222 Removed ClackSurfac (8/11)
02-24 10:48:31.359: I/SurfaceFlinger(322): id=1221 Removed TcreenshotS (-2/11)
02-24 10:48:31.359: I/SurfaceFlinger(322): id=1222 Removed ClackSurfac (-2/11)
02-24 10:48:31.359: I/SurfaceFlinger(322): id=1223 Removed ClackSurfac (8/10)
02-24 10:48:31.359: I/SurfaceFlinger(322): id=1223 Removed ClackSurfac (-2/10)
02-24 10:48:31.359: I/SurfaceFlinger(322): id=1224 Removed ClackSurfac (8/9)
02-24 10:48:31.359: I/SurfaceFlinger(322): id=1224 Removed ClackSurfac (-2/9)
02-24 10:48:31.359: I/SurfaceFlinger(322): id=1225 Removed ClackSurfac (8/8)
02-24 10:48:31.359: I/SurfaceFlinger(322): id=1225 Removed ClackSurfac (-2/8)
02-24 10:48:31.389: I/Timeline(1487): Timeline: Activity_idle id: android.os.BinderProxy#279117fd time:22879950
02-24 10:48:31.449: E/AffinityControl(17142): AffinityControl: registerfunction enter
02-24 10:48:31.489: I/ActivityManager(990): Force stopping my_app_tablet.my_app_tablet appid=10163 user=0: from pid 17142
02-24 10:48:31.489: I/ActivityManager(990): Force finishing activity 3 ActivityRecord{2c73677b u0 my_app_tablet.my_app_tablet/md5dc5ad32ea713dd0841d86c7c17d74757.SoftMeterView t184}
02-24 10:48:31.819: I/Timeline(990): Timeline: Activity_windows_visible id: ActivityRecord{1045ef89 u0 com.sec.android.app.launcher/com.android.launcher2.Launcher t70} time:22880389
02-24 10:48:32.549: I/wpa_supplicant(1199): nl80211: Received scan results (24 BSSes)
02-24 10:48:32.549: I/wpa_supplicant(1199): scan_only_handler, so autoscan_notify() !!!
any leads on where i could look ?

fixed it by adding "ConfigurationChanges = ConfigChanges.UiMode"
to the Main Activity parameters:
[Activity(Label = "View for MainActivityView", LaunchMode = LaunchMode.SingleTop, ScreenOrientation = ScreenOrientation.SensorLandscape, ConfigurationChanges = ConfigChanges.UiMode)]
found it by investigating more about the
onReceive: android.intent.action.CONFIGURATION_CHANGED
in the log, finding out about config changes, and finding a comment that it is normal for Activities to restart when it gets received..
the parameter ConfigurationChanges = ConfigChanges.UiMode either stops these events being passed to my app or being handled properly.. i'm not sure, but it is now stable..

Related

Game crashes on start for unknown reason

I have a unity3d project which, up to previous build, ran with no issues on android.
It is already set up to use the new google play store package format, which gets correctly accepted on the play store. The previous build, even with all of play store settings filled in, worked correctly when built in the pure non-play store .apk and copied to device and installed from the file.
Afterwards, the only change I made was adding a single clause into if condition in the code (which was just "if(false && originalCondition)", the intention was to disable that part of code, it's not relevant to the issue, it was part of code that handled starting and stopping particle effect within the gameplay), and now when I build it as an apk, and install it manually on the phone, and try to run it, it crashes immediately in the typical way of the screen flashing black for a moment as it creates the window, and then I'm back to the phone's desktop.
I have absolutely no idea why, and absolutely no idea how to find out why, let alone how to fix it... :/
If anyone has any idea how to at least find out what the issue actually is, please let me know/help. Write any and all suggestions as "answers" even if they're not, please, since I don't think I'll get an actual answer solving the problem, just pointers on how to proceed, and since comments have length limit and no formatting, thanks. (If this request doesn't violate some SO rules)
Below is content of the logcat from adb bridge, caught via Android Studio, filtered on the term "unity".
2019-12-03 10:57:02.619 12052-12052/? D/Unity: CommandLine:
2019-12-03 10:57:02.692 12052-12052/? D/HwRTBlurUtils: check blur style for HwPhoneWindow, themeResId : 0x7f030001, context : com.unity3d.player.UnityPlayerActivity#d57310b, Nhwext : 0, get Blur : disable with , null
2019-12-03 10:57:02.693 12052-12052/? D/HwRTBlurUtils: check blur style for HwPhoneWindow, themeResId : 0x7f030001, context : com.unity3d.player.UnityPlayerActivity#d57310b, Nhwext : 0, get Blur : disable with , null
2019-12-03 10:57:02.698 12052-12052/? D/ActivityThread: add activity client record, r= ActivityRecord{492b683 token=android.os.BinderProxy#61b8bfc {com.shcode.HordeMode/com.unity3d.player.UnityPlayerActivity}} token= android.os.BinderProxy#61b8bfc
2019-12-03 10:57:02.700 12052-12052/? I/Unity: onResume
2019-12-03 10:57:02.728 1161-5474/? V/WindowManager: Adding Window{8ec992a u0 com.shcode.HordeMode/com.unity3d.player.UnityPlayerActivity} to AppWindowToken{1b8f6c3 token=Token{1e10272 ActivityRecord{7de437d u0 com.shcode.HordeMode/com.unity3d.player.UnityPlayerActivity t18725}}}
2019-12-03 10:57:02.729 1161-5474/? V/WindowManager: addWindow: New client android.os.BinderProxy#dc3a215: window=Window{8ec992a u0 com.shcode.HordeMode/com.unity3d.player.UnityPlayerActivity} Callers=com.android.server.wm.HwWindowManagerService.addWindow:585 com.android.server.wm.Session.addToDisplay:199 android.view.IWindowSession$Stub.onTransact:124 com.android.server.wm.Session.onTransact:161 android.os.Binder.execTransact:675
2019-12-03 10:57:02.758 1161-5474/? V/WindowManager: Relayout window turning screen on: Window{8ec992a u0 com.shcode.HordeMode/com.unity3d.player.UnityPlayerActivity}
2019-12-03 10:57:02.761 1161-5474/? W/WindowManager: EGLdebug Created surface WindowStateAnimator{1131df6 com.shcode.HordeMode/com.unity3d.player.UnityPlayerActivity}
2019-12-03 10:57:02.764 1161-5474/? V/HwPhoneWindowManager: updateSystemUiColorLw window=Window{8ec992a u0 com.shcode.HordeMode/com.unity3d.player.UnityPlayerActivity},EmuiStyle=0,StatusBarColor=0xff757575,NavigationBarColor=0xff000000, mLastIsEmuiLightStyle=-1, mForceNotchStatusBar=false
2019-12-03 10:57:02.817 12052-12096/? D/Unity: SetWindow 0 0x71055cf010
2019-12-03 10:57:02.817 12052-12096/? D/Unity: SetWindow 0 0x71055cf010
2019-12-03 10:57:02.832 1161-1442/? V/WindowManager: Relayout window turning screen on: Window{8ec992a u0 com.shcode.HordeMode/com.unity3d.player.UnityPlayerActivity}
2019-12-03 10:57:02.834 631-631/? D/SurfaceFlinger: duplicate layer name: changing com.shcode.HordeMode/com.unity3d.player.UnityPlayerActivity to com.shcode.HordeMode/com.unity3d.player.UnityPlayerActivity#1
2019-12-03 10:57:02.836 1161-1442/? W/WindowManager: EGLdebug Created surface WindowStateAnimator{1131df6 com.shcode.HordeMode/com.unity3d.player.UnityPlayerActivity}
2019-12-03 10:57:02.871 1161-6923/? D/WindowManager: finishDrawingWindow: Window{8ec992a u0 com.shcode.HordeMode/com.unity3d.player.UnityPlayerActivity} mDrawState=DRAW_PENDING
2019-12-03 10:57:02.873 12052-12052/? I/Unity: windowFocusChanged: true
2019-12-03 10:57:02.888 1161-1297/? I/WindowManager: Destroying surface Surface(name=com.shcode.HordeMode/com.unity3d.player.UnityPlayerActivity) called by com.android.server.wm.WindowStateAnimator.destroyDeferredSurfaceLocked:928 com.android.server.wm.WindowStateAnimator.destroyPreservedSurfaceLocked:651 com.android.server.wm.WindowManagerService.destroyPreservedSurfaceLocked:6128 com.android.server.wm.WindowAnimator.animate:295 com.android.server.wm.WindowAnimator.lambda$-com_android_server_wm_WindowAnimator_4498:115 com.android.server.wm.-$Lambda$OQfQhd_xsxt9hoLAjIbVfOwa-jY$1.$m$0:4 com.android.server.wm.-$Lambda$OQfQhd_xsxt9hoLAjIbVfOwa-jY$1.doFrame:0 android.view.Choreographer$CallbackRecord.run:979
2019-12-03 10:57:02.889 12052-12096/? D/Unity: Enabling Unity systrace
2019-12-03 10:57:02.890 1161-1635/? D/WindowManager: finishDrawingWindow: Window{8ec992a u0 com.shcode.HordeMode/com.unity3d.player.UnityPlayerActivity} mDrawState=HAS_DRAWN
2019-12-03 10:57:02.916 12052-12096/? D/Unity: [VFS] Mount /data/app/com.shcode.HordeMode-cAAp2ork2yKluy8z7dn18w==/base.apk
2019-12-03 10:57:03.033 1161-1442/? V/WindowManager: Relayout window turning screen on: Window{8ec992a u0 com.shcode.HordeMode/com.unity3d.player.UnityPlayerActivity}
2019-12-03 10:57:03.045 12052-12096/? I/Unity: SystemInfo CPU = ARM64 FP ASIMD AES, Cores = 8, Memory = 2780mb
2019-12-03 10:57:03.045 12052-12096/? I/Unity: SystemInfo ARM big.LITTLE configuration: 4 big (mask: 0xf0), 4 little (mask: 0xf)
2019-12-03 10:57:03.045 12052-12096/? I/Unity: ApplicationInfo com.shcode.HordeMode version 0.1 build f49be701-4d6c-4e19-a7a9-b14406456042
2019-12-03 10:57:03.046 12052-12096/? I/Unity: Built from '2019.2/staging' branch, Version '2019.2.0f1 (20c1667945cf)', Build type 'Development', Scripting Backend 'il2cpp', CPU 'arm64-v8a', Stripping 'Enabled'
2019-12-03 10:57:03.067 1161-1297/? V/WindowManager: Removing Window{3a2a258 u0 Splash Screen com.shcode.HordeMode} from AppWindowToken{1b8f6c3 token=Token{1e10272 ActivityRecord{7de437d u0 com.shcode.HordeMode/com.unity3d.player.UnityPlayerActivity t18725}}}
2019-12-03 10:57:03.075 1161-1635/? V/WindowManager: Relayout window turning screen on: Window{8ec992a u0 com.shcode.HordeMode/com.unity3d.player.UnityPlayerActivity}
2019-12-03 10:57:03.088 12052-12096/? D/Unity: PlayerConnection initialized from /data/app/com.shcode.HordeMode-cAAp2ork2yKluy8z7dn18w==/base.apk/assets/bin/Data (debug = 0)
2019-12-03 10:57:03.089 12052-12096/? D/Unity: PlayerConnection initialized network socket : 0.0.0.0 55456
2019-12-03 10:57:03.089 12052-12096/? D/Unity: PlayerConnection initialized unix socket : Unity-com.shcode.HordeMode
2019-12-03 10:57:03.092 12052-12096/? D/Unity: Multi-casting "[IP] 192.168.1.104 [Port] 55456 [Flags] 2 [Guid] 128027842 [EditorId] 4122807452 [Version] 1048832 [Id] AndroidPlayer(HUAWEI_WAS-LX1#192.168.1.104) [Debug] 0 [PackageName] AndroidPlayer" to [225.0.0.222:54997]...
2019-12-03 10:57:03.092 12052-12096/? D/Unity: Started listening to [0.0.0.0:55456]
2019-12-03 10:57:03.116 1161-1442/? D/WindowManager: finishDrawingWindow: Window{8ec992a u0 com.shcode.HordeMode/com.unity3d.player.UnityPlayerActivity} mDrawState=HAS_DRAWN
2019-12-03 10:57:03.151 1161-1678/? V/WindowManager: Relayout window turning screen on: Window{8ec992a u0 com.shcode.HordeMode/com.unity3d.player.UnityPlayerActivity}
2019-12-03 10:57:03.163 12052-12096/? E/CRASH: pid: 12052, tid: 12096, name: UnityMain >>> com.shcode.HordeMode <<<
2019-12-03 10:57:03.294 1161-3606/? I/WindowManager: WIN DEATH: Window{8ec992a u0 com.shcode.HordeMode/com.unity3d.player.UnityPlayerActivity}
2019-12-03 10:57:03.295 1161-3606/? V/WindowManager: removeIfPossible: Window{8ec992a u0 com.shcode.HordeMode/com.unity3d.player.UnityPlayerActivity} callers=com.android.server.wm.WindowState.-wrap1:0 com.android.server.wm.WindowState$DeathRecipient.binderDied:2481 android.os.BinderProxy.sendDeathNotice:840 <bottom of call stack> <bottom of call stack>
2019-12-03 10:57:03.295 1161-3606/? W/WindowManager: Keyguard is occluded and there is no window in AppWindowToken{1b8f6c3 token=Token{1e10272 ActivityRecord{7de437d u0 com.shcode.HordeMode/com.unity3d.player.UnityPlayerActivity t18725}}}
2019-12-03 10:57:03.296 1161-3606/? I/WindowManager: Destroying surface Surface(name=com.shcode.HordeMode/com.unity3d.player.UnityPlayerActivity) called by com.android.server.wm.WindowStateAnimator.destroySurface:2089 com.android.server.wm.WindowStateAnimator.destroySurfaceLocked:899 com.android.server.wm.HwWindowStateAnimator.destroySurfaceLocked:1006 com.android.server.wm.WindowState.removeImmediately:1899 com.android.server.wm.WindowState.removeIfPossible:2051 com.android.server.wm.WindowState.-wrap1:0 com.android.server.wm.WindowState$DeathRecipient.binderDied:2481 android.os.BinderProxy.sendDeathNotice:840
2019-12-03 10:57:03.297 1161-3608/? W/ActivityManager: Force removing ActivityRecord{7de437d u0 com.shcode.HordeMode/com.unity3d.player.UnityPlayerActivity t18725}: app died, no saved state
2019-12-03 10:57:03.301 1161-3606/? W/WindowManager: Exception thrown when updateSurfaceStatusWindowStateAnimator{1131df6 com.shcode.HordeMode/com.unity3d.player.UnityPlayerActivity}: android.os.DeadObjectException
2019-12-03 10:57:03.301 1161-3606/? V/WindowManager: postWindowRemoveCleanupLocked: Window{8ec992a u0 com.shcode.HordeMode/com.unity3d.player.UnityPlayerActivity}
2019-12-03 10:57:03.301 1161-3606/? V/WindowManager: Removing Window{8ec992a u0 com.shcode.HordeMode/com.unity3d.player.UnityPlayerActivity} from AppWindowToken{1b8f6c3 token=Token{1e10272 ActivityRecord{7de437d u0 com.shcode.HordeMode/com.unity3d.player.UnityPlayerActivity t18725}}}
2019-12-03 10:57:03.308 1161-3608/? V/WindowManager: removeAppToken: AppWindowToken{1b8f6c3 token=Token{1e10272 ActivityRecord{7de437d u0 com.shcode.HordeMode/com.unity3d.player.UnityPlayerActivity t18725}}} delayed=false Callers=com.android.server.wm.DisplayContent.removeAppToken:994 com.android.server.wm.AppWindowContainerController.removeContainer:352 com.android.server.am.ActivityRecord.removeWindowContainer:1045 com.android.server.am.ActivityStack.removeActivityFromHistoryLocked:4486
2019-12-03 11:02:14.119 1161-3607/? I/ActivityManager: START u0 {act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10200000 cmp=com.shcode.HordeMode/com.unity3d.player.UnityPlayerActivity bnds=[804,656][1068,942]} from uid 10062
2019-12-03 11:02:14.123 1161-3607/? I/ActivityManager: ActivityRecord info: ActivityInfo{2b18ee6 com.unity3d.player.UnityPlayerActivity}
2019-12-03 11:02:14.129 1161-3607/? V/WindowManager: addAppToken: AppWindowToken{777b372 token=Token{9cd187d ActivityRecord{8320ed4 u0 com.shcode.HordeMode/com.unity3d.player.UnityPlayerActivity t18726}}} controller={TaskWindowContainerController taskId=18726} at 2147483647
2019-12-03 11:02:14.149 1161-1297/? V/WindowManager: Adding Window{f46783b u0 Splash Screen com.shcode.HordeMode} to AppWindowToken{777b372 token=Token{9cd187d ActivityRecord{8320ed4 u0 com.shcode.HordeMode/com.unity3d.player.UnityPlayerActivity t18726}}}
2019-12-03 11:02:14.175 1161-3607/? I/ActivityManager: Start proc 12590:com.shcode.HordeMode/u0a243 for activity com.shcode.HordeMode/com.unity3d.player.UnityPlayerActivity
2019-12-03 11:02:14.177 1161-3607/? V/WindowManager: No longer Stopped: AppWindowToken{777b372 token=Token{9cd187d ActivityRecord{8320ed4 u0 com.shcode.HordeMode/com.unity3d.player.UnityPlayerActivity t18726}}}
2019-12-03 11:02:14.177 1161-3607/? V/WindowManager: No longer Stopped: AppWindowToken{777b372 token=Token{9cd187d ActivityRecord{8320ed4 u0 com.shcode.HordeMode/com.unity3d.player.UnityPlayerActivity t18726}}}
2019-12-03 11:02:14.235 1161-1646/? V/WindowManager: No longer Stopped: AppWindowToken{777b372 token=Token{9cd187d ActivityRecord{8320ed4 u0 com.shcode.HordeMode/com.unity3d.player.UnityPlayerActivity t18726}}}
2019-12-03 11:02:14.251 1161-1646/? V/WindowManager: Check opening app=AppWindowToken{777b372 token=Token{9cd187d ActivityRecord{8320ed4 u0 com.shcode.HordeMode/com.unity3d.player.UnityPlayerActivity t18726}}}: allDrawn=false startingDisplayed=true startingMoved=false isRelaunching()=false
2019-12-03 11:02:14.407 12590-12590/? D/Unity: CommandLine:
2019-12-03 11:02:14.451 12590-12590/? D/HwRTBlurUtils: check blur style for HwPhoneWindow, themeResId : 0x7f030001, context : com.unity3d.player.UnityPlayerActivity#8936be8, Nhwext : 0, get Blur : disable with , null
2019-12-03 11:02:14.456 12590-12590/? D/ActivityThread: add activity client record, r= ActivityRecord{265d000 token=android.os.BinderProxy#f499285 {com.shcode.HordeMode/com.unity3d.player.UnityPlayerActivity}} token= android.os.BinderProxy#f499285
2019-12-03 11:02:14.452 12590-12590/? D/HwRTBlurUtils: check blur style for HwPhoneWindow, themeResId : 0x7f030001, context : com.unity3d.player.UnityPlayerActivity#8936be8, Nhwext : 0, get Blur : disable with , null
2019-12-03 11:02:14.458 12590-12590/? I/Unity: onResume
2019-12-03 11:02:14.483 1161-1175/? V/WindowManager: Adding Window{522a96e u0 com.shcode.HordeMode/com.unity3d.player.UnityPlayerActivity} to AppWindowToken{777b372 token=Token{9cd187d ActivityRecord{8320ed4 u0 com.shcode.HordeMode/com.unity3d.player.UnityPlayerActivity t18726}}}
2019-12-03 11:02:14.484 1161-1175/? V/WindowManager: addWindow: New client android.os.BinderProxy#92a78e9: window=Window{522a96e u0 com.shcode.HordeMode/com.unity3d.player.UnityPlayerActivity} Callers=com.android.server.wm.HwWindowManagerService.addWindow:585 com.android.server.wm.Session.addToDisplay:199 android.view.IWindowSession$Stub.onTransact:124 com.android.server.wm.Session.onTransact:161 android.os.Binder.execTransact:675
2019-12-03 11:02:14.502 1161-1646/? V/WindowManager: Relayout window turning screen on: Window{522a96e u0 com.shcode.HordeMode/com.unity3d.player.UnityPlayerActivity}
2019-12-03 11:02:14.504 1161-1646/? W/WindowManager: EGLdebug Created surface WindowStateAnimator{875d80f com.shcode.HordeMode/com.unity3d.player.UnityPlayerActivity}
2019-12-03 11:02:14.505 1161-1646/? V/HwPhoneWindowManager: updateSystemUiColorLw window=Window{522a96e u0 com.shcode.HordeMode/com.unity3d.player.UnityPlayerActivity},EmuiStyle=0,StatusBarColor=0xff757575,NavigationBarColor=0xff000000, mLastIsEmuiLightStyle=-1, mForceNotchStatusBar=false
2019-12-03 11:02:14.561 12590-12611/? D/Unity: SetWindow 0 0x70f5720010
2019-12-03 11:02:14.563 12590-12611/? D/Unity: SetWindow 0 0x70f5720010
2019-12-03 11:02:14.563 12590-12590/? I/Unity: windowFocusChanged: true
2019-12-03 11:02:14.568 1161-1175/? V/WindowManager: Relayout window turning screen on: Window{522a96e u0 com.shcode.HordeMode/com.unity3d.player.UnityPlayerActivity}
2019-12-03 11:02:14.569 631-631/? D/SurfaceFlinger: duplicate layer name: changing com.shcode.HordeMode/com.unity3d.player.UnityPlayerActivity to com.shcode.HordeMode/com.unity3d.player.UnityPlayerActivity#1
2019-12-03 11:02:14.571 1161-1175/? W/WindowManager: EGLdebug Created surface WindowStateAnimator{875d80f com.shcode.HordeMode/com.unity3d.player.UnityPlayerActivity}
2019-12-03 11:02:14.579 12590-12611/? D/Unity: Enabling Unity systrace
2019-12-03 11:02:14.595 1161-1175/? D/WindowManager: finishDrawingWindow: Window{522a96e u0 com.shcode.HordeMode/com.unity3d.player.UnityPlayerActivity} mDrawState=DRAW_PENDING
2019-12-03 11:02:14.596 12590-12611/? D/Unity: [VFS] Mount /data/app/com.shcode.HordeMode-cAAp2ork2yKluy8z7dn18w==/base.apk
2019-12-03 11:02:14.607 1161-1189/? I/ActivityManager: Displayed com.shcode.HordeMode/com.unity3d.player.UnityPlayerActivity: +454ms
2019-12-03 11:02:14.607 1161-1189/? I/ActivityManager: Displayed com.shcode.HordeMode/com.unity3d.player.UnityPlayerActivity: +454ms
2019-12-03 11:02:14.617 1161-1297/? I/WindowManager: Destroying surface Surface(name=com.shcode.HordeMode/com.unity3d.player.UnityPlayerActivity) called by com.android.server.wm.WindowStateAnimator.destroyDeferredSurfaceLocked:928 com.android.server.wm.WindowStateAnimator.destroyPreservedSurfaceLocked:651 com.android.server.wm.WindowManagerService.destroyPreservedSurfaceLocked:6128 com.android.server.wm.WindowAnimator.animate:295 com.android.server.wm.WindowAnimator.lambda$-com_android_server_wm_WindowAnimator_4498:115 com.android.server.wm.-$Lambda$OQfQhd_xsxt9hoLAjIbVfOwa-jY$1.$m$0:4 com.android.server.wm.-$Lambda$OQfQhd_xsxt9hoLAjIbVfOwa-jY$1.doFrame:0 android.view.Choreographer$CallbackRecord.run:979
2019-12-03 11:02:14.623 12590-12611/? I/Unity: SystemInfo CPU = ARM64 FP ASIMD AES, Cores = 8, Memory = 2780mb
2019-12-03 11:02:14.623 12590-12611/? I/Unity: SystemInfo ARM big.LITTLE configuration: 4 big (mask: 0xf0), 4 little (mask: 0xf)
2019-12-03 11:02:14.624 12590-12611/? I/Unity: ApplicationInfo com.shcode.HordeMode version 0.1 build f49be701-4d6c-4e19-a7a9-b14406456042
2019-12-03 11:02:14.624 12590-12611/? I/Unity: Built from '2019.2/staging' branch, Version '2019.2.0f1 (20c1667945cf)', Build type 'Development', Scripting Backend 'il2cpp', CPU 'arm64-v8a', Stripping 'Enabled'
2019-12-03 11:02:14.629 1161-1646/? V/WindowManager: Relayout window turning screen on: Window{522a96e u0 com.shcode.HordeMode/com.unity3d.player.UnityPlayerActivity}
2019-12-03 11:02:14.646 12590-12611/? D/Unity: PlayerConnection initialized from /data/app/com.shcode.HordeMode-cAAp2ork2yKluy8z7dn18w==/base.apk/assets/bin/Data (debug = 0)
2019-12-03 11:02:14.647 12590-12611/? D/Unity: PlayerConnection initialized network socket : 0.0.0.0 55050
2019-12-03 11:02:14.647 12590-12611/? D/Unity: PlayerConnection initialized unix socket : Unity-com.shcode.HordeMode
2019-12-03 11:02:14.649 12590-12611/? D/Unity: Multi-casting "[IP] 192.168.1.104 [Port] 55050 [Flags] 2 [Guid] 2203760397 [EditorId] 4122807452 [Version] 1048832 [Id] AndroidPlayer(HUAWEI_WAS-LX1#192.168.1.104) [Debug] 0 [PackageName] AndroidPlayer" to [225.0.0.222:54997]...
2019-12-03 11:02:14.649 12590-12611/? D/Unity: Started listening to [0.0.0.0:55050]
2019-12-03 11:02:14.679 1161-1175/? D/WindowManager: finishDrawingWindow: Window{522a96e u0 com.shcode.HordeMode/com.unity3d.player.UnityPlayerActivity} mDrawState=HAS_DRAWN
2019-12-03 11:02:14.693 12590-12611/? E/CRASH: pid: 12590, tid: 12611, name: UnityMain >>> com.shcode.HordeMode <<<
2019-12-03 11:02:14.778 1161-1297/? V/WindowManager: Removing Window{f46783b u0 Splash Screen com.shcode.HordeMode} from AppWindowToken{777b372 token=Token{9cd187d ActivityRecord{8320ed4 u0 com.shcode.HordeMode/com.unity3d.player.UnityPlayerActivity t18726}}}
2019-12-03 11:02:14.783 1161-1323/? W/InputDispatcher: channel '522a96e com.shcode.HordeMode/com.unity3d.player.UnityPlayerActivity (server)' ~ Consumer closed input channel or an error occurred. events=0x9
2019-12-03 11:02:14.783 1161-1323/? E/InputDispatcher: channel '522a96e com.shcode.HordeMode/com.unity3d.player.UnityPlayerActivity (server)' ~ Channel is unrecoverably broken and will be disposed!
2019-12-03 11:02:14.786 1161-9242/? W/ActivityManager: Force removing ActivityRecord{8320ed4 u0 com.shcode.HordeMode/com.unity3d.player.UnityPlayerActivity t18726}: app died, no saved state
2019-12-03 11:02:14.799 1161-9242/? I/WindowManager: Failed to capture screenshot of Token{9cd187d ActivityRecord{8320ed4 u0 com.shcode.HordeMode/com.unity3d.player.UnityPlayerActivity t18726 f}} appWin=Window{522a96e u0 com.shcode.HordeMode/com.unity3d.player.UnityPlayerActivity} drawState=4
2019-12-03 11:02:14.799 1161-9242/? V/WindowManager: removeAppToken: AppWindowToken{777b372 token=Token{9cd187d ActivityRecord{8320ed4 u0 com.shcode.HordeMode/com.unity3d.player.UnityPlayerActivity t18726}}} delayed=false Callers=com.android.server.wm.DisplayContent.removeAppToken:994 com.android.server.wm.AppWindowContainerController.removeContainer:352 com.android.server.am.ActivityRecord.removeWindowContainer:1045 com.android.server.am.ActivityStack.removeActivityFromHistoryLocked:4486
2019-12-03 11:02:14.799 1161-9242/? V/WindowManager: removeIfPossible: Window{522a96e u0 com.shcode.HordeMode/com.unity3d.player.UnityPlayerActivity} callers=com.android.server.wm.WindowState.removeIfPossible:1914 com.android.server.wm.WindowToken.removeAllWindowsIfPossible:139 com.android.server.wm.AppWindowToken.removeIfPossible:556 com.android.server.wm.AppWindowToken.onRemovedFromDisplay:623 com.android.server.wm.DisplayContent.removeAppToken:994
2019-12-03 11:02:14.799 1161-9242/? W/InputDispatcher: Attempted to unregister already unregistered input channel '522a96e com.shcode.HordeMode/com.unity3d.player.UnityPlayerActivity (server)'
2019-12-03 11:02:14.799 1161-9242/? W/WindowManager: Keyguard is occluded and there is no window in AppWindowToken{777b372 token=Token{9cd187d ActivityRecord{8320ed4 u0 com.shcode.HordeMode/com.unity3d.player.UnityPlayerActivity t18726}}}
2019-12-03 11:02:14.800 1161-9242/? I/WindowManager: Destroying surface Surface(name=com.shcode.HordeMode/com.unity3d.player.UnityPlayerActivity) called by com.android.server.wm.WindowStateAnimator.destroySurface:2089 com.android.server.wm.WindowStateAnimator.destroySurfaceLocked:899 com.android.server.wm.HwWindowStateAnimator.destroySurfaceLocked:1006 com.android.server.wm.WindowState.removeImmediately:1899 com.android.server.wm.WindowState.removeIfPossible:2051 com.android.server.wm.WindowState.removeIfPossible:1914 com.android.server.wm.WindowToken.removeAllWindowsIfPossible:139 com.android.server.wm.AppWindowToken.removeIfPossible:556
2019-12-03 11:02:14.800 1161-9242/? W/WindowManager: Exception thrown when updateSurfaceStatusWindowStateAnimator{875d80f com.shcode.HordeMode/com.unity3d.player.UnityPlayerActivity}: android.os.DeadObjectException
2019-12-03 11:02:14.800 1161-9242/? V/WindowManager: postWindowRemoveCleanupLocked: Window{522a96e u0 com.shcode.HordeMode/com.unity3d.player.UnityPlayerActivity}
2019-12-03 11:02:14.800 1161-9242/? V/WindowManager: Removing Window{522a96e u0 com.shcode.HordeMode/com.unity3d.player.UnityPlayerActivity} from AppWindowToken{777b372 token=Token{9cd187d ActivityRecord{8320ed4 u0 com.shcode.HordeMode/com.unity3d.player.UnityPlayerActivity t18726}}}
So, it seems this is bug in the unity version I'm using: 2019.2.0f1
The problem (as described here) seems to be that the game uses old il2cpp files with the new build (if the phone has Backup and Automatic Restore options enabled). Fix is deleting Android/data/ folder on the phone itself, since Unity re-creates those files on launch if they're missing.
Another way to fix this would be, I assume, switching the build format from il2cpp to anything else.
Lastly, this issue is fixed in Unity 2019.2.6
Link to bug report in Unity tracker, which also contains detailed explanation of the fix itself and why it (probably) works.

Dialog doesn't work on onStart or onCreate but works great after minimizing and opening back

I Implement a dialog which asks user to enter the PIN for security, The dialog displays when app runs but keyboards showing qwerty keyboard but in xml I has set inputType="numberpassword" and pressing any keys in quetry doesnot takes any input in EditText. BUT After minimizing the app and opening again it will show a number keyboard Which I need to disply when App starts at first.
Which might be the problem?? Below I have pasted the code and Screenshots.
onStart
protected void onStart() {
super.onStart();
SharedPreferences SP = PreferenceManager.getDefaultSharedPreferences(getBaseContext());
lock_app = SP.getBoolean("lock_app", false);
LockImmediately(this);
}
public void LockImmediately(Context context) {
if (lock_app) {
final View myview = LayoutInflater.from(context).inflate(R.layout.activity_pwd, null);
enterPWD = (EditText) myview.findViewById(R.id.pwdValue);
Log.d("myerror", pwd);
AlertDialog alertDialog = new AlertDialog.Builder(context).setIcon(R.drawable.ic_lock_black_24dp).setCancelable(false)
.setView(myview).setPositiveButton("OK", new DialogInterface.OnClickListener() {
#Override
public void onClick(DialogInterface dialog, int which) {
String user_text = enterPWD.getText().toString();
if ((pwd.equals(user_text))) {
dialog.dismiss();
} else {
dialog.dismiss();
MainActivity.this.finish();
}
}
}).create();
alertDialog.show();
}
}
#Override
protected void onPause() {
super.onPause();
if (bottom_addView!=null){
bottom_addView.pause();
}
}
activity_pwd.xml
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:id="#+id/layout_root"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical"
android:padding="10dp" >
<TextView
android:id="#+id/textView1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Enter PIN "
android:textAppearance="?android:attr/textAppearanceLarge" />
<EditText
android:id="#+id/pwdValue"
android:layout_width="match_parent"
android:maxLength="4"
android:maxLines="1"
android:inputType="numberPassword"
android:layout_height="wrap_content">
</EditText>
</LinearLayout>
LogCat When App starts at First
02-24 20:38:10.700 13795-13795/? I/art: Late-enabling -Xcheck:jni
02-24 20:38:10.746 13795-13795/com.developersqueen.wishlater W/asset: No ResTable, no resources need to be removed or added
02-24 20:38:10.755 13795-13795/com.developersqueen.wishlater W/System: ClassLoader referenced unknown path: /data/app/com.developersqueen.wishlater-1/lib/arm64
02-24 20:38:10.757 13795-13795/com.developersqueen.wishlater I/InstantRun: Instant Run Runtime started. Android package is com.developersqueen.wishlater, real application class is null.
02-24 20:38:10.946 13795-13795/com.developersqueen.wishlater W/System: ClassLoader referenced unknown path: /data/app/com.developersqueen.wishlater-1/lib/arm64
02-24 20:38:11.179 13795-13795/com.developersqueen.wishlater W/art: Before Android 4.1, method android.graphics.PorterDuffColorFilter android.support.graphics.drawable.VectorDrawableCompat. updateTintFilter(android.graphics.PorterDuffColorFilter, android.content.res.ColorStateList, android.graphics.PorterDuff$Mode) would have incorrectly overridden the package-private method in android.graphics.drawable.Drawable
02-24 20:38:11.521 13795-13795/com.developersqueen.wishlater I/Timeline: Timeline: Activity_launch_request id:com.developersqueen.wishlater time:83965007
02-24 20:38:11.769 13795-13795/com.developersqueen.wishlater V/BoostFramework: mAcquireFunc method = public int com.qualcomm.qti.Performance.perfLockAcquire(int,int[])
02-24 20:38:11.769 13795-13795/com.developersqueen.wishlater V/BoostFramework: mReleaseFunc method = public int com.qualcomm.qti.Performance.perfLockRelease()
02-24 20:38:11.769 13795-13795/com.developersqueen.wishlater V/BoostFramework: mAcquireTouchFunc method = public int com.qualcomm.qti.Performance.perfLockAcquireTouch(android.view.MotionEvent,android.util.DisplayMetrics,int,int[])
02-24 20:38:11.769 13795-13795/com.developersqueen.wishlater V/BoostFramework: mIOPStart method = public int com.qualcomm.qti.Performance.perfIOPrefetchStart(int,java.lang.String)
02-24 20:38:11.769 13795-13795/com.developersqueen.wishlater V/BoostFramework: mIOPStop method = public int com.qualcomm.qti.Performance.perfIOPrefetchStop()
02-24 20:38:11.775 13795-13795/com.developersqueen.wishlater V/BoostFramework: BoostFramework() : mPerf = com.qualcomm.qti.Performance#7268965
02-24 20:38:11.775 13795-13795/com.developersqueen.wishlater V/BoostFramework: BoostFramework() : mPerf = com.qualcomm.qti.Performance#263763a
02-24 20:38:11.920 13795-13795/com.developersqueen.wishlater V/BoostFramework: BoostFramework() : mPerf = com.qualcomm.qti.Performance#8ef0119
02-24 20:38:11.921 13795-13795/com.developersqueen.wishlater V/BoostFramework: BoostFramework() : mPerf = com.qualcomm.qti.Performance#26f45de
02-24 20:38:11.921 13795-13795/com.developersqueen.wishlater V/BoostFramework: BoostFramework() : mPerf = com.qualcomm.qti.Performance#85e93bf
02-24 20:38:11.921 13795-13795/com.developersqueen.wishlater V/BoostFramework: BoostFramework() : mPerf = com.qualcomm.qti.Performance#6034a8c
02-24 20:38:12.234 13795-13795/com.developersqueen.wishlater V/BoostFramework: BoostFramework() : mPerf = com.qualcomm.qti.Performance#872acdb
02-24 20:38:12.234 13795-13795/com.developersqueen.wishlater V/BoostFramework: BoostFramework() : mPerf = com.qualcomm.qti.Performance#5e08378
02-24 20:38:12.332 13795-13795/com.developersqueen.wishlater W/asset: No ResTable, no resources need to be removed or added
02-24 20:38:12.465 13795-13795/com.developersqueen.wishlater W/asset: No ResTable, no resources need to be removed or added
02-24 20:38:12.469 13795-13795/com.developersqueen.wishlater D/DynamitePackage: Instantiated singleton DynamitePackage.
02-24 20:38:12.469 13795-13795/com.developersqueen.wishlater D/DynamitePackage: Instantiating com.google.android.gms.ads.ChimeraAdManagerCreatorImpl
02-24 20:38:12.542 13795-13857/com.developersqueen.wishlater I/DynamiteModule: Considering local module com.google.android.gms.piccard.dynamite:0 and remote module com.google.android.gms.piccard.dynamite:12
02-24 20:38:12.543 13795-13857/com.developersqueen.wishlater I/DynamiteModule: Selected remote version of com.google.android.gms.piccard.dynamite, version >= 12
02-24 20:38:12.636 13795-13857/com.developersqueen.wishlater W/VideoCapabilities: Unrecognized profile 2130706433 for video/avc
02-24 20:38:12.661 13795-13857/com.developersqueen.wishlater W/VideoCapabilities: Unrecognized profile/level 0/3 for video/mpeg2
02-24 20:38:12.664 13795-13857/com.developersqueen.wishlater W/VideoCapabilities: Unrecognized profile/level 0/3 for video/mpeg2
02-24 20:38:12.672 13795-13857/com.developersqueen.wishlater W/VideoCapabilities: Unsupported mime video/x-ms-wmv
02-24 20:38:12.675 13795-13857/com.developersqueen.wishlater W/VideoCapabilities: Unsupported mime video/divx
02-24 20:38:12.677 13795-13857/com.developersqueen.wishlater W/VideoCapabilities: Unsupported mime video/divx311
02-24 20:38:12.679 13795-13857/com.developersqueen.wishlater W/VideoCapabilities: Unsupported mime video/divx4
02-24 20:38:12.688 13795-13857/com.developersqueen.wishlater W/VideoCapabilities: Unsupported mime video/mp4v-esdp
02-24 20:38:12.712 13795-13857/com.developersqueen.wishlater I/VideoCapabilities: Unsupported profile 4 for video/mp4v-es
02-24 20:38:12.764 13795-13795/com.developersqueen.wishlater I/Ads: Starting ad request.
02-24 20:38:12.790 13795-13863/com.developersqueen.wishlater I/WebViewFactory: Loading com.google.android.webview version 55.0.2883.91 (code 288309150)
02-24 20:38:12.850 13795-13863/com.developersqueen.wishlater W/asset: No ResTable, no resources need to be removed or added
02-24 20:38:12.881 13795-13795/com.developersqueen.wishlater W/ActionBarDrawerToggle: DrawerToggle may not show up because NavigationIcon is not visible. You may need to call actionbar.setDisplayHomeAsUpEnabled(true);
02-24 20:38:12.883 13795-13863/com.developersqueen.wishlater I/art: Rejecting re-init on previously-failed class java.lang.Class<com.android.webview.chromium.TokenBindingManagerAdapter>
02-24 20:38:12.883 13795-13863/com.developersqueen.wishlater I/art: Rejecting re-init on previously-failed class java.lang.Class<com.android.webview.chromium.TokenBindingManagerAdapter>
02-24 20:38:12.892 13795-13863/com.developersqueen.wishlater I/art: Rejecting re-init on previously-failed class java.lang.Class<com.android.webview.chromium.ServiceWorkerControllerAdapter>
02-24 20:38:12.893 13795-13863/com.developersqueen.wishlater I/art: Rejecting re-init on previously-failed class java.lang.Class<com.android.webview.chromium.ServiceWorkerControllerAdapter>
02-24 20:38:12.893 13795-13795/com.developersqueen.wishlater D/DynamitePackage: Instantiating com.google.android.gms.ads.ChimeraAdManagerCreatorImpl
02-24 20:38:12.897 13795-13795/com.developersqueen.wishlater I/Ads: Starting ad request.
02-24 20:38:12.901 13795-13863/com.developersqueen.wishlater I/cr_LibraryLoader: Time to load native libraries: 1 ms (timestamps 6385-6386)
02-24 20:38:12.901 13795-13863/com.developersqueen.wishlater I/cr_LibraryLoader: Expected native library version number "55.0.2883.91", actual native library version number "55.0.2883.91"
02-24 20:38:12.964 13795-13795/com.developersqueen.wishlater D/DynamitePackage: Instantiating com.google.android.gms.ads.ChimeraAdManagerCreatorImpl
02-24 20:38:12.967 13795-13795/com.developersqueen.wishlater I/Ads: Starting ad request.
02-24 20:38:12.976 13795-13795/com.developersqueen.wishlater D/DynamitePackage: Instantiating com.google.android.gms.ads.ChimeraAdManagerCreatorImpl
02-24 20:38:12.979 13795-13795/com.developersqueen.wishlater I/Ads: Starting ad request.
02-24 20:38:13.004 13795-13795/com.developersqueen.wishlater D/myerror: 0000
02-24 20:38:13.017 13795-13795/com.developersqueen.wishlater V/BoostFramework: BoostFramework() : mPerf = com.qualcomm.qti.Performance#177cb48
02-24 20:38:13.017 13795-13795/com.developersqueen.wishlater V/BoostFramework: BoostFramework() : mPerf = com.qualcomm.qti.Performance#1a1ade1
02-24 20:38:13.031 13795-13899/com.developersqueen.wishlater D/OpenGLRenderer: Use EGL_SWAP_BEHAVIOR_PRESERVED: true
02-24 20:38:13.117 13795-13899/com.developersqueen.wishlater I/Adreno: QUALCOMM build : d842ad3, Ia10634f51b
Build Date : 01/04/16
OpenGL ES Shader Compiler Version: XE031.06.00.05
Local Branch : mybranch17585849
Remote Branch : quic/LA.BR.1.2.6_rb1.7
Remote Branch : NONE
Reconstruct Branch : NOTHING
02-24 20:38:13.124 13795-13899/com.developersqueen.wishlater I/OpenGLRenderer: Initialized EGL, version 1.4
02-24 20:38:13.896 13795-13795/com.developersqueen.wishlater I/Timeline: Timeline: Activity_idle id: android.os.BinderProxy#e253f4 time:83967381
02-24 20:38:14.341 13795-13795/com.developersqueen.wishlater I/cr_LibraryLoader: Expected native library version number "55.0.2883.91", actual native library version number "55.0.2883.91"
02-24 20:38:14.342 13795-13795/com.developersqueen.wishlater I/chromium: [INFO:library_loader_hooks.cc(163)] Chromium logging enabled: level = 0, default verbosity = 0
02-24 20:38:14.377 13795-13795/com.developersqueen.wishlater I/cr_BrowserStartup: Initializing chromium process, singleProcess=true
02-24 20:38:14.681 13795-13795/com.developersqueen.wishlater I/cr_Ime: ImeThread is enabled.
02-24 20:38:14.682 13795-13945/com.developersqueen.wishlater W/cr_media: Requires BLUETOOTH permission
02-24 20:38:14.768 13795-13795/com.developersqueen.wishlater E/chromium: [ERROR:interface_registry.cc(104)] Failed to locate a binder for interface: autofill::mojom::PasswordManagerDriver
02-24 20:38:14.782 13795-13965/com.developersqueen.wishlater E/libEGL: validate_display:255 error 3008 (EGL_BAD_DISPLAY)
02-24 20:38:14.872 13795-13795/com.developersqueen.wishlater W/cr_BindingManager: Cannot call determinedVisibility() - never saw a connection for the pid: 13795
02-24 20:38:15.413 13795-13795/com.developersqueen.wishlater D/TextView: enter getOffsetForPosition
02-24 20:38:15.468 13795-13795/com.developersqueen.wishlater D/TextView: enter getOffsetForPos ition
LogCat After Minimizing and Reopening app(This time dialog works well)
02-24 20:38:23.988 13795-13795/com.developersqueen.wishlater I/Ads: Ad finished loading.
02-24 20:38:24.034 13795-13795/com.developersqueen.wishlater I/cr_Ime: ImeThread is enabled.
02-24 20:38:24.059 13795-13795/com.developersqueen.wishlater I/Timeline: Timeline: Activity_launch_request id:com.developersqueen.wishlater time:83977544
02-24 20:38:24.086 13795-13795/com.developersqueen.wishlater E/chromium: [ERROR:interface_registry.cc(104)] Failed to locate a binder for interface: autofill::mojom::PasswordManagerDriver
02-24 20:38:24.108 13795-13795/com.developersqueen.wishlater D/myerror: 0000
02-24 20:38:24.120 13795-13795/com.developersqueen.wishlater V/BoostFramework: BoostFramework() : mPerf = com.qualcomm.qti.Performance#50e633c
02-24 20:38:24.120 13795-13795/com.developersqueen.wishlater V/BoostFramework: BoostFramework() : mPerf = com.qualcomm.qti.Performance#5c4b8c5
02-24 20:38:24.249 13795-13795/com.developersqueen.wishlater D/DynamitePackage: Instantiating com.google.android.gms.ads.ChimeraAdOverlayCreatorImpl
02-24 20:38:24.268 13795-13795/com.developersqueen.wishlater I/Ads: Ad opening.
02-24 20:38:24.715 13795-13795/com.developersqueen.wishlater W/cr_BindingManager: Cannot call determinedVisibility() - never saw a connection for the pid: 13795
02-24 20:38:24.717 13795-13795/com.developersqueen.wishlater I/chromium: [INFO:CONSOLE(0)] "Document was loaded from Application Cache with manifest https://googleads.g.doubleclick.net/mads/ static/mad/sdk/native/sdk-core-v40-loader.appcache", source: https://googleads.g.doubleclick.net/mads/static/mad/sdk/native/sdk-core-v40-loader.html (0)
02-24 20:38:24.718 13795-13795/com.developersqueen.wishlater I/chromium: [INFO:CONSOLE(0)] "Application Cache Checking event", source: https://googleads.g.doubleclick.net/mads/static/mad/sdk/native/sdk-core-v40-loader.html (0)
02-24 20:38:24.883 13795-13795/com.developersqueen.wishlater I/Timeline: Timeline: Activity_idle id: android.os.BinderProxy#858be9 time:83978369
02-24 20:38:24.884 13795-13795/com.developersqueen.wishlater I/Timeline: Timeline: Activity_idle id: android.os.BinderProxy#858be9 time:83978369
02-24 20:38:25.765 13795-13795/com.developersqueen.wishlater I/cr_Ime: ImeThread is enabled.
02-24 20:38:25.805 13795-13795/com.developersqueen.wishlater E/chromium: [ERROR:interface_registry.cc(104)] Failed to locate a binder for interface: autofill::mojom::PasswordManagerDriver
02-24 20:38:25.820 13795-13795/com.developersqueen.wishlater W/cr_BindingManager: Cannot call determinedVisibility() - never saw a connection for the pid: 13795
02-24 20:38:26.081 13795-13795/com.developersqueen.wishlater I/chromium: [INFO:CONSOLE(0)] "Application Cache NoUpdate event", source: https://googleads.g.doubleclick.net/mads/static/mad/sdk/native/sdk-core-v40-loader.html (0)
02-24 20:38:26.255 13795-13795/com.developersqueen.wishlater I/Ads: Ad finished loading.
02-24 20:38:26.256 13795-13795/com.developersqueen.wishlater W/Ads: The interstitial is already showing.
02-24 20:38:27.782 13795-13795/com.developersqueen.wishlater I/Ads: Ad closing.
02-24 20:38:27.851 13795-13795/com.developersqueen.wishlater W/cr_BindingManager: Cannot call determinedVisibility() - never saw a connection for the pid: 13795
02-24 20:38:27.955 13795-13795/com.developersqueen.wishlater I/Timeline: Timeline: Activity_idle id: android.os.BinderProxy#e253f4 time:83981441
02-24 20:38:29.961 13795-13795/com.developersqueen.wishlater D/TextView: enter getOffsetForPosition
02-24 20:38:30.031 13795-13795/com.developersqueen.wishlater D/TextView: enter getOffsetForPosition
02-24 20:38:35.704 13795-13795/com.developersqueen.wishlater I/cr_Ime: ImeThread is enabled.
02-24 20:38:35.705 13795-13795/com.developersqueen.wishlater E/chromium: [ERROR:interface_registry.cc(104)] Failed to locate a binder for interface: autofill::mojom::PasswordManagerDriver
02-24 20:38:35.743 13795-13805/com.developersqueen.wishlater I/art: Background partial concurrent mark sweep GC freed 10967(624KB) AllocSpace objects, 14(2MB) LOS objects, 11% free, 30MB/34MB, paused 5.169ms total 60.242ms
02-24 20:38:35.765 13795-13795/com.developersqueen.wishlater W/cr_BindingManager: Cannot call determinedVisibility() - never saw a connection for the pid: 13795
02-24 20:38:36.140 13795-13795/com.developersqueen.wishlater I/Ads: Scheduling ad refresh 60000 milliseconds from now.
02-24 20:38:36.159 13795-13795/com.developersqueen.wishlater I/Ads: Ad finished loading.
02-24 20:38:38.669 13795-13795/com.developersqueen.wishlater I/cr_Ime: ImeThread is enabled.
02-24 20:38:38.678 13795-13795/com.developersqueen.wishlater E/chromium: [ERROR:interface_registry.cc(104)] Failed to locate a binder for interface: autofill::mojom::PasswordManagerDriver
02-24 20:38:38.753 13795-13795/com.developersqueen.wishlater W/cr_BindingManager: Cannot call determinedVisibility() - never saw a connection for the pid: 13795
02-24 20:38:38.915 13795-13795/com.developersqueen.wishlater I/Ads: Scheduling ad refresh 60000 milliseconds from now.
02-24 20:38:38.927 13795-13795/com.developersqueen.wishlater I/Ads: Ad finished loading.

R error Android Studio when rebuilding project

I was having an issue with the R symbol in my Android app (it was imported as import com.myName.runmate.R; When I removed this lined, I resynched with Gradle and rebuilt the project but I got the following in Messages Gradle Build - Error:(73, 44) error: package R does not exist
The logcat output:
09-19 13:21:01.969 746-821/? I/PowerManagerService﹕ Going to sleep due to screen timeout (uid 1000)...
09-19 13:21:01.970 746-821/? I/PowerManagerService﹕ Sleeping (uid 1000)...
09-19 13:21:02.078 909-909/? D/PhoneStatusBar﹕ disable: < expand ICONS alerts SYSTEM_INFO back HOME RECENT clock SEARCH >
09-19 13:21:02.104 188-856/? D/audio_hw_primary﹕ adev_set_parameters: enter: screen_state=off
09-19 13:21:02.127 746-842/? E/WifiStateMachine﹕ cancelDelayedScan -> 2163
09-19 13:21:02.128 746-842/? E/native﹕ do suspend true
09-19 13:21:02.529 746-819/? I/DisplayManagerService﹕ Display device changed: DisplayDeviceInfo{"Built-in Screen": uniqueId="local:0", 1080 x 1920, 60.0 fps, supportedRefreshRates [60.0], density 480, 442.451 x 443.345 dpi, appVsyncOff 7500000, presDeadline 12666667, touch INTERNAL, rotation 0, type BUILT_IN, state OFF, FLAG_DEFAULT_DISPLAY, FLAG_ROTATES_WITH_CONTENT, FLAG_SECURE, FLAG_SUPPORTS_PROTECTED_BUFFERS}
09-19 13:21:02.529 175-175/? D/SurfaceFlinger﹕ Set power mode=0, type=0 flinger=0xb6482000
09-19 13:21:02.529 175-175/? D/qdhwcomposer﹕ hwc_blank: Blanking display: 0
09-19 13:21:02.530 746-746/? V/ActivityManager﹕ Display changed displayId=0
09-19 13:21:02.813 175-175/? D/qdhwcomposer﹕ hwc_blank: Done blanking display: 0
09-19 13:21:02.813 746-867/? D/SurfaceControl﹕ Excessive delay in setPowerMode(): 284ms
09-19 13:21:02.813 2046-2050/? E/ANDR-PERF-LOCK﹕ Failed to apply optimization for resource: 4 level: 0
09-19 13:21:28.638 746-746/? I/EntropyMixer﹕ Writing entropy...
09-19 13:21:28.640 746-821/? I/PowerManagerService﹕ Waking up from sleep (uid 1000)...
09-19 13:21:28.640 746-821/? I/DisplayPowerController﹕ Blocking screen on until initial contents have been drawn.
09-19 13:21:28.667 1086-1086/? I/PowerConnectionBroadcastReceiver﹕ onReceive() : Device plugged in.
09-19 13:21:28.667 1086-1086/? I/StatsUtilsManager﹕ startPeriodStatsRecorder() : Success
09-19 13:21:28.667 1086-1086/? I/PeriodicStatsRecorder﹕ shouldRecordStats() = Too Soon
09-19 13:21:28.671 8907-8907/? E/NetworkScheduler.SchedulerReceiver﹕ Invalid parameter app
09-19 13:21:28.671 8907-8907/? E/NetworkScheduler.SchedulerReceiver﹕ Invalid package name : Perhaps you didn't include a PendingIntent in the extras?
09-19 13:21:28.672 9422-9422/? I/GCoreUlr﹕ Starting service, intent=Intent { act=com.google.android.location.reporting.ACTION_UPDATE_WORLD cmp=com.google.android.gms/com.google.android.location.reporting.service.DispatchingService (has extras) }, extras=Bundle[{receiverAction=android.intent.action.ACTION_POWER_CONNECTED}]
09-19 13:21:28.674 9422-9422/? I/GCoreUlr﹕ DispatchingService.onCreate()
09-19 13:21:28.678 9496-9496/? I/iu.Environment﹕ update battery state; isPlugged? true*
09-19 13:21:28.684 9496-12232/? I/iu.UploadsManager﹕ num queued entries: 0
09-19 13:21:28.686 9496-12232/? I/iu.UploadsManager﹕ num updated entries: 0
09-19 13:21:28.688 9496-12232/? I/iu.SyncManager﹕ NEXT; no task
09-19 13:21:28.697 9496-28033/? I/iu.FingerprintManager﹕ Start processing all media
09-19 13:21:28.708 9496-28033/? I/iu.FingerprintManager﹕ Start processing media store URI: content://media/external/images/media
09-19 13:21:28.719 2046-2050/? E/ANDR-PERF-LOCK﹕ Failed to reset optimization for resource: 4 level: 0
09-19 13:21:28.720 746-819/? I/DisplayManagerService﹕ Display device changed: DisplayDeviceInfo{"Built-in Screen": uniqueId="local:0", 1080 x 1920, 60.0 fps, supportedRefreshRates [60.0], density 480, 442.451 x 443.345 dpi, appVsyncOff 7500000, presDeadline 12666667, touch INTERNAL, rotation 0, type BUILT_IN, state ON, FLAG_DEFAULT_DISPLAY, FLAG_ROTATES_WITH_CONTENT, FLAG_SECURE, FLAG_SUPPORTS_PROTECTED_BUFFERS}
09-19 13:21:28.720 175-175/? D/SurfaceFlinger﹕ Set power mode=2, type=0 flinger=0xb6482000
09-19 13:21:28.720 175-175/? D/qdhwcomposer﹕ hwc_blank: Unblanking display: 0
09-19 13:21:28.769 9496-28033/? I/iu.FingerprintManager﹕ Start processing media store URI: content://media/external/video/media
09-19 13:21:28.775 9496-28033/? I/iu.FingerprintManager﹕ Start processing media store URI: content://media/phoneStorage/images/media
09-19 13:21:28.778 9496-28033/? I/iu.FingerprintManager﹕ Start processing media store URI: content://media/phoneStorage/video/media
09-19 13:21:28.779 9496-28033/? I/iu.FingerprintManager﹕ Finished generating fingerprints; 0.082 seconds
09-19 13:21:28.779 9496-28033/? I/iu.FingerprintManager﹕ numSeen=680 numGenerated=0 numDeleted=0 numFailed=0
09-19 13:21:28.796 746-746/? V/KeyguardServiceDelegate﹕ onScreenTurnedOn(showListener = com.android.internal.policy.impl.PhoneWindowManager$2#280fe250)
09-19 13:21:28.797 746-746/? V/ActivityManager﹕ Display changed displayId=0
09-19 13:21:28.807 27346-28044/? I/GAv4﹕ Google Analytics 7.8.95 is starting up. To enable debug logging on a device run:
adb shell setprop log.tag.GAv4 DEBUG
adb logcat -s GAv4
09-19 13:21:28.812 9422-28036/? I/GCoreUlr﹕ WorldUpdater received intent Intent { act=com.google.android.location.reporting.ACTION_UPDATE_WORLD cmp=com.google.android.gms/com.google.android.location.reporting.service.DispatchingService (has extras) } with receiverAction android.intent.action.ACTION_POWER_CONNECTED
09-19 13:21:28.823 746-1213/? V/KeyguardServiceDelegate﹕ **** SHOWN CALLED ****
09-19 13:21:28.823 746-821/? I/DisplayPowerController﹕ Unblocked screen on after 183 ms
09-19 13:21:28.829 188-188/? D/audio_hw_primary﹕ adev_set_parameters: enter: screen_state=on
09-19 13:21:28.845 746-842/? E/WifiStateMachine﹕ cancelDelayedScan -> 2164
09-19 13:21:28.846 1148-25581/? D/BrcmNfcJni﹕ RoutingManager::nfaEeCallback: NFA_EE_SET_TECH_CFG_EVT; status=0x0
09-19 13:21:28.846 1148-25581/? D/BrcmNfcJni﹕ RoutingManager::nfaEeCallback: NFA_EE_SET_PROTO_CFG_EVT; status=0x0
09-19 13:21:28.846 1148-1379/? D/BrcmNfcJni﹕ RoutingManager::commitRouting
09-19 13:21:28.846 746-842/? E/native﹕ do suspend false
09-19 13:21:28.856 27346-28044/? W/GAv4﹕ AnalyticsReceiver is not registered or is disabled. Register the receiver for reliable dispatching on non-Google Play devices. See http://goo.gl/8Rd3yj for instructions.
09-19 13:21:28.856 746-762/? W/ActivityManager﹕ getRunningAppProcesses: caller 10065 does not hold REAL_GET_TASKS; limiting output
09-19 13:21:28.865 27346-28044/? W/GAv4﹕ CampaignTrackingReceiver is not registered, not exported or is disabled. Installation campaign tracking is not possible. See http://goo.gl/8Rd3yj for instructions.
09-19 13:21:28.868 1148-25581/? D/BrcmNfcJni﹕ RoutingManager::nfaEeCallback: NFA_EE_UPDATED_EVT
09-19 13:21:28.871 27346-28055/? W/GAv4﹕ AnalyticsService not registered in the app manifest. Hits might not be delivered reliably. See http://goo.gl/8Rd3yj for instructions.
09-19 13:21:28.906 746-761/? I/art﹕ Explicit concurrent mark sweep GC freed 28154(1676KB) AllocSpace objects, 2(73KB) LOS objects, 30% free, 36MB/52MB, paused 1.413ms total 89.320ms
09-19 13:21:28.919 746-1252/? I/ActivityManager﹕ Start proc 28057:com.estrongs.android.pop/u0a144 for broadcast com.estrongs.android.pop/.app.StartServiceReceiver
09-19 13:21:28.951 28057-28057/? E/ObjectHelper﹕ Can't find method:setCompatibilityInfo
09-19 13:21:28.959 175-175/? D/qdhwcomposer﹕ hwc_blank: Done unblanking display: 0
09-19 13:21:28.959 746-867/? D/SurfaceControl﹕ Excessive delay in setPowerMode(): 239ms
09-19 13:21:28.976 28057-28077/? D/an﹕ Refresh storage info done.21
09-19 13:21:28.982 9422-28036/? I/GCoreUlr﹕ WorldUpdater:android.intent.action.ACTION_POWER_CONNECTED: Ensuring that reporting is stopped because of reasons: {account#-19#=[InactiveReason{mVersionCode=0, mIdentifier=6, mName='ReportingNotEnabled'}]}
09-19 13:21:28.985 9422-28036/? I/GCoreUlr﹕ Unbound from all location providers
09-19 13:21:28.996 9422-9422/? I/GCoreUlr﹕ DispatchingService.onDestroy()
09-19 13:21:28.996 9422-9422/? I/GCoreUlr﹕ Stopping handler for UlrDispSvcFast
09-19 13:21:28.999 9422-9422/? I/GCoreUlr﹕ Unbound from all location providers
09-19 13:21:29.038 28057-28079/? W/ResourceType﹕ No package identifier when getting value for resource number 0x00000000
09-19 13:21:29.453 746-17030/? D/AlarmManagerService﹕ Kernel timezone updated to -60 minutes west of GMT
09-19 13:21:29.460 27491-27491/? D/CellBroadcastReceiver﹕ onReceive Intent { act=android.intent.action.SERVICE_STATE flg=0x10 cmp=com.android.cellbroadcastreceiver/.CellBroadcastReceiver (has extras) }
09-19 13:21:29.460 27491-27491/? D/CellBroadcastReceiver﹕ Intent ACTION_SERVICE_STATE_CHANGED
09-19 13:21:29.460 27491-27491/? D/CellBroadcastReceiver﹕ Service state changed! 0 Full: 0 0 voice home data home O2 - UK O2 - UK 23410 O2 - UK O2 - UK 23410 UMTS HSPAP CSS not supported -1 -1 RoamInd=-1 DefRoamInd=-1 EmergOnly=false Current state=-1
09-19 13:21:29.464 746-844/? D/ConnectivityService﹕ rematching NetworkAgentInfo [MOBILE (HSPA) - 127]
09-19 13:21:29.464 746-844/? D/ConnectivityService﹕ Network NetworkAgentInfo [MOBILE (HSPA) - 127] was already satisfying request 1. No change.
09-19 13:21:29.464 746-844/? D/ConnectivityService﹕ notifyType AVAILABLE for NetworkAgentInfo [MOBILE (HSPA) - 127]
09-19 13:21:29.465 746-844/? D/ConnectivityService﹕ notifyType CAP_CHANGED for NetworkAgentInfo [MOBILE (HSPA) - 127]
09-19 13:21:29.466 746-844/? D/ConnectivityService﹕ Setting tx/rx TCP buffers to 122334,734003,2202010,32040,192239,576717
09-19 13:21:29.468 9496-27601/? D/ConnectivityManager.CallbackHandler﹕ CM callback handler got msg 524290
09-19 13:21:29.469 909-1321/? D/ConnectivityManager.CallbackHandler﹕ CM callback handler got msg 524290
09-19 13:21:29.470 909-1321/? D/ConnectivityManager.CallbackHandler﹕ CM callback handler got msg 524294
09-19 13:21:29.470 9496-27601/? D/ConnectivityManager.CallbackHandler﹕ CM callback handler got msg 524294
09-19 13:21:29.472 746-746/? I/ValidateNoPeople﹕ skipping global notification
09-19 13:21:29.473 746-746/? V/NotificationService﹕ pkg=android canInterrupt=false intercept=true
09-19 13:21:29.485 746-746/? I/ValidateNoPeople﹕ skipping global notification
09-19 13:21:29.485 746-746/? V/NotificationService﹕ pkg=android canInterrupt=false intercept=true
09-19 13:21:29.496 746-844/? D/ConnectivityService﹕ notifyType IP_CHANGED for NetworkAgentInfo [MOBILE (HSPA+) - 127]
09-19 13:21:29.500 909-1321/? D/ConnectivityManager.CallbackHandler﹕ CM callback handler got msg 524295
09-19 13:21:29.501 9496-27601/? D/ConnectivityManager.CallbackHandler﹕ CM callback handler got msg 524295
09-19 13:21:29.505 27491-28097/? D/CellBroadcastConfigService﹕ enabling emergency cell broadcast channels
09-19 13:21:29.510 1220-19744/? D/IccSmsInterfaceManager﹕ [IccSmsInterfaceManager] enableGsmBroadcastRange
09-19 13:21:29.510 1220-19744/? D/IccSmsInterfaceManager﹕ [IccSmsInterfaceManager] Added GSM cell broadcast subscription for MID range 4352 to 4354 from client com.android.cellbroadcastreceiver
09-19 13:21:29.510 1220-19744/? D/IccSmsInterfaceManager﹕ [IccSmsInterfaceManager] Calling setCellBroadcastActivation(true)
09-19 13:21:29.523 1220-5492/? D/IccSmsInterfaceManager﹕ [IccSmsInterfaceManager] enableGsmBroadcastRange
09-19 13:21:29.524 1220-5492/? D/IccSmsInterfaceManager﹕ [IccSmsInterfaceManager] Added GSM cell broadcast subscription for MID range 4356 to 4356 from client com.android.cellbroadcastreceiver
09-19 13:21:29.524 1220-5492/? D/IccSmsInterfaceManager﹕ [IccSmsInterfaceManager] Calling setCellBroadcastActivation(true)
09-19 13:21:29.531 1220-1241/? D/IccSmsInterfaceManager﹕ [IccSmsInterfaceManager] enableGsmBroadcastRange
09-19 13:21:29.532 1220-1241/? D/IccSmsInterfaceManager﹕ [IccSmsInterfaceManager] Added GSM cell broadcast subscription for MID range 4371 to 4372 from client com.android.cellbroadcastreceiver
09-19 13:21:29.532 1220-1241/? D/IccSmsInterfaceManager﹕ [IccSmsInterfaceManager] Calling setCellBroadcastActivation(true)
09-19 13:21:29.547 1220-5172/? D/IccSmsInterfaceManager﹕ [IccSmsInterfaceManager] enableCdmaBroadcastRange
09-19 13:21:29.547 1220-5172/? D/IccSmsInterfaceManager﹕ [IccSmsInterfaceManager] Calling setCdmaBroadcastConfig with 1 configurations
09-19 13:21:29.551 1220-5172/? D/IccSmsInterfaceManager﹕ [IccSmsInterfaceManager] Failed to add cdma broadcast subscription for MID range 4097 to 4097 from client com.android.cellbroadcastreceiver
09-19 13:21:29.560 1220-29365/? D/IccSmsInterfaceManager﹕ [IccSmsInterfaceManager] enableGsmBroadcastRange
09-19 13:21:29.560 1220-29365/? D/IccSmsInterfaceManager﹕ [IccSmsInterfaceManager] Added GSM cell broadcast subscription for MID range 4373 to 4378 from client com.android.cellbroadcastreceiver
Just comment the Lines Where your Getting Error With R in Java File
Then Build the project
It Should Rebuild the R file Again
Now Remove Your Comments and You are good to go
Can you ensure all your package names are the same:
package com.khackett.runmate;
Not adding the folder extension for each folder the files are in.
package com.khackett.runmate.adapters;
As you have declared in your manifest:
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.khackett.runmate" >

Android app suddenly stops - in-app purchase

After I implemented in-app purchase in my android app, it suddenly stops when I close it. And Im struggling to see what the problem is in log cat. Im receiving the error
Permission Denial: get/set setting for user asks to run as user -2 but is calling from
user 0; this requires android.permission.INTERACT_ACROSS_USERS_FULL
But I have received this error before, and the application still worked fine. Here is my log cat, I was uncertain for how much I needed to add so sorry if it is a lot. Please let me know if I need to add some more, thanks!
D/SSRMv2:Monitor( 2347): SIOP:: AP = 450 (read only)
I/InputReader( 2347): Touch event's action is 0x0 (deviceType=0) [pCnt=1, s=0.16208 ] when=116815167044000
I/InputDispatcher( 2347): Delivering touch to: action: 0x0
I/InputReader( 2347): Touch event's action is 0x1 (deviceType=0) [pCnt=1, s=] when=116815315918000
I/InputDispatcher( 2347): Delivering touch to: action: 0x1
D/BatteryService( 2347): update start
D/BatteryService( 2347): level:80, scale:100, status:2, health:2, present:true, voltage: 4085, temperature: 467, technology: Li-ion, AC powered:false, USB powered:true, Wireless powered:false, icon:17303550, invalid charger:0, online:4, charge type:1, current avg:460
D/SSRMv2:Monitor( 2347): SIOP:: AP = 450, Prev AP = 450, Duration = 10006
D/SSRMv2:Monitor( 2347): SIOP:: AP = 450 (read only)
I/InputReader( 2347): Touch event's action is 0x0 (deviceType=0) [pCnt=1, s=0.16209 ] when=116820660525000
D/InputDispatcher( 2347): Waiting for application to become ready for input: xxxx Reason: Waiting because the touched window has not finished processing the input events that were previously delivered to it.
D/PowerManagerService( 2347): [api] userActivityFromNative : 50 (event: 2 flags: 0)
D/SensorService( 2347): 0.4 9.9 -0.1
I/InputReader( 2347): Touch event's action is 0x1 (deviceType=0) [pCnt=1, s=] when=116820774347000
D/SSRMv2:Monitor( 2347): SIOP:: AP = 450 (read only)
I/dumpstate(29002): done
D/BatteryService( 2347): Sending ACTION_BATTERY_CHANGED.
D/SSRMv2:CustomFrequencyManagerService( 2347): acquireDVFSLockLocked : type : DVFS_MIN_LIMIT frequency : 1200000 uid : 1000 pid : 2347 pkgName : ACTIVITY_RESUME_BOOSTER#5
I/power ( 2347): *** acquire_dvfs_lock : lockType : 1 freq : 1200000
W/ActivityManager( 2347): mDVFSHelper.acquire()
D/dalvikvm( 2347): GC_FOR_ALLOC freed 201K, 17% free 52076K/62236K, paused 330ms, total 331ms
I/ActivityManager( 2347): Process com.jb.gosms.emoji (pid 28888) (adj 11) has died.
D/InputDispatcher( 2347): Waiting for application to become ready for input: xxxx Reason: Waiting because the touched window is paused.
I/InputDispatcher( 2347): Window spent 8210.1ms processing the last input event: MotionEvent(action=0, deviceId=5, source=0x00001002, displayId=0)
I/InputDispatcher( 2347): Window spent 8061.8ms processing the last input event: MotionEvent(action=1, deviceId=5, source=0x00001002, displayId=0)
I/ActivityManager( 2347): Process com.google.android.apps.plus (pid 28904) (adj 9) has died.
W/Choreographer(28777): Already have a pending vsync event. There should only be one at a time.
I/ActivityManager( 2347): Process com.facebook.katana (pid 28332) (adj 8) has died.
D/MoPub (28777): Third-party network timed out.
D/STATUSBAR-NetworkController( 8423): onSignalStrengthsChanged signalStrength=SignalStrength: 11 -1 -1 -1 -1 -1 -1 99 -140 -20 -200 -1 2147483647 gsm|lte 0x4 level=4
D/SSRMv2:Monitor( 2347): SIOP:: AP = 450 (read only)
D/STATUSBAR-NetworkController( 8423): onSignalStrengthsChanged signalStrength=SignalStrength: 11 -1 -1 -1 -1 -1 -1 99 -140 -20 -200 -1 2147483647 gsm|lte 0x3 level=3
D/STATUSBAR-NetworkController( 8423): refreshSignalCluster: data=2 bt=false
V/MoPub (28777): MoPubErrorCode: Third-party network failed to respond in a timely manner.
D/MoPub (28777): Loading failover url: http://ads.mopub.com/m/ad?v=6&id=9228ebfca6504982941c5601765f658a&nv=1.17.2.0&dn=samsung%2CGT-I9300%2Cm0xx&udid=sha%3A32bc9016036e33b67730c1fadad5c452541e38a5&q=FBATTRID%3Aa3f781d2-2ba6-4265-9690-e4fe0b244cda&z=%2B0200&o=p&sc_a=2.0&mr=1&mcc=242&mnc=05&iso=no&cn=One%20Call&ct=3&av=1.3.8&android_perms_ext_storage=1&request_id=08889b4ab90911e3af000025907c4175&exclude=fbab69084c5611e381c11231392559e4
D/MoPub (28777): Loading url: http://ads.mopub.com/m/ad?v=6&id=9228ebfca6504982941c5601765f658a&nv=1.17.2.0&dn=samsung%2CGT-I9300%2Cm0xx&udid=sha%3A32bc9016036e33b67730c1fadad5c452541e38a5&q=FBATTRID%3Aa3f781d2-2ba6-4265-9690-e4fe0b244cda&z=%2B0200&o=p&sc_a=2.0&mr=1&mcc=242&mnc=05&iso=no&cn=One%20Call&ct=3&av=1.3.8&android_perms_ext_storage=1&request_id=08889b4ab90911e3af000025907c4175&exclude=fbab69084c5611e381c11231392559e4
I/MoPub (28777): Fetching ad for task #1
D/STATUSBAR-NetworkController( 8423): onSignalStrengthsChanged signalStrength=SignalStrength: 10 -1 -1 -1 -1 -1 -1 99 -140 -20 -200 -1 2147483647 gsm|lte 0x3 level=3
D/STATUSBAR-IconMerger( 8423): checkOverflow(240), More:false, Req:false Child:2
D/STATUSBAR-NetworkController( 8423): onSignalStrengthsChanged signalStrength=SignalStrength: 9 -1 -1 -1 -1 -1 -1 99 -140 -20 -200 -1 2147483647 gsm|lte 0x3 level=3
V/WindowManager( 2347): Window{43202888 u0 Keyguard}mOrientationRequetedFromKeyguard=false
D/STATUSBAR-StatusBarManagerService( 2347): manageDisableList what=0x0 pkg=WindowManager.LayoutParams
D/CrashAnrDetector( 2347): processName: com.guessSound.guessSound
D/CrashAnrDetector( 2347): broadcastEvent : com.guessSound.guessSound data_app_crash
D/STATUSBAR-BatteryController( 8423): onReceive() - ACTION_BATTERY_CHANGED
D/STATUSBAR-BatteryController( 8423): onReceive() - BATTERY_STATUS_CHARGING:
D/webviewglue(28777): nativeDestroy view: 0x5979cee0
D/webviewglue(28777): nativeDestroy view: 0x59c399f0
D/STATUSBAR-IconMerger( 8423): checkOverflow(240), More:false, Req:false Child:2
D/STATUSBAR-PhoneStatusBar( 8423): mBrightnessEnablebySettings = true mBrightnessEnablebyBattery = true mBrightnessEnablebyDisableFlag = true
D/STATUSBAR-AirplaneModeQuickSettingButton( 8423): mPhoneStateListener - inAirplaneMode: false
D/STATUSBAR-NetworkController( 8423): onServiceStateChanged state=0
D/STATUSBAR-NetworkController( 8423): updateDataNetType()
D/STATUSBAR-NetworkController( 8423): Nothing, mRoamingIconId = 0
D/WindowManager( 2347): computeScreenConfigurationLocked() set config.orientation=1 dw=720 dh=1280 Callers=com.android.server.wm.WindowManagerService.updateOrientationFromAppTokensLocked:5171 com.android.server.wm.WindowManagerService.updateOrientationFromAppTokens:5142 com.android.server.am.ActivityStack.realStartActivityLocked:1021
I/SurfaceFlinger( 1935): id=2621 createSurf (1x1),1 flag=4, huessSound
D/PowerManagerService( 2347): setKeyboardVisibility: false
I/GATE (28777): <GATE-M>DEV_ACTION_COMPLETED</GATE-M>
I/InputDispatcher( 2347): Delivering touch to: action: 0x0
I/InputDispatcher( 2347): Delivering touch to: action: 0x1
D/WifiController( 2347): SET_AP_BOOSTER_FLAG ignored due to state change
D/WifiService( 2347): onDataConnectionStateChanged: state -2, networkType - UMTS
D/STATUSBAR-NetworkController( 8423): onDataConnectionStateChanged: state=2 type=3
D/STATUSBAR-NetworkController( 8423): updateDataNetType()
D/STATUSBAR-NetworkController( 8423): Nothing, mRoamingIconId = 0
D/STATUSBAR-NetworkController( 8423): refreshSignalCluster: data=2 bt=false
D/ContextualPageReceiver(20224): mContextualPageReceiver: ACTION_SERVICE_STATE_CHANGED isRoaming : false
D/STATUSBAR-IconMerger( 8423): checkOverflow(240), More:false, Req:false Child:2
W/ActivityManager( 2347): Permission Denial: get/set setting for user asks to run as user -2 but is calling from user 0; this requires android.permission.INTERACT_ACROSS_USERS_FULL
E/DatabaseUtils( 2347): Writing exception to parcel
E/DatabaseUtils( 2347): java.lang.SecurityException: Permission Denial: get/set setting for user asks to run as user -2 but is calling from user 0; this requires android.permission.INTERACT_ACROSS_USERS_FULL
E/DatabaseUtils( 2347): at com.android.server.am.ActivityManagerService.handleIncomingUser(ActivityManagerService.java:13140)
E/DatabaseUtils( 2347): at android.app.ActivityManager.handleIncomingUser(ActivityManager.java:2038)
E/DatabaseUtils( 2347): at com.android.providers.settings.SettingsProvider.callFromPackage(SettingsProvider.java:607)
E/DatabaseUtils( 2347): at android.content.ContentProvider$Transport.call(ContentProvider.java:279)
E/DatabaseUtils( 2347): at android.content.ContentProviderNative.onTransact(ContentProviderNative.java:273)
E/DatabaseUtils( 2347): at android.os.Binder.execTransact(Binder.java:388)
E/DatabaseUtils( 2347): at com.android.server.SystemServer.init1(Native Method)
E/DatabaseUtils( 2347): at com.android.server.SystemServer.main(SystemServer.java:2012)
E/DatabaseUtils( 2347): at java.lang.reflect.Method.invokeNative(Native Method)
E/DatabaseUtils( 2347): at java.lang.reflect.Method.invoke(Method.java:525)
E/DatabaseUtils( 2347): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1046)
E/DatabaseUtils( 2347): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:862)
E/DatabaseUtils( 2347): at dalvik.system.NativeStart.main(Native Method)
I/power ( 2347): *** release_dvfs_lock : lockType : 1
I/power ( 2347): *** acquire_dvfs_lock : lockType : 1 freq : 1200000
D/SSRMv2:CustomFrequencyManagerService( 2347): releaseDVFSLockLocked : Getting Lock type frm List : DVFS_MIN_LIMIT frequency : 1200000 uid : 1000 pid : 2347 tag : ACTIVITY_RESUME_BOOSTER#5
D/SSRMv2:CustomFrequencyManagerService( 2347): acquireDVFSLockLocked : type : DVFS_MIN_LIMIT frequency : 1200000 uid : 1000 pid : 2347 pkgName : ACTIVITY_RESUME_BOOSTER#5
W/ActivityManager( 2347): mDVFSHelper.acquire()
V/RealCellState( 2689): telephonyManager network type is 3
D/PhoneApp( 2708): mReceiver: ACTION_ANY_DATA_CONNECTION_STATE_CHANGED
D/AbsListView(28777): unregisterIRListener() is called
D/FileWriteThread( 2708): FileWriteThread : threadType = 2
D/NotificationMgr( 2708): hideDataDisconnectedRoaming()...
D/MobileDataStateTracker( 2347): default: Received state=CONNECTED, old=CONNECTED, reason=(unspecified)
D/AbsListView(28777): Get MotionRecognitionManager
D/MotionRecognitionService( 2347): ssp status : false
D/dalvikvm(28777): GC_FOR_ALLOC freed 6233K, 27% free 20403K/27816K, paused 57ms, total 57ms
D/StatusChecker(29074): onReceive : android.intent.action.SERVICE_STATE
D/StatusChecker(29074): Service state changed : 0
D/STATUSBAR-NetworkController( 8423): onDataActivity: direction=2
D/STATUSBAR-NetworkController( 8423): refreshSignalCluster: data=2 bt=false
I/BootupListener( 2708): mPendingNetworkManualSelection : false
W/FlurryAgent(28777): Continuing previous session
D/AbsListView(28777): onVisibilityChanged() is called, visibility : 4
D/AbsListView(28777): unregisterIRListener() is called
D/AbsListView(28777): onVisibilityChanged() is called, visibility : 0
D/AbsListView(28777): unregisterIRListener() is called
D/WindowManager( 2347): computeScreenConfigurationLocked() set config.orientation=1 dw=720 dh=1280 Callers=com.android.server.wm.WindowManagerService.updateOrientationFromAppTokensLocked:5171 com.android.server.wm.WindowManagerService.updateOrientationFromAppTokens:5142 com.android.server.am.ActivityStack.realStartActivityLocked:1021
D/PowerManagerService( 2347): setKeyboardVisibility: false
D/webviewglue(28777): nativeDestroy view: 0x596c5bb0
D/webviewglue(28777): nativeDestroy view: 0x57dc5168
I/SurfaceFlinger( 1935): id=2622 createSurf (1x1),1 flag=4, OewGameActi
D/AbsListView(28777): unregisterIRListener() is called
D/AbsListView(28777): Get MotionRecognitionManager
D/MotionRecognitionService( 2347): ssp status : false
D/dalvikvm( 2896): GC_CONCURRENT freed 410K, 30% free 10387K/14804K, paused 4ms+4ms, total 44ms
W/FlurryAgent(28777): Continuing previous session
D/AbsListView(28777): onVisibilityChanged() is called, visibility : 4
D/AbsListView(28777): unregisterIRListener() is called
D/AbsListView(28777): onVisibilityChanged() is called, visibility : 0
D/AbsListView(28777): unregisterIRListener() is called
D/AbsListView(28777): unregisterIRListener() is called
D/dalvikvm(28777): GC_CONCURRENT freed 651K, 23% free 21680K/27816K, paused 11ms+6ms, total 58ms
I/SurfaceFlinger( 1935): id=2623 createSurf (720x1280),1 flag=4, OewGameActi
D/dalvikvm(28826): GC_EXPLICIT freed 1284K, 19% free 11047K/13512K, paused 4ms+16ms, total 93ms
D/AbsListView(28777): unregisterIRListener() is called
D/AbsListView(28777): unregisterIRListener() is called
D/AbsListView(28777): unregisterIRListener() is called
V/WindowManager( 2347): Window{43202888 u0 Keyguard}mOrientationRequetedFromKeyguard=false
I/power ( 2347): *** release_dvfs_lock : lockType : 1
D/SSRMv2:CustomFrequencyManagerService( 2347): releaseDVFSLockLocked : Getting Lock type frm List : DVFS_MIN_LIMIT frequency : 1200000 uid : 1000 pid : 2347 tag : ACTIVITY_RESUME_BOOSTER#5
W/ActivityManager( 2347): mDVFSHelper.release()
I/power ( 2347): *** acquire_dvfs_lock : lockType : 1 freq : 1200000
D/AbsListView(28777): unregisterIRListener() is called
D/SSRMv2:CustomFrequencyManagerService( 2347): acquireDVFSLockLocked : type : DVFS_MIN_LIMIT frequency : 1200000 uid : 1000 pid : 2347 pkgName : ACTIVITY_RESUME_BOOSTER#8
D/MoPub (28777): Ad Unit (9228ebfca6504982941c5601765f658a) going invisible: disabling refresh
D/MoPub (28777): Automatic refresh for com.mopub.mobileads.AdConfiguration#42d65750 set to: false.
D/STATUSBAR-NetworkController( 8423): onDataActivity: direction=0
D/STATUSBAR-NetworkController( 8423): refreshSignalCluster: data=2 bt=false
V/WindowManager( 2347): Window{43202888 u0 Keyguard}mOrientationRequetedFromKeyguard=false
I/SurfaceFlinger( 1935): id=2622 Removed OewGameActi (3/7)
I/SurfaceFlinger( 1935): id=2622 Removed OewGameActi (-2/7)
V/WindowManager( 2347): Window{43202888 u0 Keyguard}mOrientationRequetedFromKeyguard=false
W/FlurryAgent(28777): Trying to end session
D/AbsListView(28777): onVisibilityChanged() is called, visibility : 4
D/AbsListView(28777): unregisterIRListener() is called
D/LocationManagerService( 2347): getProviders()=[]
D/LocationManagerService( 2347): getProviders()=[]
D/LocationManagerService( 2347): getBestProvider(Criteria[power=NO_REQ acc=---], true)=null
W/FlurryAgent(28777): Trying to end session
D/AbsListView(28777): onVisibilityChanged() is called, visibility : 4
D/AbsListView(28777): unregisterIRListener() is called
D/LocationManagerService( 2347): getProviders()=[]
D/LocationManagerService( 2347): getProviders()=[]
D/LocationManagerService( 2347): getBestProvider(Criteria[power=NO_REQ acc=---], true)=null
V/WindowManager( 2347): Window{43202888 u0 Keyguard}mOrientationRequetedFromKeyguard=false
V/WindowManager( 2347): Window{43202888 u0 Keyguard}mOrientationRequetedFromKeyguard=false
I/power ( 2347): *** release_dvfs_lock : lockType : 1
D/SSRMv2:CustomFrequencyManagerService( 2347): releaseDVFSLockLocked : Getting Lock type frm List : DVFS_MIN_LIMIT frequency : 1200000 uid : 1000 pid : 2347 tag : ACTIVITY_RESUME_BOOSTER#8
UPDATE
Here is my Android manifest, Im develop the app in phonegap and use therefore a plugin for the purchase, the java code is below the manifest
<manifest android:hardwareAccelerated="true" android:versionCode="5" android:versionName="1.3.0" android:windowSoftInputMode="adjustPan" package="com.guessSound.guessSound" xmlns:android="http://schemas.android.com/apk/res/android">
<supports-screens android:anyDensity="true" android:largeScreens="true" android:normalScreens="true" android:resizeable="true" android:smallScreens="true" android:xlargeScreens="true" />
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" />
<uses-permission android:name="android.permission.WAKE_LOCK" />
<uses-permission android:name="android.permission.VIBRATE" />
<uses-permission android:name="android.permission.INTERACT_ACROSS_USERS_FULL" />
<application android:debuggable="false" android:hardwareAccelerated="true" android:icon="#drawable/icon" android:label="#string/app_name" android:name="com.guessSound.guessSound.MainApplication">
<activity android:configChanges="orientation|keyboardHidden|keyboard|screenSize|locale" android:label="#string/app_name" android:name="com.guessSound.guessSound.GuessThisSound" android:screenOrientation="portrait" android:theme="#android:style/Theme.Black.NoTitleBar">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<service android:name="com.parse.PushService" />
<receiver android:name="com.parse.ParseBroadcastReceiver">
<intent-filter>
<action android:name="android.intent.action.BOOT_COMPLETED" />
<action android:name="android.intent.action.USER_PRESENT" />
</intent-filter>
</receiver>
</application>
<uses-sdk android:minSdkVersion="10" android:targetSdkVersion="19" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.RECORD_AUDIO" />
<uses-permission android:name="android.permission.MODIFY_AUDIO_SETTINGS" />
<uses-permission android:name="android.permission.READ_PHONE_STATE" />
<uses-permission android:name="android.permission.RECORD_VIDEO" />
<uses-permission android:name="android.permission.VIBRATE" />
<uses-permission android:name="com.android.vending.BILLING" />
</manifest>
I do first buy it and then consume it, because it looks like I cant buy a consume item while testing with the test productID
private void buy(final String sku){
/* TODO: for security, generate your payload here for verification. See the comments on
* verifyDeveloperPayload() for more info. Since this is a sample, we just use
* an empty string, but on a production app you should generate this. */
final String payload = "";
if (mHelper == null){
callbackContext.error("Billing plugin was not initialized");
return;
}
this.cordova.setActivityResultCallback(this);
mHelper.launchPurchaseFlow(cordova.getActivity(), sku, RC_REQUEST,
mPurchaseFinishedListener, payload);
}
private void consumePurchase(JSONArray data) throws JSONException{
if (mHelper == null){
callbackContext.error("Did you forget to initialize the plugin?");
return;
}
String sku = data.getString(0);
// Get the purchase from the inventory
Purchase purchase = myInventory.getPurchase(sku);
if (purchase != null)
// Consume it
mHelper.consumeAsync(purchase, mConsumeFinishedListener);
else
callbackContext.error(sku + " is not owned so it cannot be consumed");
}
UPDATE 2.0
Im calling the consumePurchase in the successmethod to buy. Could this cause the problem? After I remove the consumepurchase in the successmethod, it looks like I don't get that error.. So how can I buy a consume item without using consumepurchase right after I have bought the item? Could it work if I add a timer, or is it any better solution to this?
User 0 usually indicates root. Are you running your app as root?

Foursquare API: Android key hash does not match the allowed key hashes specified in the app's settings

I'm trying to create Android application based on Fousquare API. I need to connect to foursquare account. I generated keys as told in instructions: github - foursquare-android-oauth But result is "Connecting failed". Client id and client secret are in app's settings. What's wrong?
Logcat:
I/ActivityManager( 1355): Starting activity: Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10100000 cmp=com.foursquare.android.sample/.MainActivity } from pid 1507
D/WindowManagerImpl( 1355): addView, new view, mViews[1]: com.android.internal.policy.impl.PhoneWindow$DecorView#40d5af98
W/dalvikvm( 1507): disableGcForExternalAlloc: true
W/dalvikvm( 1507): disableGcForExternalAlloc: false
D/SensorService( 1355): enable: get sensor name = BMA150 3-axis Accelerometer
D/Sensors ( 1355): Enable akm: en = 1
D/SensorService( 1355): SensorDevice::activate--: handle = 0x0, enabled = 0x1
D/SensorService( 1355): enable: sensor->activate return value = 0x0
D/SensorService( 1355): enable: calling mActiveSensors.add(handle, rec) = (0x0, 0x991fc8)
D/SensorService( 1355): enable: mActiveConnections.indexOf(connection) = 0x0
D/SensorService( 1355): pid=1355, uid=1000
D/AK8975 ( 1260): Compass Start
V/WindowManager( 1355): Starting animation in AppWindowToken{408c6f78 token=HistoryRecord{409ded10 com.htc.launcher/.Launcher}} # 27969582
V/WindowManager( 1355): Finished animation in AppWindowToken{408c6f78 token=HistoryRecord{409ded10 com.htc.launcher/.Launcher}} # 27969582
V/WindowManager( 1355): Starting animation in AppWindowToken{40e6f250 token=HistoryRecord{40a891d0 com.foursquare.android.sample/.MainActivity}} # 27969582
V/WindowManager( 1355): Finished animation in AppWindowToken{40e6f250 token=HistoryRecord{40a891d0 com.foursquare.android.sample/.MainActivity}} # 27969582
D/AK8975 ( 1260): Ignore M_Sensor: (y, p, r) = ( 139, 0, 3), Status = 0
D/ATRecorder(19226): com.htc.autotest.dlib.RecordEngine in loader dalvik.system.DexClassLoader#4053d0e0
D/WindowManagerImpl(19226): addView, new view, mViews[0]: com.android.internal.policy.impl.PhoneWindow$DecorView#40538ca8
D/WindowManagerImpl( 1355): finishRemoveViewLocked, mViews[1]: com.android.internal.policy.impl.PhoneWindow$DecorView#40d5af98
I/ActivityManager( 1355): Displayed com.foursquare.android.sample/.MainActivity: +210ms
V/ActivityManager( 1355): Checking to restart com.foursquare.android.sample.MainActivity: changed=0x0, handles=0x0
V/ActivityManager( 1355): oldConfig={ scale=1.0 imsi=250/1 loc=ru_RU touch=3 keys=1/1/2 nav=1/1 orien=1 layout=34 uiMode=17 seq=61 skin=default fontsize=3}
V/ActivityManager( 1355): newConfig={ scale=1.0 imsi=250/1 loc=ru_RU touch=3 keys=1/1/2 nav=1/1 orien=1 layout=34 uiMode=17 seq=61 skin=default fontsize=3}
D/lights ( 1355): [LedInfo] write attr ok name=/sys/class/leds/green/brightness string=0,len=1
V/NotificationService( 1355): Charging...
D/lights ( 1355): [LedInfo] write attr ok name=/sys/class/leds/green/blink string=0,len=1
D/lights ( 1355): [LedInfo] write attr ok name=/sys/class/leds/green/off_timer string=0 0,len=3
D/lights ( 1355): [LedInfo] write attr ok name=/sys/class/leds/amber/brightness string=1,len=1
D/lights ( 1355): [LedInfo] write attr ok name=/sys/class/leds/amber/blink string=0,len=1
D/lights ( 1355): [LedInfo] write attr ok name=/sys/class/leds/amber/off_timer string=0 0,len=3
V/NotificationService( 1355): Turn off Charm Ind LED
W/InputManagerService( 1355): [unbindCurrentClientLocked] Disable input method client.
W/InputManagerService( 1355): [startInputLocked] Enable input method client.
D/BatteryService( 1355): SendIntentforPowersaver
D/BatteryService( 1355): Current powersaver status == NORMAL_STATUS
D/WifiService( 1355): [smart wifi] mSmartWiFiStatus: 0 mBatteryLevel: 88 mWifiConnected: true
D/WifiService( 1355): [smart wifi] ACTION_BATTERY_CHANGED pluggedType: 2
D/StatusBarPolicy( 1507): plugged = true, health = 2, level = 88, mPluggedBatteryLevel = 87, mLowBatteryWarningLevel2 = 25, mshowLowChargingWarning2 = true
E/MyHTC ( 1643): [ImmediateModeProxyMgr] Failed to connect; wait some amount of time before trying again.
W/System.err( 1643): java.net.SocketTimeoutException: Connection timed out
W/System.err( 1643): at org.apache.harmony.luni.platform.OSNetworkSystem.connect(Native Method)
W/System.err( 1643): at dalvik.system.BlockGuard$WrappedNetworkSystem.connect(BlockGuard.java:357)
W/System.err( 1643): at org.apache.harmony.luni.net.PlainSocketImpl.connect(PlainSocketImpl.java:207)
W/System.err( 1643): at org.apache.harmony.luni.net.PlainSocketImpl.connect(PlainSocketImpl.java:440)
W/System.err( 1643): at java.net.Socket.connect(Socket.java:1013)
W/System.err( 1643): at com.htc.handsetlib.proxy.ImmediateModeProxy.connect(ImmediateModeProxy.java:195)
W/System.err( 1643): at com.htc.cs.service.ImmediateModeProxyMgr._connectToImcOrStatusServer(ImmediateModeProxyMgr.java:134)
W/System.err( 1643): at com.htc.cs.service.ImmediateModeProxyMgr.onIntent(ImmediateModeProxyMgr.java:198)
W/System.err( 1643): at com.htc.cs.service.ImmediateModeService$PushHandler.handleMessage(ImmediateModeService.java:708)
W/System.err( 1643): at android.os.Handler.dispatchMessage(Handler.java:99)
W/System.err( 1643): at android.os.Looper.loop(Looper.java:150)
W/System.err( 1643): at android.os.HandlerThread.run(HandlerThread.java:60)
D/MyHTC ( 1643): [ImmediateModeProxyMgr] _connectToImcOrStatusServer(): Fail IMC reconnect time = 172000
D/View (19226): onTouchEvent: viewFlags: 0x18004001
D/View (19226): onTouchEvent: isFocusable: true, isFocusableInTouchMode: false, isFocused: false; focusTaken: false
I/ActivityManager( 1355): Starting activity: Intent { act=android.intent.action.VIEW dat=foursquareauth://authorize?client_id=AP5RF0GZVCLPHHQ5HLHD5KQSYG03XIQUTKV1LXFCEQHPYMKS&v=20130509&androidKeyHash=60%3AA4%3AD9%3A06%3A0E%3AD2%3A27%3A56%3A00%3A57%3AF6%3A5D%3AE0%3AB7%3A65%3A39%3AC2%3AA9%3A64%3A34 cmp=com.joelapenna.foursquared/.OauthWebViewActivity } from pid 19226
E/ResourceType( 1355): Style contains key with bad entry: 0x01010397
E/ResourceType( 1355): Style contains key with bad entry: 0x0101039c
D/WindowManagerImpl( 1355): addView, new view, mViews[1]: com.android.internal.policy.impl.PhoneWindow$DecorView#40dce998
I/keystore( 1257): uid: 1000 action: e -> 7 state: 3 -> 3 retry: 4
I/ActivityManager( 1355): Start proc com.joelapenna.foursquared for activity com.joelapenna.foursquared/.OauthWebViewActivity: pid=19512 uid=10077 gids={3003, 1015}
V/WindowManager( 1355): Starting animation in AppWindowToken{40e6f250 token=HistoryRecord{40a891d0 com.foursquare.android.sample/.MainActivity}} # 27971452
V/WindowManager( 1355): Starting animation in AppWindowToken{40d58910 token=HistoryRecord{40b2cf48 com.joelapenna.foursquared/.OauthWebViewActivity}} # 27971452
V/WindowManager( 1355): Finished animation in AppWindowToken{40e6f250 token=HistoryRecord{40a891d0 com.foursquare.android.sample/.MainActivity}} # 27971464
V/WindowManager( 1355): Finished animation in AppWindowToken{40d58910 token=HistoryRecord{40b2cf48 com.joelapenna.foursquared/.OauthWebViewActivity}} # 27971464
D/dalvikvm(19512): GC_CONCURRENT freed 139K, 44% free 3202K/5639K, external 0K/0K, paused 3ms+2ms
D/dalvikvm(19512): GC_CONCURRENT freed 96K, 41% free 3529K/5959K, external 0K/0K, paused 2ms+2ms
I/dalvikvm(19512): Could not find method android.os.StrictMode$ThreadPolicy$Builder.detectCustomSlowCalls, referenced from method com.joelapenna.foursquared.Foursquared.d
W/dalvikvm(19512): VFY: unable to resolve virtual method 1630: Landroid/os/StrictMode$ThreadPolicy$Builder;.detectCustomSlowCalls ()Landroid/os/StrictMode$ThreadPolicy$Builder;
D/dalvikvm(19512): VFY: replacing opcode 0x6e at 0x0011
D/dalvikvm(19512): VFY: dead code 0x0014-003f in Lcom/joelapenna/foursquared/Foursquared;.d ()V
I/ActivityThread(19512): Pub com.joelapenna.foursquared: com.joelapenna.foursquared.providers.GlobalSearchProvider
I/ActivityThread(19512): Pub com.joelapenna.foursquared.db.ConversationsContentProvider: com.joelapenna.foursquared.db.ConversationsContentProvider
I/ActivityThread(19512): Pub com.joelapenna.foursquared.providers.VenueQuerySuggestionsProvider: com.joelapenna.foursquared.providers.VenueQuerySuggestionsProvider
I/ActivityThread(19512): Pub com.joelapenna.foursquared.providers.AppSearchSuggestionProvider: com.joelapenna.foursquared.providers.AppSearchSuggestionProvider
I/ActivityThread(19512): Pub com.joelapenna.foursquared.providers.foursquarebridgeprovider: com.joelapenna.foursquared.providers.FoursquareBridgeProvider
I/ActivityThread(19512): Pub com.joelapenna.foursquared.providers.FriendsSearchSuggestionProvider: com.joelapenna.foursquared.providers.FriendsSearchSuggestionProvider
I/keystore( 1257): uid: 1000 action: e -> 7 state: 3 -> 3 retry: 4
I/keystore( 1257): uid: 1000 action: e -> 7 state: 3 -> 3 retry: 4
I/keystore( 1257): uid: 1000 action: e -> 7 state: 3 -> 3 retry: 4
I/keystore( 1257): uid: 1000 action: e -> 7 state: 3 -> 3 retry: 4
I/keystore( 1257): uid: 1000 action: e -> 7 state: 3 -> 3 retry: 4
I/keystore( 1257): uid: 1000 action: e -> 7 state: 3 -> 3 retry: 4
I/dalvikvm(19512): Could not find method android.os.StrictMode$VmPolicy$Builder.detectLeakedClosableObjects, referenced from method com.foursquare.core.h.z.a
W/dalvikvm(19512): VFY: unable to resolve virtual method 1638: Landroid/os/StrictMode$VmPolicy$Builder;.detectLeakedClosableObjects ()Landroid/os/StrictMode$VmPolicy$Builder;
D/dalvikvm(19512): VFY: replacing opcode 0x6e at 0x0025
D/dalvikvm(19512): VFY: dead code 0x0028-0038 in Lcom/foursquare/core/h/z;.a ()V
follow this link:
https://developer.foursquare.com/overview/auth
it's much more informative and explains the process great.
by the way it would be greate if you could paste the exact error and give some more information about what you did....theres not enough info to help you.
Maybe you didn't set the INTERNET PERMISSION in the Android manifest:
<manifest xlmns:android...>
...
<uses-permission android:name="android.permission.INTERNET"></uses-permission>
</manifest>

Categories

Resources