Black screen on phone - android
I have problem with my 'first' application on android. When I run my program I see only black screen. I found some information and I used Android.sdk abd.exe file to check all running threads on my phone.
I run cmd and set path to android.sdk abd file. Then I executed this commend:
adb logcat -v threadtime
After my console shows this:
01-14 11:54:36.798 2210 2735 D InputDispatcher: notifyMotion - action=ACTION_DOWN(0), id=0, tooltype=1, deviceId=5, source=0x1002, policyFlags=0x0, flags=0x0, metaState=0x0, buttonState=0x0, edgeFlags=0x0, eventTime=1813030619000, downTime=1813030619000,
01-14 11:54:36.799 2210 2734 D InputTransport: channel 'fae6efc com.lge.launcher2/com.lge.launcher2.Launcher (server)' : action=ACTION_DOWN(0), id=0, tooltype=1, deviceId=5, source=0x1002, flags=0x0, edgeFlags=0x0, metaState=0x0, buttonState=0x0, downTime=1813030619000, eventTime=1813030619000, pointerCount=1
01-14 11:54:36.799 2210 2734 D InputTransport: channel '5c6a310 com.android.systemui.ImageWallpaper (server)' : action=ACTION_DOWN(0), id=0, tooltype=1, deviceId=5, source=0x1002, flags=0x1, edgeFlags=0x0, metaState=0x0, buttonState=0x0, downTime=1813030619000, eventTime=1813030619000, pointerCount=1
01-14 11:54:36.800 3567 3567 I ViewRootImpl: ViewRoot's Touch Event : ACTION_DOWN
01-14 11:54:36.847 2210 2735 D InputDispatcher: notifyMotion - action=ACTION_UP(0), id=0, tooltype=1, deviceId=5, source=0x1002, policyFlags=0x0, flags=0x0, metaState=0x0, buttonState=0x0, edgeFlags=0x0, eventTime=1813079025000, downTime=1813030619000,
01-14 11:54:36.847 2210 2734 D InputTransport: channel 'fae6efc com.lge.launcher2/com.lge.launcher2.Launcher (server)' : action=ACTION_UP(0), id=0, tooltype=1, deviceId=5, source=0x1002, flags=0x0, edgeFlags=0x0, metaState=0x0, buttonState=0x0, downTime=1813030619000, eventTime=1813079025000, pointerCount=1
01-14 11:54:36.847 2210 2734 D InputTransport: channel '5c6a310 com.android.systemui.ImageWallpaper (server)' : action=ACTION_UP(0), id=0, tooltype=1, deviceId=5, source=0x1002, flags=0x1, edgeFlags=0x0, metaState=0x0, buttonState=0x0, downTime=1813030619000, eventTime=1813079025000, pointerCount=1
01-14 11:54:36.849 3567 3567 I ViewRootImpl: ViewRoot's Touch Event : ACTION_UP
01-14 11:54:36.850 2210 2940 V SoundPool: play sampleID=1, leftVolume=1.000000, rightVolume=1.000000, priority=0, loop=0, rate=1.000000
01-14 11:54:36.851 2210 2940 V SoundPool: Allocated recycled channel for same sampleID
01-14 11:54:36.851 2210 2940 V SoundPool: play channel 0xb876a680 state = 0
01-14 11:54:36.851 2210 2940 V SoundPool: SoundChannel::play 0xb876a680: sampleID=1, channelID=83, leftVolume=1.000000, rightVolume=1.000000, priority=0, loop=0, rate=1.000000
01-14 11:54:36.851 3567 3567 I Timeline: Timeline: Activity_launch_request id:com.ordenimagesaver time:1813082
01-14 11:54:36.851 403 3522 V APM::AudioPolicyManager: getOutput() device 2, stream 1, samplingRate 0, format 0, channelMask 3, flags 0
01-14 11:54:36.851 403 3522 V APM::AudioPolicyManager: getOutputForDevice() returns output 2
01-14 11:54:36.851 2210 2940 D AudioSystem: getIoDescriptor: ioHandle = 2, index = 0, mIoDescriptors = 0xb897f080
01-14 11:54:36.851 2210 2940 V AudioSystem: getFrameCount() output 2, frameCount 960
01-14 11:54:36.851 403 2941 V APM::AudioPolicyManager: getOutput() device 2, stream 1, samplingRate 0, format 0, channelMask 3, flags 0
01-14 11:54:36.851 403 2941 V APM::AudioPolicyManager: getOutputForDevice() returns output 2
01-14 11:54:36.852 2210 2940 D AudioSystem: getIoDescriptor: ioHandle = 2, index = 0, mIoDescriptors = 0xb897f080
01-14 11:54:36.852 2210 2940 V AudioSystem: getSamplingRate() output 2, sampling rate 48000
01-14 11:54:36.852 2210 2940 V SoundPool: reusing track 0xb8b6b2a8 for sample 1
01-14 11:54:36.852 2210 2940 V AudioTrack: setLoop_l 0 0 0
01-14 11:54:36.852 2210 2940 D AudioTrack: start(): 0xb8b6b2a8
01-14 11:54:36.852 403 403 V AudioFlinger_Tracks: start(4096), calling pid 2210 session 13
01-14 11:54:36.852 403 403 V AudioFlinger_Tracks: ? => ACTIVE (4096) on thread 0xb7fccd88
01-14 11:54:36.852 403 403 V APM::AudioPolicyManager: startOutput() output 2, stream 1, session 13
01-14 11:54:36.852 403 403 V APM::AudioPolicyManager: startOutput() output primary->(primary)(2), stream 1, session 13
01-14 11:54:36.852 403 403 V APM::AudioPolicyManager: setBeaconMute(1) mBeaconMuteRefCount=1 mBeaconPlayingRefCount=0
01-14 11:54:36.852 403 403 V APM::AudioOutputDescriptor: changeRefCount() stream 1, count 1
01-14 11:54:36.852 403 403 V APM::AudioPolicyManager: getNewOutputDevice() selected device 2
01-14 11:54:36.852 403 403 V APM::AudioPolicyManager: setOutputDevice() device 0002 delayMs 0
01-14 11:54:36.852 403 403 V APM::AudioPolicyManager: setOutputDevice() prevDevice 0x0002
01-14 11:54:36.852 403 403 V APM::AudioPolicyEngine: getDeviceForStrategy() remove speaker device. strategy 9 ringermode 1
01-14 11:54:36.852 403 403 V APM::AudioPolicyEngine: getDeviceForStrategy() add headphone device. strategy 9 ringermode 1
01-14 11:54:36.852 403 403 V APM::AudioPolicyManager: setOutputDevice() changing device
01-14 11:54:36.852 403 403 V AudioPolicyService: AudioCommandThread() adding create patch delay 0
01-14 11:54:36.852 403 403 V AudioPolicyService: inserting command: 7 at index 0, num commands 0
01-14 11:54:36.852 2210 3556 I ActivityManager: START u0 {act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10200000 cmp=com.ordenimagesaver/javafxports.android.FXActivity} from uid 10022 on display 0
01-14 11:54:36.855 403 1455 V AudioPolicyService: AudioCommandThread() processing create audio patch
01-14 11:54:36.855 403 1455 V AudioFlinger_Threads: sendConfigEvent_l() num events 1 event 3
01-14 11:54:36.856 403 1625 V AudioFlinger_Threads: thread 0xb17b1008 type 0 TID 1625 waking up
01-14 11:54:36.856 403 1625 V AudioFlinger_Threads: processConfigEvents_l() remaining events 1
01-14 11:54:36.856 403 1625 D audio_hw_primary: out_set_parameters: enter: usecase(0: deep-buffer-playback) kvpairs: routing=2
01-14 11:54:36.856 403 1625 V audio_hw_primary: out_set_parameters: exit: code(0)
01-14 11:54:36.856 403 1625 V AudioFlinger_Threads: processConfigEvents_l() DONE thread 0xb17b1008
01-14 11:54:36.857 403 1455 V AudioPolicyService: -AudioCommandThread 7
01-14 11:54:36.857 403 1455 V AudioPolicyService: AudioCommandThread() going to sleep
01-14 11:54:36.857 403 403 V APM::AudioPolicyManager: setOutputDevice() createAudioPatch returned 0 patchHandle 103num_sources 1 num_sinks 1
01-14 11:54:36.857 403 403 V AudioPolicyService: AudioCommandThread() adding update audio patch list
01-14 11:54:36.857 403 403 V AudioPolicyService: inserting command: 10 at index 0, num commands 0
01-14 11:54:36.857 403 403 V AudioPolicyService: AudioCommandThread() adding set voice volume volume 0.571429, delayMs 0
01-14 11:54:36.857 403 403 V AudioPolicyService: inserting command: 4 at index 0, num commands 0
01-14 11:54:36.857 403 1455 V AudioPolicyService: AudioCommandThread() processing set voice volume volume 0.571429
01-14 11:54:36.857 403 1455 V AudioPolicyService: -AudioCommandThread 4
01-14 11:54:36.857 403 1455 V AudioPolicyService: AudioCommandThread() going to sleep
01-14 11:54:36.857 403 403 V AudioPolicyService: AudioCommandThread() adding set parameter string fm_volume=0.1115583479, io 2 ,delay 0
01-14 11:54:36.857 403 403 V AudioPolicyService: inserting command: 3 at index 0, num commands 0
01-14 11:54:36.857 403 1455 V AudioPolicyService: AudioCommandThread() processing set parameters string fm_volume=0.1115583479, io 2
01-14 11:54:36.857 403 1455 V AudioFlinger: setParameters(): io 2, keyvalue fm_volume=0.1115583479, calling pid 403
01-14 11:54:36.857 403 1455 V AudioFlinger_Threads: ThreadBase::setParameters() fm_volume=0.1115583479
01-14 11:54:36.857 403 1455 V AudioFlinger_Threads: sendConfigEvent_l() num events 1 event 2
01-14 11:54:36.858 403 1456 V AudioPolicyService: AudioCommandThread() processing update audio patch list
01-14 11:54:36.858 403 1456 V AudioPolicyService: -AudioCommandThread 10
01-14 11:54:36.858 403 1456 V AudioPolicyService: AudioCommandThread() going to sleep
01-14 11:54:36.858 2210 3556 D ActivityManager: setTaskToReturnTo : TaskRecord{dd1e57 #73 A=com.ordenimagesaver U=0 sz=4} / mTaskToReturnTo = 1
01-14 11:54:36.862 2210 3556 D InputDispatcher: Focus left window: Window{fae6efc u0 com.lge.launcher2/com.lge.launcher2.Launcher}
01-14 11:54:36.866 403 1625 V AudioFlinger_Threads: processConfigEvents_l() remaining events 1
01-14 11:54:36.866 403 1625 D audio_hw_primary: out_set_parameters: enter: usecase(0: deep-buffer-playback) kvpairs: fm_volume=0.1115583479
01-14 11:54:36.866 403 1625 D audio_hw_fm: audio_extn_fm_set_parameters: set_fm_volume usecase
01-14 11:54:36.866 403 1625 D audio_hw_fm: fm_set_volume: (0.111558)
01-14 11:54:36.866 403 1625 E audio_hw_fm: fm_set_volume: FM not active, ignoring set_fm_volume call or mute state 0
01-14 11:54:36.866 403 1625 V audio_hw_primary: out_set_parameters: exit: code(0)
01-14 11:54:36.866 403 1625 V AudioFlinger_Threads: processConfigEvents_l() DONE thread 0xb17b1008
01-14 11:54:36.866 403 1455 V AudioPolicyService: -AudioCommandThread 3
01-14 11:54:36.866 403 1455 V AudioPolicyService: AudioCommandThread() going to sleep
01-14 11:54:36.866 403 403 V APM::AudioPolicyManager: checkAndSetVolume() cannot set stream 6 volume with force use = 0 for comm
01-14 11:54:36.866 403 403 V AudioFlinger_Threads: signal playback thread
01-14 11:54:36.868 2210 2940 V SoundPool: delete oldTrack 0x0
01-14 11:54:36.869 2210 3556 D AppWindowTokenEx: AppWindowTokenEx init..
01-14 11:54:36.874 3567 3567 I [LGHome]EVENT: [Launcher.java:5515:onWindowFocusChanged()]onWindowFocusChanged() hasFocus false
01-14 11:54:36.874 3567 3567 I [LGHome]EVENT: [Launcher.java:5541:setEnableShakeHandlers()]disableShakeHandlers
01-14 11:54:36.874 3567 3567 I [LGHome]EVENT: onPause
01-14 11:54:36.877 403 1625 D audio_hw_primary: start_output_stream: enter: stream(0xb7f5d7d8)usecase(0: deep-buffer-playback) devices(0x2)
01-14 11:54:36.877 403 1625 D audio_hw_primary: select_devices: enter and usecase(0)
01-14 11:54:36.877 403 1625 D msm8974_platform_lge: LGE_platform_get_output_snd_device: enter(0:2)
01-14 11:54:36.877 403 1625 V msm8916_platform: platform_get_output_snd_device: enter: output devices(0x2)
01-14 11:54:36.877 403 1625 V msm8916_platform: platform_get_output_snd_device: exit: snd_device(speaker)
01-14 11:54:36.877 403 1625 V platform_apt: lge_get_output_in_mandatory_depth: enter and devices(2)
01-14 11:54:36.877 403 1625 D msm8974_platform_lge: LGE_platform_get_output_snd_device: exit: out_snd_device(speaker)
01-14 11:54:36.877 403 1625 D audio_hw_primary: select_devices: out_snd_device(2: speaker) in_snd_device(0: )
01-14 11:54:36.877 403 1625 D audio_hw_primary: enable_snd_device: enter 2
01-14 11:54:36.877 403 1625 D hardware_info: hw_info_append_hw_type : device_name = speaker
01-14 11:54:36.877 403 1625 D audio_hw_primary: enable_snd_device: snd_device(2: speaker)
01-14 11:54:36.883 403 1625 W audio_hw_utils: audio_extn_utils_update_stream_app_type_cfg: App type could not be selected. Falling back to default
01-14 11:54:36.883 403 1625 I audio_hw_primary: select_devices Selected apptype: 69936
01-14 11:54:36.883 403 1625 V audio_hw_primary: enable_audio_route: enter: usecase(0)
01-14 11:54:36.884 403 1625 E audio_hw_dolby: audio_extn_dolby_ds2_set_endpoint: Dolby set endpint :0x2
01-14 11:54:36.884 403 1625 V msm8916_platform: platform_send_audio_calibration: sending audio calibration for snd_device(2) acdb_id(14)
01-14 11:54:36.884 403 1625 D ACDB-LOADER: ACDB -> send_audio_cal, acdb_id = 14, path = 0
01-14 11:54:36.884 403 1625 D ACDB-LOADER: ACDB -> send_asm_topology
01-14 11:54:36.884 403 1625 D ACDB-LOADER: ACDB -> ACDB_CMD_GET_AUDPROC_STREAM_TOPOLOGY_ID
01-14 11:54:36.884 403 1625 D ACDB-LOADER: ACDB -> send_adm_topology
01-14 11:54:36.884 403 1625 D ACDB-LOADER: ACDB -> ACDB_CMD_GET_AUDPROC_COMMON_TOPOLOGY_ID
01-14 11:54:36.884 403 1625 D ACDB-LOADER: ACDB -> send_audtable
01-14 11:54:36.884 403 1625 D ACDB-LOADER: ACDB -> ACDB_CMD_GET_AUDPROC_COMMON_TABLE_SIZE
01-14 11:54:36.884 403 1625 D ACDB-LOADER: ACDB -> ACDB_CMD_GET_AUDPROC_COMMON_TABLE
01-14 11:54:36.884 403 1625 D ACDB-LOADER: ACDB -> AUDIO_SET_AUDPROC_CAL
01-14 11:54:36.884 403 1625 D ACDB-LOADER: ACDB -> send_audvoltable
01-14 11:54:36.884 403 1625 D ACDB-LOADER: ACDB -> ACDB_CMD_GET_AUDPROC_GAIN_DEP_STEP_TABLE
01-14 11:54:36.884 403 1625 D ACDB-LOADER: ACDB -> AUDIO_SET_AUDPROC_VOL_CAL
01-14 11:54:36.884 403 1625 D ACDB-LOADER: ACDB -> send_afe_cal
01-14 11:54:36.884 403 1625 D ACDB-LOADER: ACDB -> ACDB_CMD_GET_AFE_COMMON_TABLE
01-14 11:54:36.884 403 1625 D ACDB-LOADER: ACDB -> AUDIO_SET_AFE_CAL
01-14 11:54:36.884 403 1625 D ACDB-LOADER: ACDB -> send_hw_delay : acdb_id = 14 path = 0
01-14 11:54:36.884 403 1625 D ACDB-LOADER: ACDB -> ACDB_AVSYNC_INFO: ACDB_CMD_GET_DEVICE_PROPERTY
01-14 11:54:36.884 403 1625 I audio_hw_utils: audio_extn_utils_send_app_type_cfg app_type 69936, acdb_dev_id 14, sample_rate 48000
01-14 11:54:36.884 403 1625 V msm8974_platform_lge: LGE_platform_add_backend_name: enter: 2
01-14 11:54:36.884 403 1625 D audio_hw_primary: enable_audio_route: apply mixer and update path: deep-buffer-playback
01-14 11:54:36.885 403 1625 V audio_hw_primary: enable_audio_route: exit
01-14 11:54:36.885 403 1625 D audio_hw_primary: select_devices: done
01-14 11:54:36.885 403 1625 V audio_hw_primary: start_output_stream: Opening PCM device card_id(0) device_id(0) format(0)
01-14 11:54:36.888 403 1625 V audio_hw_primary: start_output_stream: pcm_prepare
01-14 11:54:36.895 11337 11337 I System.out: usetextureview = false, useswipekeyboard = false
01-14 11:54:36.895 11337 11337 V FXActivity: onCreate called, using 8.60.7-SNAPSHOT
01-14 11:54:36.896 11337 11585 V FXActivity native: Notification queue started
01-14 11:54:36.902 11337 11337 V FXActivity native: appDataDir: /data/user/0/com.ordenimagesaver
01-14 11:54:36.903 11337 11337 V FXActivity: onStart
01-14 11:54:36.903 11337 11337 V FXActivity: onResume
01-14 11:54:36.907 403 1625 D AudioFlinger_Threads: mixer(0xb17b1008) throttle end: throttle time(30)
01-14 11:54:36.908 11337 11337 D PhoneWindow: notifyNavigationBarColor, color=0x: ff000000, token: android.view.ViewRootImplAO$WEx#ab25162
01-14 11:54:36.909 2210 3521 D WindowManager: notifyNavigationBarColor(), token: android.os.BinderProxy#84a02b6, color: ff000000
01-14 11:54:36.918 403 1625 V AudioFlinger_Threads: mixer(0xb17b1008) throttle begin: ret(3840) deltaMs(0) requires sleep 10 ms
01-14 11:54:36.919 2210 2339 I SystemUI[Framework]: PhoneWindowManager.updateSystemUiVisibilityLw() :visibility=0x8600, pkg=com.ordenimagesaver
01-14 11:54:36.920 2210 3044 D InputDispatcher: Focus entered window: Window{31acbb7 u0 com.ordenimagesaver/javafxports.android.FXActivity}
01-14 11:54:36.921 2210 2339 W WindowManager: Call!!!getLGSystemUiVisibility. =0x0
01-14 11:54:36.921 2210 2339 D StatusBarManagerServiceEx: setLGSystemUiVisibility(0x0)
01-14 11:54:36.921 2210 2339 D StatusBarManagerServiceEx: manageNaviBtnDisableList userId=0 what=0x0 pkg=Window{31acbb7 u0 com.ordenimagesaver/javafxports.android.FXActivity}
01-14 11:54:36.921 2210 2339 I SystemUI[Framework]: ==>disabledNaviBtn() what=0x0, token=android.os.Binder#bb24803, pkg=Window{31acbb7 u0 com.ordenimagesaver/javafxports.android.FXActivity}
01-14 11:54:36.921 2210 2339 I SystemUI[Framework]: disableNaviBtn: mDisabledNaviBtn=0x0, mDisableRecords.size=0
01-14 11:54:36.921 2210 2339 D PhoneWindowManagerEx: [PWM]1.notifyNavigationBarColor => mLastColorNavigationBar=0xff000000
01-14 11:54:36.922 3026 3026 I NavigationThemeResource: notify navigation bar color(0xff000000)
01-14 11:54:36.922 3026 3026 I NavigationThemeResource: NavigationKey Color is changed(WHITE_WITH_SHADOW -> WHITE)
01-14 11:54:36.922 3026 3026 I NavigationThemeResource: BarMode=4, Theme=BLACK, LightBackground=false (NOT Transparent)
01-14 11:54:36.922 3026 3026 I NavigationThemeResource: , Keyguard show=false, IME shown=false, Bar vertical=false, Panel expanded=false
01-14 11:54:36.937 11337 11337 V FXEntity: Surface created.
01-14 11:54:36.938 11337 11337 V FXActivity native: [JVDBG] SURFACE created native android window at 0xb798f7c8, surface = 0xbe837b00
01-14 11:54:36.938 403 1625 V AudioFlinger_Threads: track(0xb7fccd88) underrun, framesReady(0) < framesDesired(962)
01-14 11:54:36.938 403 1625 V AudioFlinger_Tracks: presentationComplete() mPresentationCompleteFrames 0 framesWritten 3840
01-14 11:54:36.938 403 1625 V AudioFlinger_Tracks: presentationComplete() reset: mPresentationCompleteFrames 7680 audioHalFrames 3840
01-14 11:54:36.939 11337 11337 I GLASS : Native code is notified that surface has changed (repaintall)!
01-14 11:54:36.940 11337 11337 V FXEntity: Called Surface changed [480, 749], format 4
01-14 11:54:36.940 11337 11337 V FXActivity native: [JVDBG] SURFACE created native android window at 0xb798f7c8, surface = 0xbe837ae0
01-14 11:54:36.941 11337 11337 I GLASS : Native code is notified that surface has changed with size provided (repaintall)!
01-14 11:54:36.941 11337 11337 V FXEntity: Called Surface redraw needed
01-14 11:54:36.941 11337 11337 V FXEntity: Redraw...
01-14 11:54:36.941 11337 11337 I GLASS : Call surfaceRedrawNeeded
01-14 11:54:36.941 11337 11337 I GLASS : Native code is notified that surface needs to be redrawn (repaintall)!
01-14 11:54:36.941 11337 11337 V FXEntity: Wait a while before doing this again...
01-14 11:54:36.943 2210 8114 V SoundPool: process 0xb876a680 channel 83 event BUFFER_END
01-14 11:54:36.943 2210 3309 V SoundPool: awake
01-14 11:54:36.943 2210 3309 V SoundPool: Getting channel from stop list
01-14 11:54:36.943 2210 3309 V SoundPool: stop
01-14 11:54:36.943 2210 3309 D AudioTrack: stop(): 0xb8b6b2a8
01-14 11:54:36.943 403 1635 V AudioFlinger_Tracks: stop(4096), calling pid 2210
01-14 11:54:36.943 403 1635 V AudioFlinger_Tracks: not stopping/stopped => stopping/stopped (4096) on thread 0xb17b1008
01-14 11:54:36.944 2210 3309 V SoundPool: done_l(83)
01-14 11:54:36.944 2210 3309 V SoundPool: move to front
01-14 11:54:36.949 403 1625 V AudioFlinger_Tracks: presentationComplete() mPresentationCompleteFrames 7680 framesWritten 3840
01-14 11:54:36.949 403 1625 V AudioFlinger_Tracks: presentationComplete() mPresentationCompleteFrames 7680 framesWritten 4800
01-14 11:54:36.959 403 1625 V AudioFlinger_Tracks: presentationComplete() mPresentationCompleteFrames 7680 framesWritten 4800
01-14 11:54:36.959 403 1625 V AudioFlinger_Tracks: presentationComplete() mPresentationCompleteFrames 7680 framesWritten 5760
01-14 11:54:36.969 403 1625 V AudioFlinger_Tracks: presentationComplete() mPresentationCompleteFrames 7680 framesWritten 5760
01-14 11:54:36.969 403 1625 V AudioFlinger_Tracks: presentationComplete() mPresentationCompleteFrames 7680 framesWritten 6720
01-14 11:54:36.979 403 1625 V AudioFlinger_Tracks: presentationComplete() mPresentationCompleteFrames 7680 framesWritten 6720
01-14 11:54:36.979 403 1625 V AudioFlinger_Tracks: presentationComplete() mPresentationCompleteFrames 7680 framesWritten 7680
01-14 11:54:36.979 403 1625 V AudioFlinger_Threads: removeTracks_l removing track on session 13
01-14 11:54:36.990 403 1625 V AudioPolicyService: AudioCommandThread() adding stop output 2
01-14 11:54:36.990 403 1625 V AudioPolicyService: inserting command: 5 at index 0, num commands 0
01-14 11:54:36.990 403 1456 V AudioPolicyService: AudioCommandThread() processing stop output 2
01-14 11:54:36.990 403 1456 V APM::AudioPolicyManager: stopOutput() output 2, stream 1, session 13
01-14 11:54:36.990 403 1456 V APM::AudioPolicyManager: setBeaconMute(1) mBeaconMuteRefCount=0 mBeaconPlayingRefCount=0
01-14 11:54:36.990 403 1456 V APM::AudioOutputDescriptor: changeRefCount() stream 1, count 0
01-14 11:54:36.990 403 1456 V APM::AudioPolicyManager: getNewOutputDevice() selected device 0
01-14 11:54:36.990 403 1456 V APM::AudioPolicyManager: setOutputDevice() device 0000 delayMs 160
01-14 11:54:36.990 403 1456 V APM::AudioPolicyManager: setOutputDevice() prevDevice 0x0002
01-14 11:54:36.990 403 1456 V APM::AudioPolicyEngine: getDeviceForStrategy() remove speaker device. strategy 9 ringermode 1
01-14 11:54:36.990 403 1456 V APM::AudioPolicyEngine: getDeviceForStrategy() add headphone device. strategy 9 ringermode 1
01-14 11:54:36.990 403 1456 V APM::AudioPolicyManager: setOutputDevice() setting same device 0x0000 or null device
01-14 11:54:36.990 403 1456 V AudioPolicyService: -AudioCommandThread 5
01-14 11:54:36.990 403 1456 V AudioPolicyService: AudioCommandThread() going to sleep
01-14 11:54:37.141 11337 11337 V FXEntity: Redraw again...
01-14 11:54:37.142 11337 11337 I GLASS : Call surfaceRedrawNeeded
01-14 11:54:37.142 11337 11337 I GLASS : Native code is notified that surface needs to be redrawn (repaintall)!
01-14 11:54:37.152 11337 11337 V FXEntity: Called Surface redraw needed
01-14 11:54:37.152 11337 11337 V FXEntity: Redraw...
01-14 11:54:37.152 11337 11337 I GLASS : Call surfaceRedrawNeeded
01-14 11:54:37.152 11337 11337 I GLASS : Native code is notified that surface needs to be redrawn (repaintall)!
01-14 11:54:37.152 11337 11337 V FXEntity: Wait a while before doing this again...
01-14 11:54:37.352 11337 11337 V FXEntity: Redraw again...
01-14 11:54:37.352 11337 11337 I GLASS : Call surfaceRedrawNeeded
01-14 11:54:37.352 11337 11337 I GLASS : Native code is notified that surface needs to be redrawn (repaintall)!
01-14 11:54:37.369 2210 2419 I ActivityManager: Displayed com.ordenimagesaver/javafxports.android.FXActivity: +487ms
01-14 11:54:37.384 11337 11337 V ViewRootImpl: Contents drawing finished : com.ordenimagesaver/javafxports.android.FXActivity
01-14 11:54:37.385 11337 11337 I Timeline: Timeline: Activity_idle id: android.os.BinderProxy#158b82d time:1813617
01-14 11:54:37.391 3567 3788 E Surface : getSlotFromBufferLocked: unknown buffer: 0xb898a880
01-14 11:54:37.780 3567 3567 I [LGHome]EVENT: onStop
01-14 11:54:37.795 2210 2337 I ProcessStatsService: Prepared write state in 14ms
01-14 11:54:39.934 403 1625 V AudioFlinger_Threads: Audio hardware entering standby, mixer 0xb17b1008, suspend count 0
01-14 11:54:39.934 403 1625 D audio_hw_primary: out_standby: enter: stream (0xb7f5d7d8) usecase(0: deep-buffer-playback)
01-14 11:54:40.121 403 1625 V audio_hw_primary: stop_output_stream: enter: usecase(0: deep-buffer-playback)
01-14 11:54:40.121 403 1625 V audio_hw_primary: disable_audio_route: enter: usecase(0)
01-14 11:54:40.121 403 1625 V msm8974_platform_lge: LGE_platform_add_backend_name: enter: 2
01-14 11:54:40.121 403 1625 D audio_hw_primary: disable_audio_route: reset and update mixer path: deep-buffer-playback
01-14 11:54:40.121 403 1625 V audio_hw_primary: disable_audio_route: exit
01-14 11:54:40.121 403 1625 D audio_hw_primary: disable_snd_device: enter 2
01-14 11:54:40.121 403 1625 D hardware_info: hw_info_append_hw_type : device_name = speaker
01-14 11:54:40.121 403 1625 D audio_hw_primary: disable_snd_device: snd_device(2: speaker)
01-14 11:54:40.123 403 1625 V audio_hw_primary: stop_output_stream: exit: status(0)
01-14 11:54:40.123 403 1625 V audio_hw_primary: out_standby: exit
01-14 11:54:40.123 403 1625 V AudioFlinger_Threads: thread 0xb17b1008 type 0 TID 1625 going to sleep
01-14 11:54:41.259 415 508 I ThermalEngine: Sensor:pa_therm0:27000 mC
I do not see any exceptions and still I have black screen when I run my program on smartphone with Android OS.
The ClassNotFoundException says it can't find the OrdenImageSaver class. It sounds like you're trying to load an image and since that class can't be found, the screen is just displaying black.
Make sure the class is located in the com.ordenimagesaver package. After that, try the following:
Clear app cache
Clear app data
Uninstall app
Restart Android Studio
Run/Debug again
Related
Play the ToneGenerator cause ANR
When click the dialerpad, play the ToneGenerator, but cause ANR。 The log: 01-02 04:02:48.209 392 2548 E audio_hw_primary: out_write: error -5, cannot write stream data: I/O error 01-02 04:02:48.209 392 2548 D audio_hw_primary: out_standby: enter: stream (0xae38a800) usecase(0: deep-buffer-playback) 01-02 04:02:48.249 392 3038 E audio_hw_primary: out_write: error -5, cannot write stream data: I/O error 01-02 04:02:48.249 392 3038 D audio_hw_primary: out_standby: enter: stream (0xae3ed000) usecase(1: low-latency-playback) 01-02 04:02:48.772 423 1116 W AudioFlinger: write blocked for 10554 msecs, 50 delayed writes, thread 0xae883ec0 01-02 04:02:48.772 423 1116 D AudioFlinger: mixer(0xae883ec0) throttle end: throttle time(19) 01-02 04:02:49.579 1767 1767 E ToneGenerator: — Stop timed out 01-02 04:02:52.639 1767 1767 E ToneGenerator: — Delayed start timed out, status -110 01-02 04:02:52.639 1767 1767 W ToneGenerator: Tone start failed!!!, time 8178550 You can check the code: DialpadFragment.java--ToneGenerator: private void playTone(int tone, int durationMs) private void stopTone() The ToneGenerator stop timed out cause the ANR. But what did ToneGenerator cause to stop timed out? How to analyze and fix this issue?
you can simply use and its work for me ToneGenerator toneG = new ToneGenerator(AudioManager.STREAM_ALARM, 100); toneG.startTone(ToneGenerator.TONE_CDMA_ALERT_CALL_GUARD, 200);
Nougat Music audio volume gets dropped suddenly with "Google quick search bar APP"
In my device which is on Android N (7.1.2),Music Player (Play Music application) Volume suddenly goes down if "Google quick search bar APP" is Launched and Volume comes back to normal as soon as we minimizes the Google quick search bar application tried to put and debug with logs in below files but didnt get the root cause frameworks/base/media/java/android/media/AudioManager.java frameworks/base/services/core/java/com/android/server/audio/AudioService.java Any advise how the Music Volume Fades in and Fades out ? Logs for Reference: 01-01 07:52:51.668 437-7351/? D/audio_hw_primary: copl(0xac8c46c0):out of compress_wait 01-01 07:52:51.668 437-7353/? D/audio_hw_primary: copl(0xac8c46c0): writing buffer (65536 bytes) to compress device 01-01 07:52:51.669 437-7353/? D/audio_hw_primary: copl(0xac8c46c0): writing buffer (65536 bytes) to compress device 01-01 07:52:51.672 437-7353/? D/audio_hw_primary: No space available in compress driver, post msg to cb thread 01-01 07:52:51.672 437-7351/? D/audio_hw_primary: copl(0xac8c46c0):calling compress_wait 01-01 07:52:53.839 971-1186/system_process I/Test_log: AudioService.java :handleMessage::msg:{ when=-1ms what=5 arg2=-1000 target=com.android.server.audio.AudioService$AudioHandler } 01-01 07:52:53.839 971-1186/system_process I/Test_log: AudioService.java :handleMessage::msg.what:5 01-01 07:52:53.839 971-1186/system_process I/Test_log: AudioService.java :handleMessage: onPlaySoundEffect:msg.arg1:0 01-01 07:52:53.839 971-1186/system_process I/Test_log: AudioService.java :handleMessage: onPlaySoundEffect:msg.arg2:-1000 01-01 07:52:53.839 971-1186/system_process I/Test_log: onPlaySoundEffect_11111 01-01 07:52:53.840 971-1186/system_process I/Test_log: AudioService.java : onPlaySoundEffect: stackdump java.lang.Throwable: stack dump at com.android.server.audio.AudioService$AudioHandler.onPlaySoundEffect(AudioService.java:4689) at com.android.server.audio.AudioService$AudioHandler.handleMessage(AudioService.java:4811) at android.os.Handler.dispatchMessage(Handler.java:102) at android.os.Looper.loop(Looper.java:154) at com.android.server.audio.AudioService$AudioSystemThread.run(AudioService.java:4455) --------- beginning of system 01-01 07:52:53.840 971-1409/system_process I/ActivityManager: START u0 {act=android.search.action.GLOBAL_SEARCH cat=[com.google.android.googlequicksearchbox.category.SEARCH_WIDGET] flg=0x10008000 cmp=com.google.android.googlequicksearchbox/com.google.android.apps.gsa.searchnow.SearchNowActivity bnds=[191,145][593,243] (has extras)} from uid 10035 on display 0 01-01 07:52:53.862 437-655/? D/audio_hw_primary: start_output_stream: enter: stream(0xac8c41c0)usecase(1: low-latency-playback) devices(0x2) 01-01 07:52:53.862 437-655/? D/audio_hw_primary: select_devices: out_snd_device(2: speaker) in_snd_device(0: ) 01-01 07:52:53.862 437-655/? D/hardware_info: hw_info_append_hw_type : device_name = speaker 01-01 07:52:53.862 437-655/? W/audio_hw_utils: audio_extn_utils_update_stream_app_type_cfg: App type could not be selected. Falling back to default 01-01 07:52:53.862 437-655/? I/audio_hw_primary: select_devices Selected apptype: 69936 01-01 07:52:53.863 437-655/? V/audio_hw_dolby: audio_extn_dolby_set_dmid Dolby device manufacturer id is:0 01-01 07:52:53.864 437-655/? V/audio_hw_dolby: audio_extn_dolby_set_license Setting DS1 License, key:0x0 dmid 0 01-01 07:52:53.864 437-655/? E/DAP_HAL: dap_hal_set_hw_info: dmid=0 key 00x 01-01 07:52:53.883 437-655/? E/audio_hw_dolby: audio_extn_dolby_set_license Could not set DS1 License. Status: -1 01-01 07:52:53.883 437-655/? E/audio_hw_dolby: audio_extn_dolby_ds2_set_endpoint: Dolby set endpint :0x2 01-01 07:52:53.883 437-655/? D/soundtrigger: audio_extn_sound_trigger_update_stream_status: uc_id 1 of type 0 for Event 3, with Raise=0 01-01 07:52:53.883 437-655/? D/ACDB-LOADER: ACDB -> send_audio_cal, acdb_id = 14, path = 0 01-01 07:52:53.883 437-655/? D/ACDB-LOADER: ACDB -> send_asm_topology 01-01 07:52:53.883 437-655/? D/ACDB-LOADER: ACDB -> ACDB_CMD_GET_AUDPROC_STREAM_TOPOLOGY_ID 01-01 07:52:53.883 437-655/? D/ACDB-LOADER: ACDB -> send_adm_topology 01-01 07:52:53.883 437-655/? D/ACDB-LOADER: ACDB -> ACDB_CMD_GET_AUDPROC_COMMON_TOPOLOGY_ID 01-01 07:52:53.884 437-655/? D/ACDB-LOADER: ACDB -> send_audtable 01-01 07:52:53.884 437-655/? D/ACDB-LOADER: ACDB -> ACDB_CMD_GET_AUDPROC_COMMON_TABLE_SIZE 01-01 07:52:53.884 437-655/? D/ACDB-LOADER: ACDB -> ACDB_CMD_GET_AUDPROC_COMMON_TABLE 01-01 07:52:53.884 437-655/? D/ACDB-LOADER: ACDB -> AUDIO_SET_AUDPROC_CAL 01-01 07:52:53.884 437-655/? D/ACDB-LOADER: ACDB -> send_audvoltable 01-01 07:52:53.884 437-655/? D/ACDB-LOADER: ACDB -> ACDB_CMD_GET_AUDPROC_GAIN_DEP_STEP_TABLE 01-01 07:52:53.884 437-655/? D/ACDB-LOADER: ACDB -> AUDIO_SET_AUDPROC_VOL_CAL 01-01 07:52:53.884 437-655/? D/ACDB-LOADER: ACDB -> send_afe_cal 01-01 07:52:53.884 437-655/? D/ACDB-LOADER: ACDB -> ACDB_CMD_GET_AFE_COMMON_TABLE 01-01 07:52:53.885 437-655/? D/ACDB-LOADER: ACDB -> AUDIO_SET_AFE_CAL 01-01 07:52:53.885 437-655/? D/ACDB-LOADER: ACDB -> send_hw_delay : acdb_id = 14 path = 0 01-01 07:52:53.885 437-655/? D/ACDB-LOADER: ACDB -> ACDB_AVSYNC_INFO: ACDB_CMD_GET_DEVICE_PROPERTY 01-01 07:52:53.885 437-655/? I/audio_hw_utils: audio_extn_utils_send_app_type_cfg: PLAYBACK app_type 69936, acdb_dev_id 14, sample_rate 48000 01-01 07:52:53.886 437-655/? D/audio_hw_primary: enable_audio_route: apply mixer and update path: low-latency-playback 01-01 07:52:53.887 437-655/? D/audio_hw_primary: select_devices: done 01-01 07:52:53.892 971-1409/system_process I/ActivityManager: Killing 6348:com.android.musicfx/u0a24 (adj 906): empty for 3043s 01-01 07:52:53.900 437-655/? D/msm8916_platform: platform_set_channel_map mixer_ctl_name:Playback Channel Map12 01-01 07:52:53.900 437-655/? D/msm8916_platform: platform_set_channel_map: set mapping(1 2 3 0 0 0 0 0) for channel:2 01-01 07:52:53.900 437-655/? D/audio_hw_primary: start_output_stream: exit 01-01 07:52:53.901 971-1409/system_process D/ActivityTrigger: ActivityTrigger activityPauseTrigger 01-01 07:52:53.923 2096-2096/com.google.android.googlequicksearchbox:search E/LegacyNowServiceClient: skipping logEndstates, service is null 01-01 07:52:53.964 371-371/? W/SurfaceFlinger: couldn't log to binary event log: overflow. 01-01 07:52:53.994 2096-2096/com.google.android.googlequicksearchbox:search V/BoostFramework: BoostFramework() : mPerf = com.qualcomm.qti.Performance#15c0524 01-01 07:52:53.995 2096-2096/com.google.android.googlequicksearchbox:search V/BoostFramework: BoostFramework() : mPerf = com.qualcomm.qti.Performance#b97588d 01-01 07:52:53.995 2096-2096/com.google.android.googlequicksearchbox:search V/BoostFramework: BoostFramework() : mPerf = com.qualcomm.qti.Performance#679da42 01-01 07:52:53.995 2096-2096/com.google.android.googlequicksearchbox:search V/BoostFramework: BoostFramework() : mPerf = com.qualcomm.qti.Performance#36e3a53 01-01 07:52:54.000 2096-2096/com.google.android.googlequicksearchbox:search V/BoostFramework: BoostFramework() : mPerf = com.qualcomm.qti.Performance#9adf089 01-01 07:52:54.000 2096-2096/com.google.android.googlequicksearchbox:search V/BoostFramework: BoostFramework() : mPerf = com.qualcomm.qti.Performance#14f588e 01-01 07:52:54.033 971-1576/system_process D/ActivityManager: cleanUpApplicationRecord -- 6348 01-01 07:52:54.039 2096-2096/com.google.android.googlequicksearchbox:search V/BoostFramework: BoostFramework() : mPerf = com.qualcomm.qti.Performance#84a5e43 01-01 07:52:54.039 2096-2096/com.google.android.googlequicksearchbox:search V/BoostFramework: BoostFramework() : mPerf = com.qualcomm.qti.Performance#b34bcc0 01-01 07:52:54.174 971-1029/system_process I/ActivityManager: Displayed com.google.android.googlequicksearchbox/com.google.android.apps.gsa.searchnow.SearchNowActivity: +247ms 01-01 07:52:54.183 5385-5466/com.android.launcher3 D/OpenGLRenderer: endAllActiveAnimators on 0x898dc380 (RippleDrawable) with handle 0x93e15e20 01-01 07:52:54.190 437-7353/? D/audio_hw_primary: out_set_parameters: enter: usecase(3: compress-offload-playback) kvpairs: routing=2 01-01 07:52:54.245 1217-1217/com.google.android.inputmethod.latin W/InputMethodService: Window size has been changed. This may cause jankiness of resizing window: -1 -> -2
When you play audio on an Android device the application has to request audio focus. The operating system has different ways of dealing with a conflict in audio focus, it either performs audio ducking, stops the audio briefly, or completely hands over control to another application that requests focus: From Managing audio focus Android documentation: Two or more Android apps can play audio to the same output stream simultaneously. The system mixes everything together. While this is technically impressive, it can be very aggravating to a user. To avoid every music app playing at the same time, Android introduces the idea of audio focus. Only one app can hold audio focus at a time. TL;DR: It sounds to me like the Google Search bar is requesting audio focus, perhaps for voice control, and the OS is ducking your application audio briefly during this action - after which audio focus is handed back to your application. See Managing audio focus for more detail.
how to play video in videoview by using rtsp link
i am trying to play youtube videos in videoview by using rtsp url but i am getting "Can't play this error" i am using this code to play video in videoview String SrcPath = "rtsp://v5.cache1.c.youtube.com/CjYLENy73wIaLQnhycnrJQ8qmRMYESARFEIJbXYtZ29vZ2xlSARSBXdhdGNoYPj_hYjnq6uUTQw=/0/0/0/video.3gp"; VideoView myVideoView = (VideoView)findViewById(R.id.myvideoview); myVideoView.setVideoURI(Uri.parse(SrcPath)); myVideoView.setMediaController(new MediaController(this)); myVideoView.requestFocus(); myVideoView.start(); this is my logcat error 01-14 10:41:26.844: D/libEGL(2643): loaded /system/lib/egl/libEGL_tegra.so 01-14 10:41:26.914: D/libEGL(2643): loaded /system/lib/egl/libGLESv1_CM_tegra.so 01-14 10:41:26.974: D/libEGL(2643): loaded /system/lib/egl/libGLESv2_tegra.so 01-14 10:41:27.024: D/OpenGLRenderer(2643): Enabling debug mode 0 01-14 10:41:27.204: D/dalvikvm(2643): GC_FOR_ALLOC freed 225K, 4% free 7886K/8152K, paused 27ms, total 27ms 01-14 10:41:27.634: D/MediaPlayer(2643): Couldn't open file on client side, trying server side 01-14 10:41:27.684: W/MediaPlayer(2643): info/warning (701, 0) 01-14 10:42:40.964: E/MediaPlayer(2643): error (1, -2147483648) 01-14 10:42:40.964: E/MediaPlayer(2643): Error (1,-2147483648) 01-14 10:42:40.964: D/VideoView(2643): Error: 1,-2147483648 could you please help me for this issues..
Android microphone input fails while in bluetooth on some devices
I'm working on doing voice recognition using the device microphone while connected to a bluetooth speaker. This works in most cases, but in a few devices I'm getting some failures. After a few days of debugging, the best I can find is the following log difference: Failure Log: V/audio_hw_primary( 270): start_input_stream: enter: usecase(7) V/voice ( 270): voice_check_and_set_incall_rec_usecase: voice call not active V/audio_hw_primary( 270): start_input_stream: usecase(7) D/PreProcess( 270): new SamsungRecord D/PreProcess( 270): new NS I/samsungRecord( 270): [samsungrecord] SamsungRecInit I/samsungRecord( 270): [samsungrecordMIC]Use HardCoding Values E/samsungRecord( 270): miccalib file can't created. (/data/snd/miccalib.txt) I/samsungRecord( 270): 1 D/SamsungRecord_NS( 270): [SamsungRecord_NS] Init SR 8000 D/SamsungRecord_NS( 270): [SamsungRecord_NS] getLevel inputsource 6, ret_level 3 V/audio_hw_primary( 270): select_devices: ENTER V/audio_hw_primary( 270): select_devices: usecase(normal) V/audio_hw_primary( 270): select_devices: usecase(PCM_CAPTURE) V/msm8974_platform( 270): platform_get_input_snd_device: enter: out_device(0) in_device(0x8) V/msm8974_platform( 270): get_INPUT_snd_device: AUDIO_MODE_IN_CALL E/msm8974_platform( 270): platform_get_input_snd_device: No output device set for voice call V/msm8974_platform( 270): platform_get_input_snd_device: exit: in_snd_device(none) V/audio_hw_primary( 270): start_input_stream: Opening PCM device card_id(0) device_id(0), channels 1 E/audio_hw_primary( 270): start_input_stream: cannot open device '/dev/snd/pcmC0D0c': Invalid argument V/audio_hw_primary( 270): stop_input_stream: enter: usecase(7: audio-record) V/audio_hw_primary( 270): disable_audio_route: enter: usecase(7) V/audio_hw_primary( 270): disable_audio_route: reset mixer path: audio-record D/audio_route( 270): ++++ audio_route_update_mixer ============== D/audio_route( 270): ------ audio_route_update_mixer ============== V/audio_hw_primary( 270): disable_audio_route: exit E/audio_hw_primary( 270): disable_snd_device: Invalid sound device 0 V/audio_hw_primary( 270): stop_input_stream: exit: status(0) D/audio_hw_primary( 270): start_input_stream: exit: status(-5) V/audio_hw_primary( 270): in_standby: enter V/audio_hw_primary( 270): in_standby: exit: status(0) V/audio_hw_primary( 270): in_read: read failed - sleeping for buffer duration Successful Log: V/audio_hw_primary( 387): start_input_stream: enter: usecase(7) V/voice ( 387): voice_check_and_set_incall_rec_usecase: voice call not active V/audio_hw_primary( 387): start_input_stream: usecase(7) D/PreProcess( 387): new SamsungRecord D/PreProcess( 387): new NS I/samsungRecord( 387): [samsungrecord] SamsungRecInit I/samsungRecord( 387): [samsungrecordMIC]Use HardCoding Values E/samsungRecord( 387): miccalib file can't created. (/data/snd/miccalib.txt) I/samsungRecord( 387): 1 D/SamsungRecord_NS( 387): [SamsungRecord_NS] Init SR 8000 D/SamsungRecord_NS( 387): [SamsungRecord_NS] getLevel inputsource 6, ret_level 3 V/audio_hw_primary( 387): select_devices: ENTER V/audio_hw_primary( 387): select_devices: usecase(normal) V/audio_hw_primary( 387): select_devices: usecase(PCM_CAPTURE) V/msm8974_platform( 387): platform_get_input_snd_device: enter: out_device(0) in_device(0x8) V/msm8974_platform( 387): get_INPUT_snd_device: check by Input_source(6) V/msm8974_platform( 387): platform_get_input_snd_device_by_source: enter: out_device(0) in_device(0x8) V/msm8974_platform( 387): get_INPUT_snd_device: AUDIO_SOURCE_VOICE_RECOGNITION V/msm8974_platform( 387): platform_get_input_snd_device: exit: in_snd_device(dummy) D/audio_hw_primary( 387): select_devices: out_snd_device(0: dummy) D/audio_hw_primary( 387): select_devices: in_snd_device(124: dummy) D/ACDB-LOADER( 387): ACDB -> send_audio_cal, acdb_id = 49, path = 1 D/ACDB-LOADER( 387): ACDB -> send_adm_topology D/ACDB-LOADER( 387): ACDB -> ACDB_CMD_GET_AUDPROC_COMMON_TOPOLOGY_ID D/ACDB-LOADER( 387): ACDB -> send_audtable D/ACDB-LOADER( 387): ACDB -> ACDB_CMD_GET_AUDPROC_COMMON_TABLE D/ACDB-LOADER( 387): ACDB -> AUDIO_SET_AUDPROC_CAL D/ACDB-LOADER( 387): ACDB -> send_audvoltable D/ACDB-LOADER( 387): ACDB -> ACDB_CMD_GET_AUDPROC_GAIN_DEP_STEP_TABLE D/ ( 387): Failed to fetch the lookup information of the device 00000031 E/ACDB-LOADER( 387): Error: ACDB AudProc vol returned = -19 D/ACDB-LOADER( 387): ACDB -> AUDIO_SET_AUDPROC_VOL_CAL D/ACDB-LOADER( 387): ACDB -> AUDIO_SET_AFE_CAL V/audio_hw_primary( 387): enable_snd_device: snd_device(124: dummy, dummy) D/audio_route( 387): ++++ audio_route_update_mixer ============== D/audio_route( 387): ------ audio_route_update_mixer ============== V/audio_hw_primary( 387): enable_audio_route: enter: usecase(7) V/audio_hw_primary( 387): enable_audio_route: apply mixer path: audio-record bt-sco D/audio_route( 387): ++++ audio_route_update_mixer ============== D/audio_route( 387): Setting mixer control: MultiMedia1 Mixer AUX_PCM_UL_TX, value: 1 D/audio_route( 387): ------ audio_route_update_mixer ============== V/audio_hw_primary( 387): enable_audio_route: exit V/audio_hw_primary( 387): start_input_stream: Opening PCM device card_id(0) device_id(0), channels 1 V/xappmedia.sdk.service.GoogleSpeechRecognizer(18053): Adjusted volume level: 0.0. RMSDB: -2.12 E/Global isDisableMicrophone(18053): isDisableMixrophone:true E/MusicService(18053): XappAds VolumeLevel Callback OnRmsChanged: rmsDb: -2.12 adjustFol: 0.0 E/NowPlayingFragment OnReceive:(18053): onReceive 1 E/NowPlayingFragment OnReceive:(18053): Mic Animation 1 E/NowPlayingFragment OnReceive:(18053): Volume Change 1 E/NowPlayingFragment OnReceive:(18053): Volume Change 2: Mic Size: 300.0 E/NowPlayingFragment OnReceive:(18053): Volume Change 2: VOl: 0.0 E/NowPlayingFragment OnReceive:(18053): Draw Mic 1 V/audio_hw_primary( 387): start_input_stream: exit It looks to me like its failing to open an input stream off of the mic. I can't find much information on this, but I think it's probably something to do with how i'm using audio focus. Anyone have any insights?
Webview - Window already focused, ignored focus gain
My application has Vimeo HTML5WebView integrated. The video is working fine, when it is portrait mode(on all devices), but when the orientation is changed to landscape, the video starts to flicker.This is happening in tablets - in 7 and 10 inch tablets. When the video flickers, I get a warning in the logcat saying, the window already focused, ignored focus gain.Please refer to the logcat below. I tried looking at various questions on StackOverflow, but couldn't get a decent solution. 12-13 14:15:11.730: D/dalvikvm(505): JIT code cache reset in 1 ms (1048548 bytes 8/0) 12-13 14:15:11.740: D/dalvikvm(505): GC_EXPLICIT freed 868K, 25% free 18906K/24960K, paused 5ms+7ms, total 131ms 12-13 14:15:12.521: W/InputMethodManagerService(505): Window already focused, ignoring focus gain of: com.android.internal.view.IInputMethodClient$Stub$Proxy#4286b2f0 attribute=null, token = android.os.BinderProxy#42458f80 12-13 14:15:12.531: V/PhoneStatusBar(587): setLightsOn(true) 12-13 14:15:12.621: V/PhoneStatusBar(587): setLightsOn(true) 12-13 14:15:16.915: I/AwesomePlayer(180): cache is running low (1.58 secs) , pausing. 12-13 14:15:16.915: W/MediaPlayer(22724): info/warning (703, 1843) 12-13 14:15:16.915: W/MediaPlayer(22724): info/warning (701, 0) 12-13 14:15:16.925: I/MediaPlayer(22724): Info (703,1843) 12-13 14:15:16.925: I/MediaPlayer(22724): Info (701,0) 12-13 14:15:19.928: D/audio_hw_primary(180): out_standby: enter: usecase(1: low-latency-playback) 12-13 14:15:19.988: D/audio_hw_primary(180): stop_output_stream: enter: usecase(1: low-latency-playback) 12-13 14:15:19.988: D/audio_hw_primary(180): disable_audio_route: reset mixer path: low-latency-playback 12-13 14:15:19.988: D/audio_hw_primary(180): disable_snd_device: snd_device(2: speaker) 12-13 14:15:19.998: D/audio_hw_primary(180): stop_output_stream: exit: status(0) 12-13 14:15:19.998: D/audio_hw_primary(180): out_standby: exit 12-13 14:15:27.916: I/AwesomePlayer(180): cache has filled up (6.09 secs), resuming. 12-13 14:15:27.916: W/MediaPlayer(22724): info/warning (702, 0) 12-13 14:15:27.936: D/audio_hw_primary(180): start_output_stream: enter: usecase(1: low-latency-playback) devices(0x2) 12-13 14:15:27.936: D/audio_hw_primary(180): select_devices: out_snd_device(2: speaker) in_snd_device(0: none) 12-13 14:15:27.936: D/audio_hw_primary(180): enable_snd_device: sending audio calibration for snd_device(2) acdb_id(14) 12-13 14:15:27.936: D/ACDB-LOADER(180): ACDB -> send_afe_cal 12-13 14:15:27.936: D/audio_hw_primary(180): enable_snd_device: snd_device(2: speaker) 12-13 14:15:27.946: D/audio_hw_primary(180): enable_audio_route: apply mixer path: low-latency-playback 12-13 14:15:27.956: D/audio_hw_primary(180): start_output_stream: exit 12-13 14:15:28.016: I/MediaPlayer(22724): Info (702,0) 12-13 14:15:29.608: I/InputReader(505): Reconfiguring input devices. changes=0x00000004 12-13 14:15:29.608: I/InputReader(505): Device reconfigured: id=6, name='elan-touchscreen', size 1200x1920, orientation 1, mode 1, display id 0 12-13 14:15:29.608: I/InputReader(505): Reconfiguring input devices. changes=0x00000004 12-13 14:15:29.608: I/InputReader(505): Device reconfigured: id=6, name='elan-touchscreen', size 1200x1920, orientation 1, mode 1, display id 0 12-13 14:15:29.608: I/ActivityManager(505): Config changes=1480 {1.0 404mcc?mnc en_US ldltr sw600dp w960dp h527dp 320dpi lrg land finger -keyb/v/h -nav/h s.51} 12-13 14:15:29.678: D/audio_hw_primary(180): adev_set_parameters: enter: rotation=90 12-13 14:15:29.678: D/audio_hw_primary(180): adev_set_parameters: exit with code(0) 12-13 14:15:29.748: D/PhoneStatusBar(587): mSettingsPanelGravity = 8388661 12-13 14:15:29.808: V/PhoneStatusBar(587): setLightsOn(true) 12-13 14:15:29.828: I/WindowManager(505): Screen frozen for +274ms due to Window{4290b200 u0 Panel:com.xx.xxx/com.xx.xxx.WebViewActivity} 12-13 14:15:29.908: E/CABL(203): MSMFB_HISTOGRAM_STOP failed! 12-13 14:15:31.970: D/dalvikvm(505): GC_EXPLICIT freed 858K, 25% free 18826K/24960K, paused 7ms+5ms, total 120ms 12-13 14:15:32.911: W/InputMethodManagerService(505): Window already focused, ignoring focus gain of: com.android.internal.view.IInputMethodClient$Stub$Proxy#4283d658 attribute=null, token = android.os.BinderProxy#42458f80 12-13 14:15:32.921: V/PhoneStatusBar(587): setLightsOn(true) 12-13 14:15:32.961: V/PhoneStatusBar(587): setLightsOn(true) 12-13 14:15:35.924: I/AwesomePlayer(180): cache is running low (1.84 secs) , pausing. 12-13 14:15:35.934: W/MediaPlayer(22724): info/warning (703, 1811) 12-13 14:15:35.934: W/MediaPlayer(22724): info/warning (701, 0) 12-13 14:15:35.934: I/MediaPlayer(22724): Info (703,1811) 12-13 14:15:35.934: I/MediaPlayer(22724): Info (701,0) 12-13 14:15:36.064: W/InputMethodManagerService(505): Window already focused, ignoring focus gain of: com.android.internal.view.IInputMethodClient$Stub$Proxy#423e5920 attribute=null, token = android.os.BinderProxy#42458f80 12-13 14:15:36.074: V/PhoneStatusBar(587): setLightsOn(true) 12-13 14:15:36.184: V/PhoneStatusBar(587): setLightsOn(true) 12-13 14:15:36.785: W/MediaPlayer(22724): info/warning (702, 0) 12-13 14:15:36.785: I/MediaPlayer(22724): Info (702,0) 12-13 14:15:37.045: I/NuCachedSource2(180): new range: offset= 32665175 12-13 14:15:38.967: D/audio_hw_primary(180): out_standby: enter: usecase(1: low-latency-playback) 12-13 14:15:39.007: D/audio_hw_primary(180): stop_output_stream: enter: usecase(1: low-latency-playback) 12-13 14:15:39.007: D/audio_hw_primary(180): disable_audio_route: reset mixer path: low-latency-playback 12-13 14:15:39.007: D/audio_hw_primary(180): disable_snd_device: snd_device(2: speaker) 12-13 14:15:39.007: D/audio_hw_primary(180): stop_output_stream: exit: status(0) 12-13 14:15:39.007: D/audio_hw_primary(180): out_standby: exit 12-13 14:15:39.978: D/audio_hw_primary(180): start_output_stream: enter: usecase(1: low-latency-playback) devices(0x2) 12-13 14:15:39.978: D/audio_hw_primary(180): select_devices: out_snd_device(2: speaker) in_snd_device(0: none) 12-13 14:15:39.978: D/audio_hw_primary(180): enable_snd_device: sending audio calibration for snd_device(2) acdb_id(14) 12-13 14:15:39.978: D/ACDB-LOADER(180): ACDB -> send_afe_cal 12-13 14:15:39.978: D/audio_hw_primary(180): enable_snd_device: snd_device(2: speaker) 12-13 14:15:39.978: D/audio_hw_primary(180): enable_audio_route: apply mixer path: low-latency-playback 12-13 14:15:39.978: I/AwesomePlayer(180): cache is running low (0.07 secs) , pausing. 12-13 14:15:39.978: W/MediaPlayer(22724): info/warning (703, 1625) 12-13 14:15:39.978: W/MediaPlayer(22724): info/warning (701, 0) 12-13 14:15:39.978: W/MediaPlayer(22724): info/warning (702, 0) 12-13 14:15:39.988: V/PhoneStatusBar(587): setLightsOn(true) 12-13 14:15:39.988: D/audio_hw_primary(180): start_output_stream: exit 12-13 14:15:40.008: V/PhoneStatusBar(587): setLightsOn(true) 12-13 14:15:40.088: I/MediaPlayer(22724): Info (703,1625) 12-13 14:15:40.088: I/MediaPlayer(22724): Info (701,0) 12-13 14:15:40.088: I/MediaPlayer(22724): Info (702,0) 12-13 14:15:40.088: W/InputMethodManagerService(505): Window already focused, ignoring focus gain of: com.android.internal.view.IInputMethodClient$Stub$Proxy#4221e640 attribute=null, token = android.os.BinderProxy#42458f80 12-13 14:15:40.969: I/AwesomePlayer(180): cache is running low (1.45 secs) , pausing. 12-13 14:15:40.969: W/MediaPlayer(22724): info/warning (703, 1625) 12-13 14:15:40.969: W/MediaPlayer(22724): info/warning (701, 0) 12-13 14:15:40.969: I/MediaPlayer(22724): Info (703,1625) 12-13 14:15:40.969: I/MediaPlayer(22724): Info (701,0) 12-13 14:15:42.640: D/dalvikvm(22724): GC_FOR_ALLOC freed 420K, 4% free 11555K/12012K, paused 24ms, total 24ms 12-13 14:15:43.101: W/InputMethodManagerService(505): Window already focused, ignoring focus gain of: com.android.internal.view.IInputMethodClient$Stub$Proxy#4215b9e0 attribute=null, token = android.os.BinderProxy#42458f80 Please let me know, if the webview code helps, and I will add it to my question. From the questions that I have seen on StackOverflow, I feel, this might be a configuration issue, and in my code for webview, I have overwritten, onConfigurationChanged() and also included, android:configChanges to WebViewActivity. #Override public void onConfigurationChanged(Configuration newConfig) { super.onConfigurationChanged(newConfig); } <activity android:name=".WebViewActivity" android:configChanges="keyboardHidden|orientation|screenSize"/> Thanks for your help!!!
By placing android:configChanges="orientation" for your activity, you are indicating to the system that your activity will handle the orientation change. But you are not really doing anything because all you are doing is: super.onConfigurationChanged(newConfig); So, how to solve your issue? You said you are having the issue when orientation changes occur only on large screens (tablets) and esp. when changing from portrait to landscape. Yo don't see the issue when orientation changes occur on phone devices. It makes me think that the video quality might not be of good enough quality to be played in landscape mode. Is that true? i.e if you start your activity in the landscape mode initially, do you still see the flickering? Are you sure it's not a device specific issue? i.e does this issue you described occur on all large screen devices or just one that you are testing? You have said you are using Vimeo HTML5WebView to render the video. Have you tried on a regular WebView that the platform provides and does similar issues happen with the framework provided widget as well? Last but not least, you can always save the state of the player (like the timestamp where the video is before orientation) and then use that state to restore your webview after orientation changes. To do that, stop handling configuration yourself and then follow the guidelines mentioned in Saving Activity State and Handling configuration changes and Handling Runtime Changes. If you are absolutely convinced you can handle config changes yourself, then go ahead and do it but don't just call super and expect the system to magically handle the activities object states for you. Hope this helps.
Best solution every one does is during changes between modes landscape to portrait or portrait to landscape pause the video and leave foucus of webview ie set focus false to webview and after complete restore of the webview gain the focus and play the video. offcouse u need to do some extra java script coding and javascript bridge coding but solution will work.