问题
BluetoothCrashResolver detects a crash on app launch the sequence of flow is as follows:
1.the device's bluetooth is off initially
2.the app is launched
3.the app first checks whether bluetooth is on
4.if not ON,app displays a popup to enable bluetooth
5.User allows bluetooth to be switched on
6.bluetoothresolver says "crash detected" as lastBluetoothTurningOnTime=01/01/1970; lastBluetoothOffTime=01/01/1970; so the if statement inside "case BluetoothAdapter.STATE_ON" fails.
Let me know if any doubt understanding. Thanks in advance.
来源:https://stackoverflow.com/questions/30795895/bluetoothcrashresolver-detects-a-crash-on-app-launch