VLIK1234 / mylockforandroid

Automatically exported from code.google.com/p/mylockforandroid
0 stars 0 forks source link

Phone accept fails to work if music was recently paused #31

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Play music
2. Pause it
3. Try to accept call via phone tools prompt

Music starts again instead of accepting call. 
This happened under the rockon player. It may be a bug with that app's 
handling. I'll be testing further.

Original issue reported on code.google.com by myLockan...@gmail.com on 2 May 2010 at 2:37

GoogleCodeExporter commented 9 years ago
05-01 20:55:23.230: VERBOSE/answer method(8995): about to send fake media 
button 
intent
05-01 20:55:23.254: INFO/ActivityManager(1115): Start proc fm.last.android for 
broadcast fm.last.android/.LastFMMediaButtonHandler: pid=9033 uid=10067 
gids={3003, 
1007, 1015}
05-01 20:55:23.254: INFO/ActivityManager(1115): moveTaskToBack: 191
05-01 20:55:23.269: DEBUG/InCallScreen(8088): onResume()...
05-01 20:55:23.269: DEBUG/PhoneApp(8088): disable status bar
05-01 20:55:23.269: DEBUG/PhoneApp(8088): StatusBarManager.DISABLE_EXPAND
05-01 20:55:23.277: DEBUG/StatusBar(1115): DISABLE_EXPAND: yes
05-01 20:55:23.285: DEBUG/InCallScreen(8088): - onResume: initial status = 
SUCCESS
05-01 20:55:23.285: DEBUG/InCallScreen(8088): checkIsOtaCall entering
05-01 20:55:23.285: DEBUG/InCallScreen(8088): checkIsOtaCall action ACTION_MAIN
05-01 20:55:23.285: DEBUG/InCallScreen(8088): checkIsOtaCall isRingingCall: true
05-01 20:55:23.285: DEBUG/InCallScreen(8088): setInCallScreenMode: NORMAL
05-01 20:55:23.293: DEBUG/InCallScreen(8088): syncWithPhoneState()...
05-01 20:55:23.293: DEBUG/PhoneUtils(8088): dumpCallState():
05-01 20:55:23.293: DEBUG/PhoneUtils(8088): - Phone: Handler{44e35e68}, name = 
CDMA, 
state = RINGING
05-01 20:55:23.293: DEBUG/PhoneUtils(8088):   - FG call: IDLE isAlive false 
isRinging 
false isDialing false isIdle true hasConnections false
05-01 20:55:23.300: DEBUG/PhoneUtils(8088):   - BG call: IDLE isAlive false 
isRinging 
false isDialing false isIdle true hasConnections false
05-01 20:55:23.300: DEBUG/PhoneUtils(8088):   - RINGING call: INCOMING isAlive 
true 
isRinging true isDialing false isIdle false hasConnections true
05-01 20:55:23.300: DEBUG/PhoneUtils(8088):   - hasRingingCall true 
hasActiveCall 
false hasHoldingCall false allLinesTaken false
05-01 20:55:23.300: DEBUG/PhoneUtils(8088):   - CDMA call state: IDLE
05-01 20:55:23.300: DEBUG/PhoneUtils(8088):   - Ringer state: true
05-01 20:55:23.300: DEBUG/InCallScreen(8088): updateScreen()...
05-01 20:55:23.300: DEBUG/InCallScreen(8088): - updateScreen: updating the 
in-call 
UI...
05-01 20:55:23.308: DEBUG/CallCard(8088): show ======= false:false
05-01 20:55:23.316: DEBUG/InCallScreen(8088): dismissAllDialogs()...
05-01 20:55:23.332: DEBUG/PhoneApp(8088): updateWakeState: callscreen true, 
dialer 
false, speaker false...
05-01 20:55:23.332: DEBUG/PhoneApp(8088): updateWakeState: keepScreenOn = true 
(isRinging true, isDialing false, showingDisc false)
05-01 20:55:23.339: DEBUG/InCallScreen(8088): onPhoneStateChanged()...
05-01 20:55:23.339: DEBUG/InCallScreen(8088): updateScreen()...
05-01 20:55:23.339: DEBUG/InCallScreen(8088): - updateScreen: updating the 
in-call 
UI...
05-01 20:55:23.339: DEBUG/CallCard(8088): show ======= false:false
05-01 20:55:23.347: DEBUG/InCallScreen(8088): dismissAllDialogs()...
05-01 20:55:23.347: DEBUG/PhoneApp(8088): updateWakeState: callscreen true, 
dialer 
false, speaker false...
05-01 20:55:23.347: DEBUG/PhoneApp(8088): updateWakeState: keepScreenOn = true 
(isRinging true, isDialing false, showingDisc false)
05-01 20:55:23.386: DEBUG/ddm-heap(9033): Got feature list request
05-01 20:55:23.441: INFO/power(1115): *** set_screen_state 1
05-01 20:55:23.457: DEBUG/InCallScreen(8088): updateScreen()...
05-01 20:55:23.457: DEBUG/InCallScreen(8088): - updateScreen: updating the 
in-call 
UI...
05-01 20:55:23.464: DEBUG/CallCard(8088): show ======= false:false
05-01 20:55:23.464: DEBUG/InCallScreen(8088): dismissAllDialogs()...
05-01 20:55:23.543: VERBOSE/prompt onStop(8995): verifying success
05-01 20:55:23.691: INFO/LastFMMediaButtonHandler(9033): LastFM-Player not 
active, 
don't handling media keys.
05-01 20:55:23.730: INFO/MediaButtonIntentReceiver(4659): 
android.intent.action.MEDIA_BUTTON

Original comment by myLockan...@gmail.com on 2 May 2010 at 2:56

GoogleCodeExporter commented 9 years ago
this result is a flaw in the actual approach, there isn't a codeable 
workaround. we 
worked out a better way to make the phone answer the call via reflection, 
rendering 
this issue no longer relevant

Original comment by myLockan...@gmail.com on 12 May 2010 at 2:19