Zebra Datawedge Stops receiving scans - android

Using a Zebra MC3300 Device with Datawedge 8.0 +
I've been working on a scanning app that requires me to scan an RFID in step one and immediately scan a barcode in step two. The process is repeated to link the RFID and barcode in the DB. I've developed the app using the data wedge API but the scan is failed after a couple of scans the RFID scan doesn't scan anymore even though it is enabled and whether enable/disable the profile, restarting the app doesn't help either. When this happens I have to restart the device completely to get it to work again.
From the logs, I observed some sort of crashes and messages that I think might be helpful in understanding the issue. Any help is appreciated.
Thanks in advance.
02-07 19:19:06.021 724 724 I ScannerFramework: [Scanner::ScannerOpen] 'ScannerOpen' called, Calling process pid '1551', package name 'com.symbol.datawedge'
02-07 19:19:06.021 724 724 E ScannerFramework: [StackAdapter::ScannerOpen] User exists but Scanner not initialized
02-07 19:19:06.023 724 724 I ScannerFramework: [Scanner::ScannerOpen] - '0'
02-07 19:19:06.028 528 528 E HWComposer: getLayerReleaseFence: Invalid display
02-07 19:19:06.252 528 528 I chatty : uid=1000(system) /system/bin/surfaceflinger identical 87 lines
02-07 19:19:06.252 528 528 E HWComposer: getLayerReleaseFence: Invalid display
02-07 19:19:06.262 1168 1183 D ActivityTrigger: ActivityTrigger activityStopTrigger
02-07 19:19:06.266 724 1016 I ScannerFramework: [Scanner::IsScannerConnected] 'IsScannerConnected' called, Calling process pid '1551'
02-07 19:19:06.266 724 1016 I ScannerFramework: [Scanner::IsScannerConnected] - '1'
02-07 19:19:06.266 724 1169 I ScannerFramework: [564:280][Scanner::ScannerEnable] 'ScannerEnable' called, Calling process pid '1551'
02-07 19:19:06.275 528 528 E HWComposer: getLayerReleaseFence: Invalid display
02-07 19:19:06.415 528 528 I chatty : uid=1000(system) /system/bin/surfaceflinger identical 23 lines
02-07 19:19:06.415 528 528 E HWComposer: getLayerReleaseFence: Invalid display
02-07 19:19:06.478 724 1169 I imgdec : OCRVersionString 1.6.5.11
02-07 19:19:06.478 724 1169 I imgdec : DecOpen ImgKit IMGKIT_8.03T01.26
02-07 19:19:06.490 724 1169 I ScannerFramework: [StateMachine::MoveState] Transition from 1 to 0 for pid -1
02-07 19:19:06.490 724 1169 I ScannerFramework: [StateMachine::MoveState] Transition from 1 to 0 for pid 1551
02-07 19:19:06.490 724 1169 I ScannerFramework: [Scanner::ScannerEnable] - '0'
02-07 19:19:06.493 1551 1551 D ImagingProxy: Inside ImagingProxy(mServiceName)com.symbol.imagingcapture
02-07 19:19:06.502 724 1169 I ScannerFramework: [StateMachine::MoveState] Transition from 0 to 5 for pid -1
02-07 19:19:06.502 724 1169 I ScannerFramework: [StateMachine::MoveState] Transition from 0 to 5 for pid 1551
02-07 19:19:06.502 724 1169 I ScannerFramework: [DigimarkCWrapper::Decinit] g_mScannerEngine : se4750_cam_builtin g_bInitDone = 1
02-07 19:19:06.513 1168 2203 E ActivityManager: Sending non-protected broadcast com.symbol.datawedge.api.RESULT_ACTION from system 1551:com.symbol.datawedge/u0a10 pkg com.symbol.datawedge
02-07 19:19:06.513 1168 2203 E ActivityManager: java.lang.Throwable
02-07 19:19:06.513 1168 2203 E ActivityManager: at com.android.server.am.ActivityManagerService.checkBroadcastFromSystem(ActivityManagerService.java:19400)
02-07 19:19:06.513 1168 2203 E ActivityManager: at com.android.server.am.ActivityManagerService.broadcastIntentLocked(ActivityManagerService.java:19916)
02-07 19:19:06.513 1168 2203 E ActivityManager: at com.android.server.am.ActivityManagerService.broadcastIntent(ActivityManagerService.java:20151)
02-07 19:19:06.513 1168 2203 E ActivityManager: at android.app.IActivityManager$Stub.onTransact(IActivityManager.java:240)
02-07 19:19:06.513 1168 2203 E ActivityManager: at com.android.server.am.ActivityManagerService.onTransact(ActivityManagerService.java:3045)
02-07 19:19:06.513 1168 2203 E ActivityManager: at android.os.Binder.execTransact(Binder.java:697)
02-07 19:19:06.522 1168 2203 E ActivityManager: Sending non-protected broadcast com.symbol.datawedge.api.RESULT_ACTION from system 1551:com.symbol.datawedge/u0a10 pkg com.symbol.datawedge
02-07 19:19:06.522 1168 2203 E ActivityManager: java.lang.Throwable
02-07 19:19:06.522 1168 2203 E ActivityManager: at com.android.server.am.ActivityManagerService.checkBroadcastFromSystem(ActivityManagerService.java:19400)
02-07 19:19:06.522 1168 2203 E ActivityManager: at com.android.server.am.ActivityManagerService.broadcastIntentLocked(ActivityManagerService.java:20009)
02-07 19:19:06.522 1168 2203 E ActivityManager: at com.android.server.am.ActivityManagerService.broadcastIntent(ActivityManagerService.java:20151)
02-07 19:19:06.522 1168 2203 E ActivityManager: at android.app.IActivityManager$Stub.onTransact(IActivityManager.java:240)
02-07 19:19:06.522 1168 2203 E ActivityManager: at com.android.server.am.ActivityManagerService.onTransact(ActivityManagerService.java:3045)
02-07 19:19:06.522 1168 2203 E ActivityManager: at android.os.Binder.execTransact(Binder.java:697)
02-07 19:19:06.526 1551 1551 D com.symbol.datawedge.api.IntentAPIManager: onReceive(..):com.symbol.datawedge.ScanningService#18323e5,Intent { act=com.symbol.datawedge.api.ACTION flg=0x10 (has extras) }
02-07 19:19:06.541 1168 1543 D CompatibilityInfo: mCompatibilityFlags - 4
02-07 19:19:06.542 1168 1543 D CompatibilityInfo: applicationDensity - 240
02-07 19:19:06.542 1168 1543 D CompatibilityInfo: applicationScale - 1.0
02-07 19:19:06.700 1168 1543 E ActivityManager: Sending non-protected broadcast com.symbol.datawedge.api.RESULT_ACTION from system 1551:com.symbol.datawedge/u0a10 pkg com.symbol.datawedge
02-07 19:19:06.700 1168 1543 E ActivityManager: java.lang.Throwable
02-07 19:19:06.700 1168 1543 E ActivityManager: at com.android.server.am.ActivityManagerService.checkBroadcastFromSystem(ActivityManagerService.java:19400)
02-07 19:19:06.700 1168 1543 E ActivityManager: at com.android.server.am.ActivityManagerService.broadcastIntentLocked(ActivityManagerService.java:19916)
02-07 19:19:06.700 1168 1543 E ActivityManager: at com.android.server.am.ActivityManagerService.broadcastIntent(ActivityManagerService.java:20151)
02-07 19:19:06.700 1168 1543 E ActivityManager: at android.app.IActivityManager$Stub.onTransact(IActivityManager.java:240)
02-07 19:19:06.700 1168 1543 E ActivityManager: at com.android.server.am.ActivityManagerService.onTransact(ActivityManagerService.java:3045)
02-07 19:19:06.700 1168 1543 E ActivityManager: at android.os.Binder.execTransact(Binder.java:697)
02-07 19:19:06.703 1168 1543 E ActivityManager: Sending non-protected broadcast com.symbol.datawedge.api.RESULT_ACTION from system 1551:com.symbol.datawedge/u0a10 pkg com.symbol.datawedge
02-07 19:19:06.703 1168 1543 E ActivityManager: java.lang.Throwable
02-07 19:19:06.703 1168 1543 E ActivityManager: at com.android.server.am.ActivityManagerService.checkBroadcastFromSystem(ActivityManagerService.java:19400)
02-07 19:19:06.703 1168 1543 E ActivityManager: at com.android.server.am.ActivityManagerService.broadcastIntentLocked(ActivityManagerService.java:20009)
02-07 19:19:06.703 1168 1543 E ActivityManager: at com.android.server.am.ActivityManagerService.broadcastIntent(ActivityManagerService.java:20151)
02-07 19:19:06.703 1168 1543 E ActivityManager: at android.app.IActivityManager$Stub.onTransact(IActivityManager.java:240)
02-07 19:19:06.703 1168 1543 E ActivityManager: at com.android.server.am.ActivityManagerService.onTransact(ActivityManagerService.java:3045)
02-07 19:19:06.703 1168 1543 E ActivityManager: at android.os.Binder.execTransact(Binder.java:697)
02-07 19:19:06.706 1551 1551 D com.symbol.datawedge.api.IntentAPIManager: onReceive(..):com.symbol.datawedge.ScanningService#18323e5,Intent { act=com.symbol.datawedge.api.ACTION flg=0x10 (has extras) }
02-07 19:19:06.943 1425 1425 D KeyguardUpdateMonitor: received broadcast android.intent.action.BATTERY_CHANGED
02-07 19:19:06.947 1425 1425 D KeyguardUpdateMonitor: handleBatteryUpdate
02-07 19:19:06.947 1397 1785 D HeadsetStateMachine: Disconnected process message: 10, size: 0
02-07 19:19:06.947 1397 1785 D HeadsetStateMachine: Enter processIntentBatteryChanged()
02-07 19:19:06.947 1397 1785 D HeadsetStateMachine: Exit processIntentBatteryChanged()
02-07 19:19:06.948 1397 1785 D HeadsetStateMachine: Exit Disconnected processMessage()
02-07 19:19:06.948 5492 5492 D com.symbol.dataanalytics.a.a.d.b: Received battery event
02-07 19:19:06.948 5492 5492 D com.symbol.dataanalytics.a.a.d.b: BatteryFactory event action = android.intent.action.BATTERY_CHANGED
02-07 19:19:06.972 528 528 E HWComposer: getLayerReleaseFence: Invalid display
02-07 19:19:06.989 528 528 I chatty : uid=1000(system) /system/bin/surfaceflinger identical 8 lines
02-07 19:19:06.989 528 528 E HWComposer: getLayerReleaseFence: Invalid display
02-07 19:19:07.040 724 1017 I ScannerFramework: [Scanner::ClearReadSubmit] 'ClearReadSubmit' called, Calling process pid '1551'
02-07 19:19:07.040 724 1017 I ScannerFramework: [StateMachine::MoveState] Transition from 5 to 0 for pid -1
02-07 19:19:07.041 724 1017 I ScannerFramework: [StateMachine::MoveState] Transition from 5 to 0 for pid 1551
02-07 19:19:07.041 724 1017 I ScannerFramework: [Scanner::ClearReadSubmit] - '0'
02-07 19:19:07.041 724 1016 I ScannerFramework: [Scanner::ScannerDisable] 'ScannerDisable' called, Calling process pid '1551'
02-07 19:19:07.079 528 528 E HWComposer: getLayerReleaseFence: Invalid display
02-07 19:19:07.079 528 528 I chatty : uid=1000(system) /system/bin/surfaceflinger identical 3 lines
02-07 19:19:07.079 528 528 E HWComposer: getLayerReleaseFence: Invalid display
02-07 19:19:07.111 724 1016 I ScannerFramework: [StateMachine::MoveState] Transition from 0 to 1 for pid -1
02-07 19:19:07.111 724 1016 I ScannerFramework: [StateMachine::MoveState] Transition from 0 to 1 for pid 1551
02-07 19:19:07.111 724 1016 W ScannerFramework: [StateMachine::MoveState] Transition from 1 to 1 is invalid
02-07 19:19:07.111 724 1016 I ScannerFramework: [Scanner::ScannerDisable] - '0'
02-07 19:19:07.111 1551 1551 D ScanningProxy: Inside ScannerRelease(). ReferenceCounter value=1
02-07 19:19:07.112 724 1169 I ScannerFramework: [Scanner::ScannerRelease] 'ScannerRelease' called, Calling process pid '1551'
02-07 19:19:07.112 724 1169 I ScannerFramework: [Scanner::ScannerRelease] - '0'
02-07 19:19:07.167 1551 1551 D ScanningProxy: Inside ScannerOpen().... mReferenceCounter=0
02-07 19:19:07.167 724 724 I ScannerFramework: [Scanner::ScannerOpen] 'ScannerOpen' called, Calling process pid '1551', package name 'com.symbol.datawedge'
02-07 19:19:07.167 724 724 E ScannerFramework: [StackAdapter::ScannerOpen] User exists but Scanner not initialized
02-07 19:19:07.168 724 724 I ScannerFramework: [Scanner::ScannerOpen] - '0'
02-07 19:19:07.472 724 1016 I ScannerFramework: [Scanner::IsScannerConnected] 'IsScannerConnected' called, Calling process pid '1551'
02-07 19:19:07.472 724 1016 I ScannerFramework: [Scanner::IsScannerConnected] - '1'
02-07 19:19:07.473 724 1169 I ScannerFramework: [565:487][Scanner::ScannerEnable] 'ScannerEnable' called, Calling process pid '1551'
02-07 19:19:07.676 724 1169 I imgdec : OCRVersionString 1.6.5.11
02-07 19:19:08.042 1551 1551 I RfidServiceManager: Constructor of RfidServiceManager
02-07 19:19:08.048 1551 1551 D RFIDAPI3: bindtoService
02-07 19:19:08.050 1551 1551 D RFIDAPI3: bindtoService registerReceiver
02-07 19:19:08.050 1168 1569 I rfid_service: GetAvailableReader
02-07 19:19:08.050 1168 1569 I RFIDSERVICE-RFIDService: GetAvailableReaders: [1551] <MC3300R20161523020090>
02-07 19:19:08.066 1551 1551 D RFIDAPI3: Connect
02-07 19:19:08.066 1551 1551 D RFIDAPI3: bindtoService
02-07 19:19:08.066 1551 1551 D RFIDAPI3: bindtoService registerReceiver
02-07 19:19:08.067 1168 1595 I rfid_service: Connect
02-07 19:19:08.067 1168 1595 I RFIDSERVICE-RFIDService: Connect: Attempting to connect, Client Name: MC3300R20161523020090, Client PID: 1551
02-07 19:19:08.109 1168 1387 W Binder : Outgoing transactions from this process must be FLAG_ONEWAY
02-07 19:19:08.109 1168 1387 W Binder : java.lang.Throwable
02-07 19:19:08.109 1168 1387 W Binder : at android.os.BinderProxy.transact(Binder.java:754)
02-07 19:19:08.109 1168 1387 W Binder : at com.zebra.rfid.api3.IRFIDDeviceDataCallBack$Stub$Proxy.onData(IRFIDDeviceDataCallBack.java:95)
02-07 19:19:08.109 1168 1387 W Binder : at com.zebra.rfid.RFIDClientConnection.sendData(RFIDClientConnection.java:205)
02-07 19:19:08.109 1168 1387 W Binder : at com.zebra.rfid.RFIDCommMgr$DataWriteThread.run(RFIDCommMgr.java:393)
02-07 19:19:08.136 1551 1551 D API3Android: API3Android Connect status = 0
02-07 19:19:08.231 502 502 D WifiHAL : In DebugCommand::handleResponse
02-07 19:19:08.231 502 502 D WifiHAL : len = 4, expected len = 4
02-07 19:19:08.233 502 502 D WifiHAL : In DebugCommand::handleResponse
02-07 19:19:08.233 502 502 D WifiHAL : len = 4, expected len = 4
02-07 19:19:08.262 1168 1255 D WifiStateMachine: fetchRssiLinkSpeedAndFrequencyNative rssi=-61 linkspeed=144 freq=2462
02-07 19:19:08.422 1168 2170 E ActivityManager: Sending non-protected broadcast com.symbol.datawedge.api.RESULT_ACTION from system 1551:com.symbol.datawedge/u0a10 pkg com.symbol.datawedge
02-07 19:19:08.422 1168 2170 E ActivityManager: java.lang.Throwable
02-07 19:19:08.422 1168 2170 E ActivityManager: at com.android.server.am.ActivityManagerService.checkBroadcastFromSystem(ActivityManagerService.java:19400)
02-07 19:19:08.422 1168 2170 E ActivityManager: at com.android.server.am.ActivityManagerService.broadcastIntentLocked(ActivityManagerService.java:19916)
02-07 19:19:08.422 1168 2170 E ActivityManager: at com.android.server.am.ActivityManagerService.broadcastIntent(ActivityManagerService.java:20151)
02-07 19:19:08.422 1168 2170 E ActivityManager: at android.app.IActivityManager$Stub.onTransact(IActivityManager.java:240)
02-07 19:19:08.422 1168 2170 E ActivityManager: at com.android.server.am.ActivityManagerService.onTransact(ActivityManagerService.java:3045)
02-07 19:19:08.422 1168 2170 E ActivityManager: at android.os.Binder.execTransact(Binder.java:697)
02-07 19:19:08.423 1168 2170 E ActivityManager: Sending non-protected broadcast com.symbol.datawedge.api.RESULT_ACTION from system 1551:com.symbol.datawedge/u0a10 pkg com.symbol.datawedge
02-07 19:19:08.423 1168 2170 E ActivityManager: java.lang.Throwable
02-07 19:19:08.423 1168 2170 E ActivityManager: at com.android.server.am.ActivityManagerService.checkBroadcastFromSystem(ActivityManagerService.java:19400)
02-07 19:19:08.423 1168 2170 E ActivityManager: at com.android.server.am.ActivityManagerService.broadcastIntentLocked(ActivityManagerService.java:20009)
02-07 19:19:08.423 1168 2170 E ActivityManager: at com.android.server.am.ActivityManagerService.broadcastIntent(ActivityManagerService.java:20151)
02-07 19:19:08.423 1168 2170 E ActivityManager: at android.app.IActivityManager$Stub.onTransact(IActivityManager.java:240)
02-07 19:19:08.423 1168 2170 E ActivityManager: at com.android.server.am.ActivityManagerService.onTransact(ActivityManagerService.java:3045)
02-07 19:19:08.423 1168 2170 E ActivityManager: at android.os.Binder.execTransact(Binder.java:697)
02-07 19:19:08.425 1551 1551 D com.symbol.datawedge.api.IntentAPIManager: onReceive(..):com.symbol.datawedge.ScanningService#18323e5,Intent { act=com.symbol.datawedge.api.ACTION flg=0x10 (has extras) }
02-07 19:19:08.459 1551 1551 D ScanningProxy: Inside ScannerOpen().... mReferenceCounter=0
02-07 19:19:08.460 724 1169 I ScannerFramework: [Scanner::ScannerOpen] 'ScannerOpen' called, Calling process pid '1551', package name 'com.symbol.datawedge'
02-07 19:19:08.460 724 1169 E ScannerFramework: [StackAdapter::ScannerOpen] User exists but Scanner not initialized
02-07 19:19:08.461 724 1169 I ScannerFramework: [Scanner::ScannerOpen] - '0'

Related

React Native APK keep crashing on device after releasing, but on build it's working fine

I created a signed react-native apk after following all the documents from the official react native documentation ( i.e. https://facebook.github.io/react-native/docs/signed-apk-android ). After creating my app crashed.
I have tried this doc also:
https://medium.com/#impaachu/react-native-android-release-build-crash-on-device-14f2c9eacf18
Here is My adb Logcat :
08-20 16:00:30.003 1724 1982 E AndroidRuntime: java.lang.RuntimeException: Result has already been set!
08-20 16:00:30.003 1724 1982 E AndroidRuntime: at com.facebook.react.common.futures.SimpleSettableFuture.checkNotSet(SimpleSettableFuture.java:118)
08-20 16:00:30.003 1724 1982 E AndroidRuntime: at com.facebook.react.common.futures.SimpleSettableFuture.setException(SimpleSettableFuture.java:42)
08-20 16:00:30.003 1724 1982 E AndroidRuntime: at com.facebook.react.devsupport.DevSupportManagerImpl$23.onFailure(DevSupportManagerImpl.java:953)
08-20 16:00:30.003 1724 1982 E AndroidRuntime: at com.facebook.react.devsupport.WebsocketJavaScriptExecutor$1.onFailure(WebsocketJavaScriptExecutor.java:83)
08-20 16:00:30.003 1724 1982 E AndroidRuntime: at com.facebook.react.devsupport.WebsocketJavaScriptExecutor$2$1.onFailure(WebsocketJavaScriptExecutor.java:121)
08-20 16:00:30.003 1724 1982 E AndroidRuntime: at com.facebook.react.devsupport.JSDebuggerWebSocketClient.abort(JSDebuggerWebSocketClient.java:240)
08-20 16:00:30.003 1724 1982 E AndroidRuntime: at com.facebook.react.devsupport.JSDebuggerWebSocketClient.onFailure(JSDebuggerWebSocketClient.java:215)
08-20 16:00:30.003 1724 1982 E AndroidRuntime: at okhttp3.internal.ws.RealWebSocket.failWebSocket(RealWebSocket.java:571)
08-20 16:00:30.003 1724 1982 E AndroidRuntime: at okhttp3.internal.ws.RealWebSocket$2.onResponse(RealWebSocket.java:216)
08-20 16:00:30.003 1724 1982 E AndroidRuntime: at okhttp3.RealCall$AsyncCall.execute(RealCall.java:206)
08-20 16:00:30.003 1724 1982 E AndroidRuntime: at okhttp3.internal.NamedRunnable.run(NamedRunnable.java:32)
08-20 16:00:30.003 1724 1982 E AndroidRuntime: at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
08-20 16:00:30.003 1724 1982 E AndroidRuntime: at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
08-20 16:00:30.003 1724 1982 E AndroidRuntime: at java.lang.Thread.run(Thread.java:764)
08-20 16:00:30.235 844 955 E storaged: getDiskStats failed with result NOT_SUPPORTED and size 0
08-20 16:00:35.008 2097 2122 E BatteryExternalStatsWorker: no controller energy info supplied for bluetooth
08-20 16:00:35.688 2097 2122 E BatteryExternalStatsWorker: no controller energy info supplied for bluetooth
08-20 16:01:30.239 844 955 E storaged: getDiskStats failed with result NOT_SUPPORTED and size 0
08-20 16:02:30.241 844 955 E storaged: getDiskStats failed with result NOT_SUPPORTED and size 0
08-20 16:03:27.774 2097 2122 E BatteryExternalStatsWorker: no controller energy info supplied for bluetooth
08-20 16:03:30.243 844 955 E storaged: getDiskStats failed with result NOT_SUPPORTED and size 0
08-20 16:03:48.981 2097 2122 E BatteryExternalStatsWorker: no controller energy info supplied for bluetooth
08-20 16:03:49.404 2097 2122 E BatteryExternalStatsWorker: no controller energy info supplied for bluetooth
08-20 16:03:51.325 2097 2122 E BatteryExternalStatsWorker: no controller energy info supplied for bluetooth
08-20 16:03:53.196 2097 2122 E BatteryExternalStatsWorker: no controller energy info supplied for bluetooth
08-20 16:03:53.677 2097 2122 E BatteryExternalStatsWorker: no controller energy info supplied for bluetooth
08-20 16:04:30.244 844 955 E storaged: getDiskStats failed with result NOT_SUPPORTED and size 0
08-20 16:05:06.556 4157 4258 E ActivityThread: Failed to find provider info for com.facebook.appmana
ger.nekodirect

Device is unable to write ANR trace into trace.txt

LG G2(Android version: 4.4.2) device unable to write ANR trace into trace.txt. Is it issue with the device or firmware?
Following is the error given in adb logs.
05-20 10:05:32.015 964 1003 E ActivityManager: ANR in com.verizon.pushtotalkplus (com.verizon.pushtotalkplus/.PocMainActivity)
05-20 10:05:32.015 964 1003 E ActivityManager: PID: 8309
05-20 10:05:32.015 964 1003 E ActivityManager: Reason: Input dispatching timed out (Waiting because the touched window has not finished processing the input events that were previously delivered to it.)
05-20 10:05:32.025 964 23382 E ActivityManager: Error reading /data/anr/traces.txt
05-20 10:05:32.025 964 23382 E ActivityManager: java.io.FileNotFoundException: /data/anr/traces.txt: open failed: ENOENT (No such file or directory)
05-20 10:05:32.025 964 23382 E ActivityManager: at libcore.io.IoBridge.open(IoBridge.java:458)
05-20 10:05:32.025 964 23382 E ActivityManager: at java.io.FileInputStream.(FileInputStream.java:78)
05-20 10:05:32.025 964 23382 E ActivityManager: at android.os.FileUtils.readTextFile(FileUtils.java:229)
05-20 10:05:32.025 964 23382 E ActivityManager: at com.android.server.am.ActivityManagerService$18.run(ActivityManagerService.java:10322)
05-20 10:05:32.025 964 23382 E ActivityManager: Caused by: libcore.io.ErrnoException: open failed: ENOENT (No such file or directory)
05-20 10:05:32.025 964 23382 E ActivityManager: at libcore.io.Posix.open(Native Method)
05-20 10:05:32.025 964 23382 E ActivityManager: at libcore.io.BlockGuardOs.open(BlockGuardOs.java:110)
05-20 10:05:32.025 964 23382 E ActivityManager: at libcore.io.IoBridge.open(IoBridge.java:442)
05-20 10:05:32.025 964 23382 E ActivityManager: ... 3 more

Google Play Services Log In Crash

Im having trouble with Google's Play Services Log In.
I have a Samsung S3 and the application runs jsut fine. I can login, unlock achievementens, post highscores, etc.
But I have been testing on some other devices, like the Samsung Galaxy Ace. For that device, when I try to log in for the first time it prompts me for an account (like it would normally do). After selecting it and proceeding, it says com.google.android.gms has crashed. There is no other option other than closing it forcefully and the application just hangs there waiting until it returns to the main app.
Checking the log cat I found this two errors:
02-07 12:34:22.549: E/Database(1464): Error inserting real_time_support=false turn_based_support=false instance_game_id=1 installed=true platform_type=ANDROID package_name=com.ccs.pg preferred=true piracy_check=false
02-07 12:34:22.549: E/Database(1464): android.database.sqlite.SQLiteConstraintException: error code 19: constraint failed
02-07 12:34:22.549: E/Database(1464): at android.database.sqlite.SQLiteStatement.native_execute(Native Method)
02-07 12:34:22.549: E/Database(1464): at android.database.sqlite.SQLiteStatement.execute(SQLiteStatement.java:61)
02-07 12:34:22.549: E/Database(1464): at android.database.sqlite.SQLiteDatabase.insertWithOnConflict(SQLiteDatabase.java:1582)
02-07 12:34:22.549: E/Database(1464): at android.database.sqlite.SQLiteDatabase.insert(SQLiteDatabase.java:1426)
02-07 12:34:22.549: E/Database(1464): at com.google.android.gms.games.provider.GamesContentProvider.a(SourceFile:1516)
02-07 12:34:22.549: E/Database(1464): at bbe.b(SourceFile:137)
02-07 12:34:22.549: E/Database(1464): at bbe.insert(SourceFile:116)
02-07 12:34:22.549: E/Database(1464): at android.content.ContentProviderOperation.apply(ContentProviderOperation.java:214)
02-07 12:34:22.549: E/Database(1464): at bbe.a(SourceFile:337)
02-07 12:34:22.549: E/Database(1464): at bbe.applyBatch(SourceFile:306)
02-07 12:34:22.549: E/Database(1464): at android.content.ContentProvider$Transport.applyBatch(ContentProvider.java:229)
02-07 12:34:22.549: E/Database(1464): at android.content.ContentProviderClient.applyBatch(ContentProviderClient.java:95)
02-07 12:34:22.549: E/Database(1464): at android.content.ContentResolver.applyBatch(ContentResolver.java:639)
02-07 12:34:22.549: E/Database(1464): at cmk.b(SourceFile:108)
02-07 12:34:22.549: E/Database(1464): at cmk.a(SourceFile:92)
02-07 12:34:22.549: E/Database(1464): at cmn.a(SourceFile:379)
02-07 12:34:22.549: E/Database(1464): at cmm.a(SourceFile:1944)
02-07 12:34:22.549: E/Database(1464): at dfm.a(SourceFile:106)
02-07 12:34:22.549: E/Database(1464): at com.google.android.gms.games.service.GamesSignInIntentService.onHandleIntent(SourceFile:336)
02-07 12:34:22.549: E/Database(1464): at android.app.IntentService$ServiceHandler.handleMessage(IntentService.java:59)
02-07 12:34:22.549: E/Database(1464): at android.os.Handler.dispatchMessage(Handler.java:99)
02-07 12:34:22.549: E/Database(1464): at android.os.Looper.loop(Looper.java:130)
02-07 12:34:22.549: E/Database(1464): at android.os.HandlerThread.run(HandlerThread.java:60)
02-07 12:34:22.549: W/dalvikvm(1464): threadid=13: thread exiting with uncaught exception (group=0x40018578)
And This one:
02-07 12:34:22.589: E/AndroidRuntime(1464): android.database.sqlite.SQLiteException: Error occured while inserting real_time_support=false turn_based_support=false instance_game_id=1 installed=true platform_type=ANDROID package_name=com.ccs.pg preferred=true piracy_check=false to uri content://com.google.android.gms.games.background/game_instances/4f8b3b51
02-07 12:34:22.589: E/AndroidRuntime(1464): at com.google.android.gms.games.provider.GamesContentProvider.a(SourceFile:1695)
02-07 12:34:22.589: E/AndroidRuntime(1464): at bbe.b(SourceFile:137)
02-07 12:34:22.589: E/AndroidRuntime(1464): at bbe.insert(SourceFile:116)
02-07 12:34:22.589: E/AndroidRuntime(1464): at android.content.ContentProviderOperation.apply(ContentProviderOperation.java:214)
02-07 12:34:22.589: E/AndroidRuntime(1464): at bbe.a(SourceFile:337)
02-07 12:34:22.589: E/AndroidRuntime(1464): at bbe.applyBatch(SourceFile:306)
02-07 12:34:22.589: E/AndroidRuntime(1464): at android.content.ContentProvider$Transport.applyBatch(ContentProvider.java:229)
02-07 12:34:22.589: E/AndroidRuntime(1464): at android.content.ContentProviderClient.applyBatch(ContentProviderClient.java:95)
02-07 12:34:22.589: E/AndroidRuntime(1464): at android.content.ContentResolver.applyBatch(ContentResolver.java:639)
02-07 12:34:22.589: E/AndroidRuntime(1464): at cmk.b(SourceFile:108)
02-07 12:34:22.589: E/AndroidRuntime(1464): at cmk.a(SourceFile:92)
02-07 12:34:22.589: E/AndroidRuntime(1464): at cmn.a(SourceFile:379)
02-07 12:34:22.589: E/AndroidRuntime(1464): at cmm.a(SourceFile:1944)
02-07 12:34:22.589: E/AndroidRuntime(1464): at dfm.a(SourceFile:106)
02-07 12:34:22.589: E/AndroidRuntime(1464): at com.google.android.gms.games.service.GamesSignInIntentService.onHandleIntent(SourceFile:336)
02-07 12:34:22.589: E/AndroidRuntime(1464): at android.app.IntentService$ServiceHandler.handleMessage(IntentService.java:59)
02-07 12:34:22.589: E/AndroidRuntime(1464): at android.os.Handler.dispatchMessage(Handler.java:99)
02-07 12:34:22.589: E/AndroidRuntime(1464): at android.os.Looper.loop(Looper.java:130)
02-07 12:34:22.589: E/AndroidRuntime(1464): at android.os.HandlerThread.run(HandlerThread.java:60)
From what I can tell, there is a problem inserting some values using SQLite, but as far as I know I have no control over that process.
Also, im not sure what the value "instance_game_id" is used for.
Has anybody had this problem before, knows how to fix it or has any suggestion?
Here is the whole logcat recorded from the moment I try to sign in (incluiding the enableDebugLog for GameHelper).
02-07 12:34:10.369: I/InputReader(162): dispatchTouch::touch event's action is 0
02-07 12:34:10.369: I/InputDispatcher(162): Delivering touch to current input target: action: 0, channel '408fc9c8 com.ccs.pg/com.ccs.pg.MainActivity (server)'
02-07 12:34:10.469: D/BatteryService(162): update start
02-07 12:34:10.469: D/BatteryService(162): update start
02-07 12:34:10.469: D/BatteryService(162): update start
02-07 12:34:10.479: I/InputReader(162): dispatchTouch::touch event's action is 1
02-07 12:34:10.479: I/InputDispatcher(162): Delivering touch to current input target: action: 1, channel '408fc9c8 com.ccs.pg/com.ccs.pg.MainActivity (server)'
02-07 12:34:10.889: D/GAME(1453): GameHelper: Starting USER-INITIATED sign-in flow.
02-07 12:34:10.889: D/GAME(1453): GameHelper: isGooglePlayServicesAvailable returned 0
02-07 12:34:10.889: D/GAME(1453): GameHelper: beginUserInitiatedSignIn: continuing pending sign-in flow.
02-07 12:34:10.889: D/GAME(1453): GameHelper: State change DISCONNECTED -> CONNECTING
02-07 12:34:10.899: D/GAME(1453): GameHelper: resolveConnectionResult: trying to resolve result: ConnectionResult{statusCode=SIGN_IN_REQUIRED, resolution=PendingIntent{4050d4a8: android.os.BinderProxy#4057b408}}
02-07 12:34:10.899: D/GAME(1453): GameHelper: Result has resolution. Starting it.
02-07 12:34:10.899: D/PhoneWindow(1453): couldn't save which view has focus because the focused view com.badlogic.gdx.backends.android.surfaceview.GLSurfaceViewCupcake#40586b40 has no id.
02-07 12:34:10.899: I/ActivityManager(162): Starting: Intent { flg=0x4000000 cmp=com.google.android.gms/.games.ui.signin.SignInActivity (has extras) } from pid -1
02-07 12:34:10.939: E/SensorManager(1453): unregisterListener:: all sensors, listener = com.badlogic.gdx.backends.android.AndroidInput$SensorListener#4052e4a8
02-07 12:34:10.939: E/SensorHAL(162): +__poll_activate: handle=0 enabled=0
02-07 12:34:10.949: E/SensorHAL(162): > Accelerometer Write /sys/class/input/input3/enable 0
02-07 12:34:10.949: E/SensorManager(1453): unregisterListener:: all sensors, listener = com.badlogic.gdx.backends.android.AndroidInput$SensorListener#40516fc8
02-07 12:34:10.949: E/SensorHAL(162): +__poll_activate: handle=1 enabled=0
02-07 12:34:10.949: I/AndroidInput(1453): sensor listener tear down
02-07 12:34:10.949: I/AndroidGraphics(1453): paused
02-07 12:34:10.969: I/ActivityManager(162): Start proc com.google.android.gms.ui for activity com.google.android.gms/.games.ui.signin.SignInActivity: pid=1526 uid=10016 gids={3003, 1015, 1006, 1007, 2001}
02-07 12:34:11.109: I/MultiDex(1526): load(/data/app/com.google.android.gms-1.apk, forceReload=false)
02-07 12:34:11.249: I/MultiDex(1526): Need extracted file /data/data/com.google.android.gms/files/secondary-dexes/com.google.android.gms-1.apk.classes2.zip
02-07 12:34:11.249: I/MultiDex(1526): No extraction needed for /data/data/com.google.android.gms/files/secondary-dexes/com.google.android.gms-1.apk.classes2.zip of size 1502503
02-07 12:34:11.269: D/GCM(1370): GcmService start Intent { act=com.google.android.gms.INITIALIZE pkg=com.google.android.gms cmp=com.google.android.gms/.gcm.GcmService } com.google.android.gms.INITIALIZE
02-07 12:34:11.289: W/dalvikvm(1526): VFY: unable to resolve virtual method 1383: Landroid/app/Activity;.invalidateOptionsMenu ()V
02-07 12:34:11.319: W/dalvikvm(1526): VFY: unable to resolve virtual method 2418: Landroid/os/Bundle;.getString (Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
02-07 12:34:11.319: W/dalvikvm(1526): VFY: unable to resolve static field 899 (THREAD_POOL_EXECUTOR) in Landroid/os/AsyncTask;
02-07 12:34:11.319: E/dalvikvm(1526): Could not find class 'android.app.AppOpsManager', referenced from method bea.a
02-07 12:34:11.319: W/dalvikvm(1526): VFY: unable to resolve check-cast 325 (Landroid/app/AppOpsManager;) in Lbea;
02-07 12:34:11.459: I/ActivityManager(162): Displayed com.google.android.gms/.games.ui.signin.SignInActivity: +501ms
02-07 12:34:15.199: E/dalvikvm(1526): Could not find class 'android.os.UserManager', referenced from method asy.b
02-07 12:34:15.199: W/dalvikvm(1526): VFY: unable to resolve check-cast 532 (Landroid/os/UserManager;) in Lasy;
02-07 12:34:15.199: E/dalvikvm(1526): Could not find class 'android.os.UserManager', referenced from method asy.c
02-07 12:34:15.199: W/dalvikvm(1526): VFY: unable to resolve check-cast 532 (Landroid/os/UserManager;) in Lasy;
02-07 12:34:15.199: W/dalvikvm(1526): VFY: unable to resolve virtual method 1341: Landroid/accounts/AccountManager;.getAccountsByTypeForPackage (Ljava/lang/String;Ljava/lang/String;)[Landroid/accounts/Account;
02-07 12:34:15.199: E/dalvikvm(1526): Could not find class 'android.os.UserManager', referenced from method asy.d
02-07 12:34:15.199: W/dalvikvm(1526): VFY: unable to resolve check-cast 532 (Landroid/os/UserManager;) in Lasy;
02-07 12:34:15.209: I/ActivityManager(162): Starting: Intent { act=com.google.android.gms.common.account.CHOOSE_ACCOUNT flg=0x20000000 cmp=com.google.android.gms/.common.account.AccountPickerActivity (has extras) } from pid 1526
02-07 12:34:15.229: I/OrientationDebug(162): [pwm] in updateOrientationListenerLp()
02-07 12:34:15.229: V/OrientationDebug(162): in updateOrientationListenerLp(), Screen status=true, current orientation=-1, SensorEnabled=false
02-07 12:34:15.229: I/OrientationDebug(162): [pwm] needSensorRunningLp(), return false #3
02-07 12:34:15.229: W/ActivityManager(162): Trying to launch com.google.android.gms/.common.account.AccountPickerActivity
02-07 12:34:15.229: I/WindowManager(162): Setting rotation to 0, animFlags=1
02-07 12:34:15.239: I/ActivityManager(162): Config changed: { scale=1.0 imsi=704/2 loc=es_US touch=3 keys=1/1/2 nav=1/1 orien=1 layout=18 uiMode=17 seq=22}
02-07 12:34:15.419: I/ActivityManager(162): Displayed com.google.android.gms/.common.account.AccountPickerActivity: +198ms
02-07 12:34:15.459: D/GAME(1453): GameHelper: onStop, state = CONNECTING
02-07 12:34:15.469: D/GAME(1453): GameHelper: onStop: Killing connections
02-07 12:34:15.469: D/GAME(1453): GameHelper: killConnections: killing connections.
02-07 12:34:15.469: D/GAME(1453): GameHelper: killConnections: all clients disconnected.
02-07 12:34:15.469: D/GAME(1453): GameHelper: State change CONNECTING -> DISCONNECTED
02-07 12:34:16.489: W/PowerManagerService(162): Timer 0x3->0x3|0x0
02-07 12:34:17.609: I/InputReader(162): dispatchTouch::touch event's action is 0
02-07 12:34:17.609: I/InputDispatcher(162): Delivering touch to current input target: action: 0, channel '409fa2e8 com.google.android.gms/com.google.android.gms.common.account.AccountPickerActivity (server)'
02-07 12:34:17.659: I/InputReader(162): dispatchTouch::touch event's action is 1
02-07 12:34:17.659: I/InputDispatcher(162): Delivering touch to current input target: action: 1, channel '409fa2e8 com.google.android.gms/com.google.android.gms.common.account.AccountPickerActivity (server)'
02-07 12:34:18.969: I/InputReader(162): dispatchTouch::touch event's action is 0
02-07 12:34:18.969: I/InputDispatcher(162): Delivering touch to current input target: action: 0, channel '409fa2e8 com.google.android.gms/com.google.android.gms.common.account.AccountPickerActivity (server)'
02-07 12:34:19.049: I/InputReader(162): dispatchTouch::touch event's action is 1
02-07 12:34:19.049: I/InputDispatcher(162): Delivering touch to current input target: action: 1, channel '409fa2e8 com.google.android.gms/com.google.android.gms.common.account.AccountPickerActivity (server)'
02-07 12:34:19.099: I/OrientationDebug(162): [pwm] in updateOrientationListenerLp()
02-07 12:34:19.099: V/OrientationDebug(162): in updateOrientationListenerLp(), Screen status=true, current orientation=0, SensorEnabled=false
02-07 12:34:19.099: I/OrientationDebug(162): [pwm] needSensorRunningLp(), return false #3
02-07 12:34:19.099: I/WindowManager(162): Setting rotation to 1, animFlags=1
02-07 12:34:19.119: I/ActivityManager(162): Config changed: { scale=1.0 imsi=704/2 loc=es_US touch=3 keys=1/1/2 nav=1/1 orien=2 layout=18 uiMode=17 seq=23}
02-07 12:34:19.149: D/GAME(1453): GameHelper: onStart, state = DISCONNECTED
02-07 12:34:19.159: D/GAME(1453): GameHelper: onStart: Now connecting clients.
02-07 12:34:19.159: D/GAME(1453): GameHelper: Starting connections.
02-07 12:34:19.159: D/GAME(1453): GameHelper: State change DISCONNECTED -> CONNECTING
02-07 12:34:19.159: D/GAME(1453): GameHelper: connectNextClient: requested clients: 1, connected clients: 0
02-07 12:34:19.159: D/GAME(1453): GameHelper: Pending clients: 1
02-07 12:34:19.159: D/GAME(1453): GameHelper: Connecting GamesClient.
02-07 12:34:19.359: D/GAME(1453): GameHelper: onConnectionFailed
02-07 12:34:19.359: D/GAME(1453): GameHelper: Connection failure:
02-07 12:34:19.359: D/GAME(1453): GameHelper: - code: SIGN_IN_REQUIRED(4)
02-07 12:34:19.359: D/GAME(1453): GameHelper: - resolvable: true
02-07 12:34:19.359: D/GAME(1453): GameHelper: - details: ConnectionResult{statusCode=SIGN_IN_REQUIRED, resolution=PendingIntent{405562f8: android.os.BinderProxy#4057b408}}
02-07 12:34:19.359: D/GAME(1453): GameHelper: onConnectionFailed: since user initiated sign-in, resolving problem.
02-07 12:34:19.359: D/GAME(1453): GameHelper: We're already expecting the result of a previous resolution.
02-07 12:34:19.479: I/ActivityManager(162): Start proc com.google.android.gsf.login for service com.google.android.gms/.auth.GetToken: pid=1536 uid=10016 gids={3003, 1015, 1006, 1007, 2001}
02-07 12:34:19.669: I/MultiDex(1536): load(/data/app/com.google.android.gms-1.apk, forceReload=false)
02-07 12:34:19.829: I/MultiDex(1536): Need extracted file /data/data/com.google.android.gms/files/secondary-dexes/com.google.android.gms-1.apk.classes2.zip
02-07 12:34:19.829: I/MultiDex(1536): No extraction needed for /data/data/com.google.android.gms/files/secondary-dexes/com.google.android.gms-1.apk.classes2.zip of size 1502503
02-07 12:34:19.849: D/GCM(1370): GcmService start Intent { act=com.google.android.gms.INITIALIZE pkg=com.google.android.gms cmp=com.google.android.gms/.gcm.GcmService } com.google.android.gms.INITIALIZE
02-07 12:34:19.879: W/dalvikvm(1536): VFY: unable to resolve virtual method 1508: Landroid/app/PendingIntent;.getCreatorPackage ()Ljava/lang/String;
02-07 12:34:19.879: W/dalvikvm(1536): VFY: unable to resolve virtual method 1509: Landroid/app/PendingIntent;.getCreatorUid ()I
02-07 12:34:19.989: E/dalvikvm(1536): Could not find class 'android.os.UserManager', referenced from method asy.b
02-07 12:34:19.989: W/dalvikvm(1536): VFY: unable to resolve check-cast 532 (Landroid/os/UserManager;) in Lasy;
02-07 12:34:19.989: E/dalvikvm(1536): Could not find class 'android.os.UserManager', referenced from method asy.c
02-07 12:34:19.989: W/dalvikvm(1536): VFY: unable to resolve check-cast 532 (Landroid/os/UserManager;) in Lasy;
02-07 12:34:19.989: W/dalvikvm(1536): VFY: unable to resolve virtual method 1341: Landroid/accounts/AccountManager;.getAccountsByTypeForPackage (Ljava/lang/String;Ljava/lang/String;)[Landroid/accounts/Account;
02-07 12:34:19.989: E/dalvikvm(1536): Could not find class 'android.os.UserManager', referenced from method asy.d
02-07 12:34:19.989: W/dalvikvm(1536): VFY: unable to resolve check-cast 532 (Landroid/os/UserManager;) in Lasy;
02-07 12:34:20.029: I/NotificationStore(1536): file does not exist: /data/data/com.google.android.gms/files/notification_data.dat
02-07 12:34:20.479: D/BatteryService(162): update start
02-07 12:34:20.479: D/BatteryService(162): update start
02-07 12:34:20.489: D/BatteryService(162): update start
02-07 12:34:22.399: I/global(1464): Loaded time zone names for en_US in 1189ms.
02-07 12:34:22.549: E/Database(1464): Error inserting real_time_support=false turn_based_support=false instance_game_id=1 installed=true platform_type=ANDROID package_name=com.ccs.pg preferred=true piracy_check=false
02-07 12:34:22.549: E/Database(1464): android.database.sqlite.SQLiteConstraintException: error code 19: constraint failed
02-07 12:34:22.549: E/Database(1464): at android.database.sqlite.SQLiteStatement.native_execute(Native Method)
02-07 12:34:22.549: E/Database(1464): at android.database.sqlite.SQLiteStatement.execute(SQLiteStatement.java:61)
02-07 12:34:22.549: E/Database(1464): at android.database.sqlite.SQLiteDatabase.insertWithOnConflict(SQLiteDatabase.java:1582)
02-07 12:34:22.549: E/Database(1464): at android.database.sqlite.SQLiteDatabase.insert(SQLiteDatabase.java:1426)
02-07 12:34:22.549: E/Database(1464): at com.google.android.gms.games.provider.GamesContentProvider.a(SourceFile:1516)
02-07 12:34:22.549: E/Database(1464): at bbe.b(SourceFile:137)
02-07 12:34:22.549: E/Database(1464): at bbe.insert(SourceFile:116)
02-07 12:34:22.549: E/Database(1464): at android.content.ContentProviderOperation.apply(ContentProviderOperation.java:214)
02-07 12:34:22.549: E/Database(1464): at bbe.a(SourceFile:337)
02-07 12:34:22.549: E/Database(1464): at bbe.applyBatch(SourceFile:306)
02-07 12:34:22.549: E/Database(1464): at android.content.ContentProvider$Transport.applyBatch(ContentProvider.java:229)
02-07 12:34:22.549: E/Database(1464): at android.content.ContentProviderClient.applyBatch(ContentProviderClient.java:95)
02-07 12:34:22.549: E/Database(1464): at android.content.ContentResolver.applyBatch(ContentResolver.java:639)
02-07 12:34:22.549: E/Database(1464): at cmk.b(SourceFile:108)
02-07 12:34:22.549: E/Database(1464): at cmk.a(SourceFile:92)
02-07 12:34:22.549: E/Database(1464): at cmn.a(SourceFile:379)
02-07 12:34:22.549: E/Database(1464): at cmm.a(SourceFile:1944)
02-07 12:34:22.549: E/Database(1464): at dfm.a(SourceFile:106)
02-07 12:34:22.549: E/Database(1464): at com.google.android.gms.games.service.GamesSignInIntentService.onHandleIntent(SourceFile:336)
02-07 12:34:22.549: E/Database(1464): at android.app.IntentService$ServiceHandler.handleMessage(IntentService.java:59)
02-07 12:34:22.549: E/Database(1464): at android.os.Handler.dispatchMessage(Handler.java:99)
02-07 12:34:22.549: E/Database(1464): at android.os.Looper.loop(Looper.java:130)
02-07 12:34:22.549: E/Database(1464): at android.os.HandlerThread.run(HandlerThread.java:60)
02-07 12:34:22.549: W/dalvikvm(1464): threadid=13: thread exiting with uncaught exception (group=0x40018578)
02-07 12:34:22.589: E/(162): Dumpstate > /data/log/dumpstate_app_error
02-07 12:34:22.589: E/AndroidRuntime(1464): FATAL EXCEPTION: IntentService[SignInIntentService]
02-07 12:34:22.589: E/AndroidRuntime(1464): android.database.sqlite.SQLiteException: Error occured while inserting real_time_support=false turn_based_support=false instance_game_id=1 installed=true platform_type=ANDROID package_name=com.ccs.pg preferred=true piracy_check=false to uri content://com.google.android.gms.games.background/game_instances/4f8b3b51
02-07 12:34:22.589: E/AndroidRuntime(1464): at com.google.android.gms.games.provider.GamesContentProvider.a(SourceFile:1695)
02-07 12:34:22.589: E/AndroidRuntime(1464): at bbe.b(SourceFile:137)
02-07 12:34:22.589: E/AndroidRuntime(1464): at bbe.insert(SourceFile:116)
02-07 12:34:22.589: E/AndroidRuntime(1464): at android.content.ContentProviderOperation.apply(ContentProviderOperation.java:214)
02-07 12:34:22.589: E/AndroidRuntime(1464): at bbe.a(SourceFile:337)
02-07 12:34:22.589: E/AndroidRuntime(1464): at bbe.applyBatch(SourceFile:306)
02-07 12:34:22.589: E/AndroidRuntime(1464): at android.content.ContentProvider$Transport.applyBatch(ContentProvider.java:229)
02-07 12:34:22.589: E/AndroidRuntime(1464): at android.content.ContentProviderClient.applyBatch(ContentProviderClient.java:95)
02-07 12:34:22.589: E/AndroidRuntime(1464): at android.content.ContentResolver.applyBatch(ContentResolver.java:639)
02-07 12:34:22.589: E/AndroidRuntime(1464): at cmk.b(SourceFile:108)
02-07 12:34:22.589: E/AndroidRuntime(1464): at cmk.a(SourceFile:92)
02-07 12:34:22.589: E/AndroidRuntime(1464): at cmn.a(SourceFile:379)
02-07 12:34:22.589: E/AndroidRuntime(1464): at cmm.a(SourceFile:1944)
02-07 12:34:22.589: E/AndroidRuntime(1464): at dfm.a(SourceFile:106)
02-07 12:34:22.589: E/AndroidRuntime(1464): at com.google.android.gms.games.service.GamesSignInIntentService.onHandleIntent(SourceFile:336)
02-07 12:34:22.589: E/AndroidRuntime(1464): at android.app.IntentService$ServiceHandler.handleMessage(IntentService.java:59)
02-07 12:34:22.589: E/AndroidRuntime(1464): at android.os.Handler.dispatchMessage(Handler.java:99)
02-07 12:34:22.589: E/AndroidRuntime(1464): at android.os.Looper.loop(Looper.java:130)
02-07 12:34:22.589: E/AndroidRuntime(1464): at android.os.HandlerThread.run(HandlerThread.java:60)
02-07 12:34:25.049: W/PowerManagerService(162): Timer 0x3->0x3|0x0
02-07 12:34:26.269: D/VoldCmdListener(86): asec list
02-07 12:34:30.499: D/BatteryService(162): update start
02-07 12:34:30.509: D/BatteryService(162): update start
02-07 12:34:30.519: D/BatteryService(162): update start
TL;DR: The "Name of the app" field for the Spanish configuration was empty.
Found the problem. The error wasnt on the code itself, it was on the configuration of the developer console account.
When you make use of the Google Play Game Services you need to configure the Linked App Details.
Because my app is available on both Spanish and English I created a configuration for each language. Also, my phone, the S3 has its default language on English, while the other devices I tested it on where on Spanish.
So the problem occurred because I hadn't written anything for the "Name of the app" field for my Spanish configuration. Android marked it as an error (highlighted in red), but because the English version had that field filled, in the end it marked no error and allowed me to continue testing. In the main panel of the Play Game Services (the one with the checks) everything seemed fine when it wasn't with one of the language configurations.
So in the end that's why SQLite had a constraint problem. It probably was trying to insert a null value on one of its columns and the GooglePlayGameServicesLibrary thingy didn't check for null values.

How to connect the Bluetooth device in Android

I reference and imitates the Android Sample at android-sdks\samples\android-18\legacy\BluetoothLeGatt to developing an application.
I can scan the device.
But the app crash when I try to connect the bluetooth device.
This is the log that the app crash when I try to connect the bluetooth device.
D/BtGatt.btif( 2443): btif_gattc_scan
D/BtGatt.btif( 2443): btgattc_handle_event: Event 1003
D/BtGatt.GattService( 2443): unregisterClient() - clientIf=4
D/BtGatt.btif( 2443): btif_gattc_unregister_app
D/BtGatt.btif( 2443): btgattc_handle_event: Event 1001
D/BtGatt.btif( 2443): btif_gattc_upstreams_evt: Event 1
I/ActivityManager( 1766): START u0 {cmp=com.example.prevent_the_lost/.DeviceControl (has extras)} from pid 5526
W/WindowManager( 1766): Screenshot failure taking screenshot for (166x125) to layer 21015
I/bt-hci ( 2443): BLE HCI(id=62) event = 0x02)
I/bt-hci ( 2443): btu_ble_process_adv_pkt
D/BluetoothAdapter( 5526): stopLeScan()
I/bt-hci ( 2443): BLE HCI(id=62) event = 0x02)
I/bt-hci ( 2443): btu_ble_process_adv_pkt
D/dalvikvm( 5526): GC_CONCURRENT freed 165K, 5% free 4427K/4624K, paused 1ms+1ms, total 5ms
W/ActivityManager( 1766): Unable to start service Intent { cmp=com.example.prevent_the_lost/.BluetoothLeService } U=0: not found
I/ActivityManager( 1766): Displayed com.example.prevent_the_lost/.DeviceControl: +29ms
D/AndroidRuntime( 5526): Shutting down VM
W/dalvikvm( 5526): threadid=1: thread exiting with uncaught exception (group=0x94ee8648)
E/AndroidRuntime( 5526): FATAL EXCEPTION: main
E/AndroidRuntime( 5526): java.lang.NullPointerException
E/AndroidRuntime( 5526): at com.example.prevent_the_lost.DeviceControl.onOptionsItemSelected(DeviceControl.java:140)
E/AndroidRuntime( 5526): at android.app.Activity.onMenuItemSelected(Activity.java:2566)
E/AndroidRuntime( 5526): at com.android.internal.policy.impl.PhoneWindow.onMenuItemSelected(PhoneWindow.java:986)
E/AndroidRuntime( 5526): at com.android.internal.view.menu.MenuBuilder.dispatchMenuItemSelected(MenuBuilder.java:735)
E/AndroidRuntime( 5526): at com.android.internal.view.menu.MenuItemImpl.invoke(MenuItemImpl.java:152)
E/AndroidRuntime( 5526): at com.android.internal.view.menu.MenuBuilder.performItemAction(MenuBuilder.java:874)
E/AndroidRuntime( 5526): at com.android.internal.view.menu.ActionMenuView.invokeItem(ActionMenuView.java:547)
E/AndroidRuntime( 5526): at com.android.internal.view.menu.ActionMenuItemView.onClick(ActionMenuItemView.java:115)
E/AndroidRuntime( 5526): at android.view.View.performClick(View.java:4240)
E/AndroidRuntime( 5526): at android.view.View$PerformClick.run(View.java:17721)
E/AndroidRuntime( 5526): at android.os.Handler.handleCallback(Handler.java:730)
E/AndroidRuntime( 5526): at android.os.Handler.dispatchMessage(Handler.java:92)
E/AndroidRuntime( 5526): at android.os.Looper.loop(Looper.java:137)
E/AndroidRuntime( 5526): at android.app.ActivityThread.main(ActivityThread.java:5103)
E/AndroidRuntime( 5526): at java.lang.reflect.Method.invokeNative(NativeMethod)
E/AndroidRuntime( 5526): at java.lang.reflect.Method.invoke(Method.java:525)
E/AndroidRuntime( 5526): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:737)
E/AndroidRuntime( 5526): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:553)
E/AndroidRuntime( 5526): at dalvik.system.NativeStart.main(Native Method)
W/ActivityManager( 1766): Force finishing activity com.example.prevent_the_lost/.DeviceControl
W/WindowManager( 1766): Screenshot failure taking screenshot for (166x125) to layer 21020
W/ActivityManager( 1766): Activity pause timeout for ActivityRecord{4aad960c u0com.example.prevent_the_lost/.DeviceControl}
I/Process ( 5526): Sending signal. PID: 5526 SIG: 9
W/InputDispatcher( 1766): channel '4aaa49ec com.example.prevent_the_lost/com.example.prevent_the_lost.Device_List (server)' ~ Consumer closed input channel or an error occurred. events=0x9
E/InputDispatcher( 1766): channel '4aaa49ec com.example.prevent_the_lost/com.example.prevent_the_lost.Device_List (server)' ~ Channel is unrecoverably broken and will be disposed!
W/InputDispatcher( 1766): channel '4aa9c3e4 com.example.prevent_the_lost/com.example.prevent_the_lost.DeviceControl (server)' ~ Consumer closed input channel or an error occurred. events=0xd
E/InputDispatcher( 1766): channel '4aa9c3e4 com.example.prevent_the_lost/com.example.prevent_the_lost.DeviceControl (server)' ~ Channel is unrecoverably brokenand will be disposed!
W/InputDispatcher( 1766): Attempted to unregister already unregistered input channel '4aaa49ec com.example.prevent_the_lost/com.example.prevent_the_lost.Device_List (server)'
W/InputDispatcher( 1766): Attempted to unregister already unregistered input channel '4aa9c3e4 com.example.prevent_the_lost/com.example.prevent_the_lost.DeviceControl (server)'
I/ActivityManager( 1766): Process com.example.prevent_the_lost (pid 5526) has died.
I/WindowState( 1766): WIN DEATH: Window{4aaa49ec u0 com.example.prevent_the_lost/com.example.prevent_the_lost.Device_List}
I/WindowState( 1766): WIN DEATH: Window{4aa9c3e4 u0 com.example.prevent_the_lost/com.example.prevent_the_lost.DeviceControl}
I/ActivityManager( 1766): Start proc com.example.prevent_the_lost for activity com.example.prevent_the_lost/.Device_List: pid=5545 uid=10043 gids={50043, 3001,3002, 1028}
I/ActivityThread( 5545): Switching default density from 160 to 130
D/BluetoothManagerService( 1766): Message: 20
D/BluetoothManagerService( 1766): Added callback: android.bluetooth.IBluetoothManagerCallback$Stub$Proxy#4ab1fee8:true
W/InputMethodManagerService( 1766): Got RemoteException sending setActive(false) notification to pid 5526 uid 10043
I/ActivityManager( 1766): Displayed com.example.prevent_the_lost/.Device_List: +171ms
D/dalvikvm( 1766): GC_CONCURRENT freed 455K, 19% free 7301K/8980K, paused 1ms+1ms, total 12ms
I don't know what the error in this Log ??
Could somebody tell me the error and how to solve it ???
Thanks a lot!!!
I find the error is "Unable to start service Intent"
The solution is add the Service in Manifest -> Application.

Drop event when select OK to restart Launcher when ANR occurs

When ANR occurs for Launcher,dialog pops up and the Launcher resume then.
Select OK to restart Launcher after the launcher resume to respond, the rest keys will be dropped.
The problem occurs in my developing environment and it's hard to reproduce.So I do a test for this:
Create a simple APK as Launcher, and sleep some time in onCreat or onResume to let the ANR occurs
Start the Launcher and press key to let ANR occurs
after sleep the view is normally shown behind the ANR dialog
select OK to restart launcher, then keys can't be received because the activity can't created
Dropping event because there is no focused window or focused application
The APK is used on Android4.0 and Android2.2
there is no problem in Android2.2, it looks like a problem on Android 4.03.
Log are suppled for the real test issue and the emulate issue in 2.2, 4.03.
Plus: I modify the original Launcher2 as well and sleep in onResume, It has no such issue
but I can't find any clue.
Any help is appreciated.
Android4.0
09-10 17:29:44.716 W/ActivityManager( 77): Force finishing activity com.example.testanr2/.MainActivity
09-10 17:29:44.716 W/WindowManager( 77): Failure taking screenshot for (180x300) to layer 21005
09-10 17:29:44.736 I/ActivityManager( 77): Clearing package preferred activities from com.example.testanr2
09-10 17:29:44.736 I/ActivityManager( 77): Killing ProcessRecord{415df8d8 2409:com.example.testanr2/10040}: user's request
09-10 17:29:44.756 I/WindowManager( 77): WIN DEATH: Window{41444c48 com.example.testanr2/com.example.testanr2.MainActivity paused=true}
09-10 17:29:44.765 I/ActivityManager( 77): START {act=android.intent.action.MAIN cat=[android.intent.category.HOME] flg=0x10000000 cmp=com.example.testanr2/.MainActivity} from pid 0
09-10 17:29:44.786 W/ActivityManager( 77): Exception when starting activity com.example.testanr2/.MainActivity
09-10 17:29:44.786 W/ActivityManager( 77): android.os.DeadObjectException
09-10 17:29:44.786 W/ActivityManager( 77): at android.os.BinderProxy.transact(Native Method)
09-10 17:29:44.786 W/ActivityManager( 77): at android.app.ApplicationThreadProxy.scheduleLaunchActivity(ApplicationThreadNative.java:660)
09-10 17:29:44.786 W/ActivityManager( 77): at com.android.server.am.ActivityStack.realStartActivityLocked(ActivityStack.java:593)
09-10 17:29:44.786 W/ActivityManager( 77): at com.android.server.am.ActivityStack.startSpecificActivityLocked(ActivityStack.java:701)
09-10 17:29:44.786 W/ActivityManager( 77): at com.android.server.am.ActivityStack.resumeTopActivityLocked(ActivityStack.java:1571)
09-10 17:29:44.786 W/ActivityManager( 77): at com.android.server.am.ActivityStack.completePauseLocked(ActivityStack.java:1000)
09-10 17:29:44.786 W/ActivityManager( 77): at com.android.server.am.ActivityStack.activityPaused(ActivityStack.java:928)
09-10 17:29:44.786 W/ActivityManager( 77): at com.android.server.am.ActivityManagerService.activityPaused(ActivityManagerService.java:3957)
09-10 17:29:44.786 W/ActivityManager( 77): at android.app.ActivityManagerNative.onTransact(ActivityManagerNative.java:371)
09-10 17:29:44.786 W/ActivityManager( 77): at com.android.server.am.ActivityManagerService.onTransact(ActivityManagerService.java:1496)
09-10 17:29:44.786 W/ActivityManager( 77): at android.os.Binder.execTransact(Binder.java:338)
09-10 17:29:44.786 W/ActivityManager( 77): at dalvik.system.NativeStart.run(Native Method)
09-10 17:29:44.786 W/ActivityManager( 77): Force removing ActivityRecord{414b0020 com.example.testanr2/.MainActivity}: app died, no saved state
09-10 17:29:44.836 D/dalvikvm( 2438): Not late-enabling CheckJNI (already on)
09-10 17:29:44.855 I/ActivityManager( 77): Start proc com.example.testanr2 for activity com.example.testanr2/.MainActivity: pid=2438 uid=10040 gids={}
09-10 17:29:44.855 I/ActivityManager( 77): Process com.example.testanr2 (pid 2409) has died and restarted (pid 2438).
09-10 17:29:44.855 W/NetworkManagementSocketTagger( 77): setKernelCountSet(10040, 0) failed with errno -2
09-10 17:29:47.562 I/InputDispatcher( 77): Dropping event because there is no touched window or focused application.
09-10 17:29:47.828 I/InputDispatcher( 77): Dropping event because there is no touched window or focused application.
09-10 17:29:47.965 D/dalvikvm( 161): GC_CONCURRENT freed 384K, 6% free 10331K/10951K, paused 7ms+3ms
09-10 17:29:48.135 I/InputDispatcher( 77): Dropping event because there is no touched window or focused application.
09-10 17:29:50.207 I/InputDispatcher( 77): Dropping event because there is no touched window or focused application.
09-10 17:29:50.708 I/InputDispatcher( 77): Dropping event because there is no touched window or focused application.
09-10 17:29:50.991 I/InputDispatcher( 77): Dropping event because there is no touched window or focused application.
09-10 17:29:51.205 I/InputDispatcher( 77): Dropping event because there is no touched window or focused application.
09-10 17:29:51.362 I/InputDispatcher( 77): Dropping event because there is no touched window or focused application.
09-10 17:29:54.746 W/ActivityManager( 77): Launch timeout has expired, giving up wake lock!
09-10 17:29:57.877 I/InputDispatcher( 77): Dropping event because there is no touched window or focused application.
Android2.2
09-10 16:40:32.254 D/PackageManager( 72): New package installed in /data/app/com.example.testanr2-1.apk
09-10 16:40:32.304 D/lixin ( 668): sleep~ in application10
09-10 16:40:32.394 I/ActivityManager( 72): Force stopping package com.example.testanr2 uid=10040
09-10 16:40:32.394 I/Process ( 72): Sending signal. PID: 668 SIG: 9
09-10 16:40:32.414 I/ActivityManager( 72): Starting activity: Intent { act=android.intent.action.MAIN cat=[android.intent.category.HOME] flg=0x10000000 cmp=com.example.testanr2/.MainActivity }
09-10 16:40:32.484 D/dalvikvm( 72): GC_FOR_MALLOC freed 11945 objects / 732440 bytes in 67ms
09-10 16:40:32.484 I/ActivityManager( 72): Start proc com.example.testanr2 for activity com.example.testanr2/.MainActivity: pid=674 uid=10040 gids={}
09-10 16:40:32.604 D/dalvikvm( 198): GC_EXPLICIT freed 2644 objects / 128328 bytes in 105ms
09-10 16:40:32.734 D/dalvikvm( 72): GC_EXPLICIT freed 939 objects / 49752 bytes in 229ms
09-10 16:40:32.734 I/UsageStats( 72): Unexpected resume of com.example.testanr2 while already resumed in com.example.testanr2
09-10 16:40:32.834 W/RecognitionManagerService( 72): no available voice recognition services found
09-10 16:40:32.864 D/lixin ( 674): sleep~ in application10
09-10 16:40:32.915 D/dalvikvm( 72): GC_EXPLICIT freed 2356 objects / 116024 bytes in 77ms
09-10 16:40:32.954 I/installd( 34): unlink /data/dalvik-cache/data#app#com.example.testanr2-2.apk#classes.dex
09-10 16:40:32.984 D/AndroidRuntime( 654): Shutting down VM
09-10 16:40:32.984 D/dalvikvm( 654): Debugger has detached; object registry had 1 entries
09-10 16:40:33.245 D/AndroidRuntime( 684):
09-10 16:40:33.245 D/AndroidRuntime( 684): >>>>>>>>>>>>>> AndroidRuntime START <<<<<<<<<<<<<<
09-10 16:40:33.245 D/AndroidRuntime( 684): CheckJNI is ON
09-10 16:40:33.334 D/AndroidRuntime( 684): --- registering native functions ---
09-10 16:40:33.665 I/ActivityManager( 72): Starting activity: Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10000000 cmp=com.example.testanr2/.MainActivity }
09-10 16:40:33.665 D/AndroidRuntime( 684): Shutting down VM
09-10 16:40:33.665 D/dalvikvm( 684): Debugger has detached; object registry had 1 entries
09-10 16:40:33.674 I/AndroidRuntime( 684): NOTE: attach of thread 'Binder Thread #3' failed
09-10 16:40:34.169 W/ActivityManager( 72): Activity pause timeout for HistoryRecord{45060dd8 com.example.testanr2/.MainActivity}
09-10 16:40:40.057 W/WindowManager( 72): No window to dispatch pointer action 0
09-10 16:40:40.074 W/WindowManager( 72): No window to dispatch pointer action 1
09-10 16:40:40.275 W/WindowManager( 72): No window to dispatch pointer action 0
09-10 16:40:40.314 W/WindowManager( 72): No window to dispatch pointer action 1
09-10 16:40:40.445 W/WindowManager( 72): No window to dispatch pointer action 0
09-10 16:40:40.484 W/WindowManager( 72): No window to dispatch pointer action 1
09-10 16:40:40.528 W/ActivityManager( 72): Launch timeout has expired, giving up wake lock!
09-10 16:40:40.678 W/WindowManager( 72): No window to dispatch pointer action 0
09-10 16:40:40.714 W/WindowManager( 72): No window to dispatch pointer action 1
09-10 16:40:40.864 W/WindowManager( 72): No window to dispatch pointer action 0
09-10 16:40:40.874 W/WindowManager( 72): No window to dispatch pointer action 1
09-10 16:40:41.604 W/WindowManager( 72): No window to dispatch pointer action 0
09-10 16:40:41.637 W/WindowManager( 72): No window to dispatch pointer action 1
09-10 16:40:41.755 W/WindowManager( 72): No window to dispatch pointer action 0
09-10 16:40:41.786 W/WindowManager( 72): No window to dispatch pointer action 1
09-10 16:40:41.936 W/WindowManager( 72): No window to dispatch pointer action 0
09-10 16:40:41.954 W/WindowManager( 72): No window to dispatch pointer action 1
09-10 16:40:42.088 W/WindowManager( 72): No window to dispatch pointer action 0
09-10 16:40:42.124 W/WindowManager( 72): No window to dispatch pointer action 1
09-10 16:40:42.234 W/WindowManager( 72): No window to dispatch pointer action 0
09-10 16:40:42.295 W/WindowManager( 72): No window to dispatch pointer action 1
09-10 16:40:42.404 W/WindowManager( 72): No window to dispatch pointer action 0
09-10 16:40:42.444 W/WindowManager( 72): No window to dispatch pointer action 1
09-10 16:40:42.595 W/WindowManager( 72): No window to dispatch pointer action 0
09-10 16:40:42.614 W/WindowManager( 72): No window to dispatch pointer action 1
09-10 16:40:42.744 W/ActivityManager( 72): Activity idle timeout for HistoryRecord{45060dd8 com.example.testanr2/.MainActivity}
09-10 16:40:42.744 W/WindowManager( 72): No window to dispatch pointer action 0
09-10 16:40:42.754 W/WindowManager( 72): No window to dispatch pointer action 1
09-10 16:40:42.885 W/WindowManager( 72): No window to dispatch pointer action 0
09-10 16:40:42.885 D/lixin ( 674): sleep~ in application10
09-10 16:40:42.926 W/WindowManager( 72): No window to dispatch pointer action 1
09-10 16:40:44.181 W/ActivityManager( 72): Activity idle timeout for HistoryRecord{451b0480 com.example.testanr2/.MainActivity}
09-10 16:40:47.029 W/WindowManager( 72): No window to dispatch pointer action 0
09-10 16:40:47.045 W/WindowManager( 72): No window to dispatch pointer action 1
09-10 16:40:47.280 W/WindowManager( 72): No window to dispatch pointer action 0
09-10 16:40:47.345 W/WindowManager( 72): No window to dispatch pointer action 1
09-10 16:40:47.545 W/WindowManager( 72): No window to dispatch pointer action 0
09-10 16:40:47.595 W/WindowManager( 72): No window to dispatch pointer action 1
09-10 16:40:47.794 W/WindowManager( 72): No window to dispatch pointer action 0
09-10 16:40:47.865 W/WindowManager( 72): No window to dispatch pointer action 1
09-10 16:40:49.235 D/dalvikvm( 289): GC_EXPLICIT freed 353 objects / 19600 bytes in 56ms
09-10 16:40:52.924 W/InputManagerService( 72): Got RemoteException sending setActive(false) notification to pid 575 uid 10040
09-10 16:40:52.964 I/ActivityManager( 72): Displayed activity com.example.testanr2/.MainActivity: 18800 ms (total 22687 ms)
Launcher2
01-01 08:12:56.140 I/WindowManager( 1259): Handle special keys: 23
01-01 08:12:56.145 W/ActivityManager( 1259): Force finishing activity com.android.launcher/com.android.launcher2.Launcher
01-01 08:12:56.239 D/dalvikvm( 1259): GC_FOR_ALLOC freed 462K, 13% free 10871K/12423K, paused 48ms
01-01 08:12:56.242 D/UsageStats( 1259): UsageStats: broadcasting intent
01-01 08:12:56.244 I/ActivityManager( 1259): Clearing package preferred activities from com.android.launcher
01-01 08:12:56.244 I/ActivityManager( 1259): Killing ProcessRecord{40c2f498 2970:com.android.launcher/10032}: user's request
01-01 08:12:56.252 I/ActivityManager( 1259): START {act=android.intent.action.MAIN cat=[android.intent.category.HOME] flg=0x10000000 cmp=com.android.launcher/com.android.launcher2.Launcher} from pid 0
01-01 08:12:56.303 E/JavaBinder( 1259): !!! FAILED BINDER TRANSACTION !!!
01-01 08:12:56.330 W/ActivityManager( 1259): Exception when starting activity com.android.launcher/com.android.launcher2.Launcher
01-01 08:12:56.330 W/ActivityManager( 1259): android.os.TransactionTooLargeException
01-01 08:12:56.330 W/ActivityManager( 1259): at android.os.BinderProxy.transact(Native Method)
01-01 08:12:56.330 W/ActivityManager( 1259): at android.app.ApplicationThreadProxy.scheduleLaunchActivity(ApplicationThreadNative.java:660)
01-01 08:12:56.330 W/ActivityManager( 1259): at com.android.server.am.ActivityStack.realStartActivityLocked(ActivityStack.java:615)
01-01 08:12:56.330 W/ActivityManager( 1259): at com.android.server.am.ActivityStack.startSpecificActivityLocked(ActivityStack.java:724)
01-01 08:12:56.330 W/ActivityManager( 1259): at com.android.server.am.ActivityStack.resumeTopActivityLocked(ActivityStack.java:1614)
01-01 08:12:56.330 W/ActivityManager( 1259): at com.android.server.am.ActivityStack.startActivityLocked(ActivityStack.java:1760)
01-01 08:12:56.330 W/ActivityManager( 1259): at com.android.server.am.ActivityStack.startActivityUncheckedLocked(ActivityStack.java:2802)
01-01 08:12:56.330 W/ActivityManager( 1259): at com.android.server.am.ActivityStack.startActivityLocked(ActivityStack.java:2422)
01-01 08:12:56.330 W/ActivityManager( 1259): at com.android.server.am.ActivityManagerService.startHomeActivityLocked(ActivityManagerService.java:2063)
01-01 08:12:56.330 W/ActivityManager( 1259): at com.android.server.am.ActivityStack.resumeTopActivityLocked(ActivityStack.java:1299)
01-01 08:12:56.330 W/ActivityManager( 1259): at com.android.server.am.ActivityStack.completePauseLocked(ActivityStack.java:1040)
01-01 08:12:56.330 W/ActivityManager( 1259): at com.android.server.am.ActivityStack.activityPaused(ActivityStack.java:952)
01-01 08:12:56.330 W/ActivityManager( 1259): at com.android.server.am.ActivityManagerService.activityPaused(ActivityManagerService.java:4140)
01-01 08:12:56.330 W/ActivityManager( 1259): at android.app.ActivityManagerNative.onTransact(ActivityManagerNative.java:371)
01-01 08:12:56.330 W/ActivityManager( 1259): at com.android.server.am.ActivityManagerService.onTransact(ActivityManagerService.java:1548)
01-01 08:12:56.330 W/ActivityManager( 1259): at android.os.Binder.execTransact(Binder.java:338)
01-01 08:12:56.330 W/ActivityManager( 1259): at com.android.server.SystemServer.init1(Native Method)
01-01 08:12:56.330 W/ActivityManager( 1259): at com.android.server.SystemServer.main(SystemServer.java:860)
01-01 08:12:56.330 W/ActivityManager( 1259): at java.lang.reflect.Method.invokeNative(Native Method)
01-01 08:12:56.330 W/ActivityManager( 1259): at java.lang.reflect.Method.invoke(Method.java:511)
01-01 08:12:56.330 W/ActivityManager( 1259): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:790)
01-01 08:12:56.330 W/ActivityManager( 1259): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:557)
01-01 08:12:56.330 W/ActivityManager( 1259): at dalvik.system.NativeStart.main(Native Method)
01-01 08:12:56.345 E/JavaBinder( 1259): !!! FAILED BINDER TRANSACTION !!!
01-01 08:12:56.408 I/ActivityManager( 1259): Start proc com.android.launcher for activity com.android.launcher/com.android.launcher2.Launcher: pid=3000 uid=10032 gids={}
01-01 08:12:56.484 D/UsageStats( 1259): UsageStats: broadcasting intent
01-01 08:12:56.613 I/ActivityThread( 3000): Pub com.android.launcher2.settings: com.android.launcher2.LauncherProvider
01-01 08:12:56.862 D/dalvikvm( 3000): GC_FOR_ALLOC freed 164K, 5% free 7837K/8199K, paused 21ms
01-01 08:12:56.986 I/Process ( 1259): Sending signal. PID: 3000 SIG: 3
01-01 08:12:56.986 I/dalvikvm( 3000): threadid=3: reacting to signal 3
01-01 08:12:57.007 W/WindowManager( 1259): Rebuild removed 2 windows but added 1
01-01 08:12:57.012 W/WindowManager( 1259): This window was lost: Window{40c51350 com.android.launcher/com.android.launcher2.Launcher paused=true}
01-01 08:12:57.012 W/WindowManager( 1259): mSession=Session{40bee818 uid 10032} mClient=android.os.BinderProxy#40bbecd8
01-01 08:12:57.012 W/WindowManager( 1259): mAttrs=WM.LayoutParams{(0,0)(fillxfill) sim=#20 ty=1 fl=#1810100 pfl=0x8 fmt=-2 wanim=0x1030292}
01-01 08:12:57.012 W/WindowManager( 1259): Requested w=1920 h=1080 mLayoutSeq=148
01-01 08:12:57.012 W/WindowManager( 1259): mBaseLayer=21000 mSubLayer=0 mAnimLayer=21000+0=21000 mLastLayer=21000
01-01 08:12:57.012 W/WindowManager( 1259): mSurface=Surface(name=com.android.launcher/com.android.launcher2.Launcher, identity=34)
01-01 08:12:57.012 W/WindowManager( 1259): Surface: shown=false layer=21000 alpha=1.0 rect=(0.0,0.0) 1920.0 x 1080.0
01-01 08:12:57.012 W/WindowManager( 1259): mToken=AppWindowToken{40cb7750 token=Token{40b37598 ActivityRecord{40b9c4c0 com.android.launcher/com.android.launcher2.Launcher}}}
01-01 08:12:57.012 W/WindowManager( 1259): mRootToken=AppWindowToken{40cb7750 token=Token{40b37598 ActivityRecord{40b9c4c0 com.android.launcher/com.android.launcher2.Launcher}}}
01-01 08:12:57.012 W/WindowManager( 1259): mAppToken=AppWindowToken{40cb7750 token=Token{40b37598 ActivityRecord{40b9c4c0 com.android.launcher/com.android.launcher2.Launcher}}}
01-01 08:12:57.012 W/WindowManager( 1259): mViewVisibility=0x0 mLastHidden=true mHaveFrame=true mObscured=false
01-01 08:12:57.012 W/WindowManager( 1259): mSeq=0 mSystemUiVisibility=0x0
01-01 08:12:57.012 W/WindowManager( 1259): mGivenContentInsets=[0,0][0,0] mGivenVisibleInsets=[0,0][0,0]
01-01 08:12:57.012 W/WindowManager( 1259): mConfiguration={1.0 0mcc0mnc zh_CN layoutdir=0 sw720dp w1280dp h720dp xlrg long land -touch -keyb/v/h dpad/v s.4}
01-01 08:12:57.012 W/WindowManager( 1259): mShownFrame=[0.0,0.0][1920.0,1080.0]
01-01 08:12:57.012 W/WindowManager( 1259): mFrame=[0,0][1920,1080] last=[0,0][1920,1080]
01-01 08:12:57.012 W/WindowManager( 1259): mContainingFrame=[0,0][1920,1080] mParentFrame=[0,0][1920,1080] mDisplayFrame=[0,0][1920,1080]
01-01 08:12:57.012 W/WindowManager( 1259): mContentFrame=[0,0][1920,1080] mVisibleFrame=[0,0][1920,1080]
01-01 08:12:57.012 W/WindowManager( 1259): mContentInsets=[0,0][0,0] last=[0,0][0,0] mVisibleInsets=[0,0][0,0] last=[0,0][0,0]
01-01 08:12:57.012 W/WindowManager( 1259): mDrawPending=false mCommitDrawPending=false mReadyToShow=false mHasDrawn=true
01-01 08:12:57.012 W/WindowManager( 1259): mWallpaperX=0.5 mWallpaperY=0.5
01-01 08:12:57.012 W/WindowManager( 1259): mWallpaperXStep=0.25 mWallpaperYStep=1.0
01-01 08:12:57.012 W/WindowManager( 1259): Current app token list:
01-01 08:12:57.012 V/WindowManager( 1259): #0: Token{40ba4ee8 ActivityRecord{40bb8cd8 com.android.launcher/com.android.launcher2.Launcher}}
01-01 08:12:57.012 W/WindowManager( 1259): Final window list:
01-01 08:12:57.012 V/WindowManager( 1259): #1: Window{40b78338 InputMethod paused=false}
01-01 08:12:57.012 V/WindowManager( 1259): #0: Window{40c6f7b8 Starting com.android.launcher paused=false}
01-01 08:12:57.035 I/WindowManager( 1259): WIN DEATH: Window{40c51350 com.android.launcher/com.android.launcher2.Launcher paused=true}
01-01 08:12:57.039 I/dalvikvm( 3000): Wrote stack traces to '/data/anr/traces.txt'
01-01 08:12:57.051 D/dalvikvm( 3000): GC_CONCURRENT freed 264K, 6% free 8034K/8519K, paused 5ms+1ms
01-01 08:12:57.251 D/dalvikvm( 3000): GC_FOR_ALLOC freed 168K, 5% free 8217K/8583K, paused 14ms
01-01 08:12:57.263 I/dalvikvm-heap( 3000): Grow heap (frag case) to 10.641MB for 2560016-byte allocation
01-01 08:12:57.278 D/dalvikvm( 3000): GC_CONCURRENT freed 13K, 4% free 10704K/11143K, paused 2ms+1ms
01-01 08:12:57.358 D/dalvikvm( 3000): GC_FOR_ALLOC freed 0K, 4% free 10704K/11143K, paused 10ms
01-01 08:12:57.370 D/KeyLayoutMap( 1259): mapKey: scanCode=106 ~ Result keyCode=22, flags=0x00000002.
01-01 08:12:57.370 D/InputReader( 1259): receive key event: device=6 type=0x0001 scancode=106(0x006a) keycode=22(0x0016) value=0x00000001 flags=0x00000002
01-01 08:12:57.370 I/WindowManager( 1259): Handle special keys: 22
01-01 08:12:57.372 I/dalvikvm-heap( 3000): Grow heap (frag case) to 12.001MB for 1440016-byte allocation
01-01 08:12:57.394 D/dalvikvm( 3000): GC_CONCURRENT freed 0K, 4% free 12110K/12551K, paused 1ms+2ms
01-01 08:12:57.453 D/Launcher( 3000): #### onCreate setBackgroundColor
01-01 08:12:57.454 D/Launcher( 3000): sleep~main10
I add the attributes to the main activity in Launcher manifest
android:clearTaskOnLaunch="true"
android:stateNotNeeded="true"
The two attributes are in the original Launcher in Android which can solve this issue
But why it works is still unknown.

Categories

Resources