[Android Software Development] AdhvanIt:
I completely understand.

To be honest, I've been able to find over half of my issues had already been asked and answered in here. The thread search feature has done me wonders. :)

I'd also like to thank you, sir. While I do add to your thanks every chance I get, I've not said it aloud. The two of you are incredibly helpful. Thank you for the time you put into this thread and helping the community.

As for people not reading. I'm occasionally mildly guilty of this myself. I have twice now found answers in post 3 of this thread right after asking. Missed it the first time around, I guess.

While I'm posting, I may as well be on topic. I'm having some issues getting A2DP to work completely. Call audio over BT works fine, but media audio appears broken. I can't see anything in the logs I've been given (don't use BT myself).

Brb, I'll get the log.

D/AudioSystem( 3718): audio_stream_type_t: 4
D/AudioSystem( 3718): isSeparatedStream: false
D/AudioSystem( 3718): android::AudioSystem::isSeparatedStream(audio_stream_type_
t) called!
D/AudioSystem( 3718): audio_stream_type_t: 5
D/AudioSystem( 3718): isSeparatedStream: false
D/AudioSystem( 3718): android::AudioSystem::isSeparatedStream(audio_stream_type_
t) called!
D/AudioSystem( 3718): audio_stream_type_t: 6
D/AudioSystem( 3718): isSeparatedStream: false
D/AudioSystem( 3718): android::AudioSystem::isSeparatedStream(audio_stream_type_
t) called!
D/AudioSystem( 3718): audio_stream_type_t: 7
D/AudioSystem( 3718): isSeparatedStream: false
D/AudioSystem( 3718): android::AudioSystem::isSeparatedStream(audio_stream_type_
t) called!
D/AudioSystem( 3718): audio_stream_type_t: 8
D/AudioSystem( 3718): isSeparatedStream: false
D/AudioSystem( 3718): android::AudioSystem::isSeparatedStream(audio_stream_type_
t) called!
D/AudioSystem( 3718): audio_stream_type_t: 9
D/AudioSystem( 3718): isSeparatedStream: false
D/AudioSystem( 3718): android::AudioSystem::isSeparatedStream(audio_stream_type_
t) called!
D/AudioSystem( 3718): audio_stream_type_t: 10
D/AudioSystem( 3718): isSeparatedStream: false
D/AudioSystem( 3718): android::AudioSystem::isSeparatedStream(audio_stream_type_
t) called!
D/AudioSystem( 3718): audio_stream_type_t: 11
D/AudioSystem( 3718): isSeparatedStream: false
D/AudioSystem( 3718): android::AudioSystem::isSeparatedStream(audio_stream_type_
t) called!
D/AudioSystem( 3718): audio_stream_type_t: 12
D/AudioSystem( 3718): isSeparatedStream: false
I/AudioPolicyManager( 3718): getDeviceForStrategy() strategy 0, device 80
D/AudioSystem( 3718): android::AudioSystem::isSeparatedStream(audio_stream_type_
t) called!
D/AudioSystem( 3718): audio_stream_type_t: 13
D/AudioSystem( 3718): isSeparatedStream: false
D/AudioSystem( 3718): android::AudioSystem::isSeparatedStream(audio_stream_type_
t) called!
D/AudioSystem( 3718): audio_stream_type_t: 14
D/AudioSystem( 3718): isSeparatedStream: false
I/AudioPolicyManager( 3718): getDeviceForStrategy() strategy 0, device 80
I/AudioPolicyManager( 3718): getDeviceForStrategy() strategy 4, device 2
I/AudioPolicyManager( 3718): getDeviceForStrategy() strategy 1, device 80
D/A2DP ( 3718): a2dp_stop
I/AudioPolicyManager( 3718): getDeviceForStrategy() strategy 2, device 82
I/AudioPolicyManager( 3718): getDeviceForStrategy() strategy 0, device 80
W/AudioFlinger( 3718): moveEffectChain_l() effect chain for session 0 not on sou
rce thread 0x410ea008
W/AudioFlinger( 3718): moveEffectChain_l() effect chain for session 0 not on sou
rce thread 0x410ea008
W/AudioTrack( 7858): dead IAudioTrack, creating a new one from obtainBuffer() TI
D 7901
D/CachedBluetoothDevice( 4124): onProfileStateChanged: profile A2DP newProfileSt
ate 2
W/NeonEqualizer( 7210): Starting fixed point NEON optimized equalizer
I/AudioHardwareYamaha( 3718): AudioHardware::setParameters(keyValuePairs="bt_hea
dset_nrec=off")
I/AudioHardwareYamaha( 3718): setBluetoothNrEcOff(true)
I/AudioService( 3849): Remote Control registerMediaButtonIntent() for Pendin
gIntent{41ee1778: PendingIntentRecord{41d4aaa8 com.maxmpz.audioplayer broadcastI
ntent}}
I/AudioPolicyManager( 3718): getDeviceForStrategy() strategy 0, device 80
I/AudioPolicyManager( 3718): getDeviceForStrategy() strategy 3, device 80
I/AudioPolicyManager( 3718): getDeviceForStrategy() strategy 0, device 80
I/AudioPolicyManager( 3718): getDeviceForStrategy() strategy 1, device 80
I/AudioPolicyManager( 3718): getDeviceForStrategy() strategy 2, device 82
I/AudioPolicyManager( 3718): getDeviceForStrategy() strategy 0, device 80
I/AudioPolicyManager( 3718): getDeviceForStrategy() strategy 3, device 80
I/AudioPolicyManager( 3718): getDeviceForStrategy() strategy 4, device 2
I/AudioPolicyManager( 3718): startOutput() output 39, stream 3, session 34
D/AudioSystem( 3718): android::AudioSystem::isSeparatedStream(audio_stream_type_
t) called!
D/AudioSystem( 3718): audio_stream_type_t: 3
D/AudioSystem( 3718): isSeparatedStream: false
I/AudioPolicyManager( 3718): getDeviceForStrategy() strategy 0, device 80
I/AudioPolicyManager( 3718): getDeviceForStrategy() strategy 0, device 80
D/A2DP ( 3718): bluetooth_configure
W/AudioTrack( 7858): dead IAudioTrack, already restored TID 7903
D/A2DP ( 3718): Received BT_RESPONSE - BT_GET_CAPABILITIES
D/A2DP ( 3718): Received BT_RESPONSE - BT_OPEN
D/A2DP ( 3718): bluetooth_a2dp_hw_params sending configuration:
D/A2DP ( 3718): channel_mode: JOINT STEREO
D/A2DP ( 3718): frequency: 44100
D/A2DP ( 3718): allocation_method: LOUDNESS
D/A2DP ( 3718): subbands: 8
D/A2DP ( 3718): block_length: 16
D/A2DP ( 3718): min_bitpool: 2
D/A2DP ( 3718): max_bitpool: 53
D/A2DP ( 3718): Received BT_RESPONSE - BT_SET_CONFIGURATION
D/A2DP ( 3718): MTU: 672
D/A2DP ( 3718): frame_duration: 2902 us
D/A2DP ( 3718): allocation=0
D/A2DP ( 3718): subbands=1
D/A2DP ( 3718): blocks=3
D/A2DP ( 3718): bitpool=53
D/A2DP ( 3718): bluetooth_start
I/AudioHardwareYamaha( 3718): AudioHardware::setParameters(keyValuePairs="A2dpSu
spended=false")
I/Bluetooth HeadsetBase( 4229): Error processing <AT*SEAM="MW600",13>
W/AudioTrack( 6097): dead IAudioTrack, creating a new one from obtainBuffer() TI
D 7549
I/Bluetooth HeadsetBase( 4229): Error processing <AT+CLAN?>
I/Bluetooth HeadsetBase( 4229): Error processing <AT*EIPS=2,1>
I/Bluetooth HeadsetBase( 4229): Error processing <AT+COLP=1>
I/Bluetooth HeadsetBase( 4229): Error processing <AT+CCLK?>
D/A2DP ( 3718): Received BT_RESPONSE - BT_START_STREAM
D/A2DP ( 3718): Received BT_RESPONSE - BT_NEW_STREAM
D/BluetoothA2dpService( 3849): A2DP: onSinkPropertyChanged newState is: 10mPlayi
ngA2dpDevice: null
D/BluetoothA2dpService( 3849): A2DP Playing state : device: 30:17:C8:8F:1D:80 St
ate:11->10
D/A2DP ( 3718): a2dp_stop
D/A2DP ( 3718): bluetooth_stop
I/AudioPolicyManager( 3718): setForceUse() usage 1, config 0, mPhoneState 0
I/AudioPolicyManager( 3718): setStreamMute() stream 1, mute 1, output 3, mMuteCo
unt 0
I/AudioPolicyManager( 3718): setStreamMute() stream 3, mute 1, output 3, mMuteCo
unt 0
I/AudioPolicyManager( 3718): getDeviceForStrategy() strategy 0, device 2
I/AudioPolicyManager( 3718): getDeviceForStrategy() strategy 0, device 2
I/AudioPolicyManager( 3718): setStreamMute() stream 9, mute 1, output 3, mMuteCo
unt 0
I/AudioPolicyManager( 3718): setStreamMute() stream 10, mute 1, output 3, mMuteC
ount 0
I/AudioPolicyManager( 3718): setStreamMute() stream 12, mute 1, output 3, mMuteC
ount 0
I/AudioPolicyManager( 3718): setStreamMute() stream 13, mute 1, output 3, mMuteC
ount 0
I/AudioPolicyManager( 3718): setStreamMute() stream 14, mute 1, output 3, mMuteC
ount 0
I/AudioPolicyManager( 3718): setStreamMute() stream 1, mute 0, output 3, mMuteCo
unt 1
I/AudioPolicyManager( 3718): setStreamMute() stream 3, mute 0, output 3, mMuteCo
unt 1
I/AudioPolicyManager( 3718): getDeviceForStrategy() strategy 0, device 2
I/AudioPolicyManager( 3718): getDeviceForStrategy() strategy 0, device 2
I/AudioPolicyManager( 3718): setStreamMute() stream 9, mute 0, output 3, mMuteCo
unt 1
I/AudioPolicyManager( 3718): setStreamMute() stream 10, mute 0, output 3, mMuteC
ount 1
I/AudioPolicyManager( 3718): setStreamMute() stream 12, mute 0, output 3, mMuteC
ount 1
I/AudioPolicyManager( 3718): setStreamMute() stream 13, mute 0, output 3, mMuteC
ount 1
I/AudioPolicyManager( 3718): setStreamMute() stream 14, mute 0, output 3, mMuteC
ount 1
I/AudioPolicyManager( 3718): getDeviceForStrategy() strategy 0, device 2
I/AudioPolicyManager( 3718): getDeviceForStrategy() strategy 4, device 2
I/AudioPolicyManager( 3718): getDeviceForStrategy() strategy 1, device 1
I/AudioPolicyManager( 3718): getDeviceForStrategy() strategy 2, device 2
I/AudioPolicyManager( 3718): getDeviceForStrategy() strategy 0, device 2
W/AudioFlinger( 3718): moveEffectChain_l() effect chain for session 0 not on sou
rce thread 0x410dc008
W/AudioFlinger( 3718): moveEffectChain_l() effect chain for session 0 not on sou
rce thread 0x410dc008
W/AudioTrack( 7858): dead IAudioTrack, creating a new one from obtainBuffer() TI
D 7901
I/AudioPolicyManager( 3718): getDeviceForStrategy() strategy 0, device 2
I/AudioPolicyManager( 3718): getDeviceForStrategy() strategy 3, device 2
I/AudioPolicyManager( 3718): getDeviceForStrategy() strategy 0, device 2
I/AudioPolicyManager( 3718): getDeviceForStrategy() strategy 1, device 1
I/AudioPolicyManager( 3718): getDeviceForStrategy() strategy 2, device 2
I/AudioPolicyManager( 3718): getDeviceForStrategy() strategy 0, device 2
I/AudioPolicyManager( 3718): getDeviceForStrategy() strategy 3, device 2
I/AudioPolicyManager( 3718): getDeviceForStrategy() strategy 4, device 2
I/AudioPolicyManager( 3718): stopOutput() output 3, stream 3, session 34
I/AudioPolicyManager( 3718): startOutput() output 3, stream 3, session 34
D/AudioSystem( 3718): android::AudioSystem::isSeparatedStream(audio_stream_type_
t) called!
D/AudioSystem( 3718): audio_stream_type_t: 3
D/AudioSystem( 3718): isSeparatedStream: false
I/AudioPolicyManager( 3718): getDeviceForStrategy() strategy 0, device 2
I/AudioPolicyManager( 3718): getDeviceForStrategy() strategy 0, device 2
W/AudioTrack( 7858): dead IAudioTrack, already restored TID 7903
D/dalvikvm( 7210): WAIT_FOR_CONCURRENT_GC blocked 0ms
D/A2DP ( 3718): Received BT_RESPONSE - BT_STOP_STREAM
D/BluetoothA2dpService( 3849): A2DP: onSinkPropertyChanged newState is: 2mPlayin
gA2dpDevice: 30:17:C8:8F:1D:80
D/BluetoothA2dpService( 3849): A2DP Playing state : device: 30:17:C8:8F:1D:80 St
ate:10->11
D/dalvikvm( 7210): GC_EXPLICIT freed 339K, 31% free 10348K/14915K, paused 3ms+4m
s, total 50ms
I/fm.last.android.player( 7278): Player service started
I/fm.last.android.player( 7278): Player service shutting down
D/lastfm.db.t_recentstations( 7243): SELECT * FROM t_recentstations ORDER BY Tim
estamp DESC LIMIT 4
I/fm.last.android.player( 7278): Player service started
D/lastfm.db.t_recentstations( 7243): SELECT * FROM t_recentstations ORDER BY Tim
estamp DESC LIMIT 4
I/fm.last.android.player( 7278): Player service shutting down
W/NeonEqualizer( 7210): Starting fixed point NEON optimized equalizer
D/dalvikvm( 7210): WAIT_FOR_CONCURRENT_GC blocked 0ms
D/dalvikvm( 7210): GC_EXPLICIT freed 239K, 31% free 10344K/14915K, paused 3ms+3m
s, total 37ms
I/ag-dec ( 7858): Decoder detected a pause at position 19000
I/fm.last.android.player( 7278): Player service started
I/fm.last.android.player( 7278): Player service shutting down
D/lastfm.db.t_recentstations( 7243): SELECT * FROM t_recentstations ORDER BY Tim
estamp DESC LIMIT 4
I/fm.last.android.player( 7278): Player service started
D/lastfm.db.t_recentstations( 7243): SELECT * FROM t_recentstations ORDER BY Tim
estamp DESC LIMIT 4
I/fm.last.android.player( 7278): Player service shutting down
E/a2dp_audio_hw( 3718): _out_buf_thread_func: a2dp_write failed (-110)
D/A2DP ( 3718): bluetooth_start
W/AudioFlinger( 3718): write blocked for 1000 msecs, 1 delayed writes, thread 0x
410dc008
D/A2DP ( 3718): Received BT_RESPONSE - BT_START_STREAM
D/A2DP ( 3718): Received BT_RESPONSE - BT_NEW_STREAM
D/BluetoothA2dpService( 3849): A2DP: onSinkPropertyChanged newState is: 10mPlayi
ngA2dpDevice: null
D/BluetoothA2dpService( 3849): A2DP Playing state : device: 30:17:C8:8F:1D:80 St
ate:11->10
I/AudioService( 3849): Remote Control registerMediaButtonIntent() for Pendin
gIntent{41d90ea0: PendingIntentRecord{41d4aaa8 com.maxmpz.audioplayer broadcastI
ntent}}
W/InputMethodManagerService( 3849): Window already focused, ignoring focus gain
of: com.android.internal.view.IInputMethodClient$Stub$Proxy@41d86768 attribute=n
ull
D/PhoneStatusBar( 4039): disable: < expand icons alerts ticker* system_info back
home recent clock >
V/PhoneStatusBar( 4039): setLightsOn(true)
D/elvison.battwidget( 4670): battery info changed
I/AudioService( 3849): AudioFocus abandonAudioFocus() from android.media.Audio
Manager@417d3aa8com.maxmpz.audioplayer.player.PlayerService$20@41995718
D/A2DP ( 3718): a2dp_stop
D/A2DP ( 3718): bluetooth_stop
D/BluetoothA2dpService( 3849): A2DP: onSinkPropertyChanged newState is: 2mPlayin
gA2dpDevice: 30:17:C8:8F:1D:80
D/A2DP ( 3718): Received BT_RESPONSE - BT_STOP_STREAM
D/BluetoothA2dpService( 3849): A2DP Playing state : device: 30:17:C8:8F:1D:80 St
ate:10->11
I/fetcher ( 7858): about to closeWriter
I/Decoder ( 7858): In closeWriter()
I/fetcher ( 7858): fetcher thread is exiting, done: true, numErrors: 0, state: 4

W/PlayerService( 7210): Poweramp Player Service leaves the scene
I/fm.last.android.player( 7278): Player service started
I/fm.last.android.player( 7278): Player service shutting down
D/lastfm.db.t_recentstations( 7243): SELECT * FROM t_recentstations ORDER BY Tim
estamp DESC LIMIT 4
I/AudioPolicyManager( 3718): stopOutput() output 3, stream 3, session 34
W/HapticFeedbackUtil( 3849): vibrate: null or empty pattern
D/PhoneStatusBar( 4039): disable: < expand icons alerts ticker system_info back
home recent clock >
I/ALSAModule( 3718): Terminated ALSA PLAYBACK device hifi
V/PhoneStatusBar( 4039): setLightsOn(true)
V/yamaha::media::VolumeCtrl( 3718): VolumeCtrl::createVolume()
V/yamaha::media::VolumeCtrl( 3718): VolumeCtrl::setVolume()
D/yamaha::media::VolumeCtrl( 3718): VolumeCtrl::setVolume() FM Playback: Ready
D/yamaha::media::VolumeCtrl( 3718): VolumeCtrl::setVolume() VoiceCall: Ready
I/ActivityManager( 3849): No longer want com.bellshare.beweather (pid 6953): hid
den #16
D/elvison.battwidget( 4670): battery info changed
D/elvison.battwidget( 4670): battery info changed
D/dalvikvm( 3709): WAIT_FOR_CONCURRENT_GC blocked 0ms
I/ActivityManager( 3849): Start proc com.google.android.googlequicksearchbox for
service com.google.android.googlequicksearchbox/com.google.android.apps.sidekic
k.EntriesRefreshIntentService: pid=8166 uid=10193 gids={3003, 1028, 1007, 3002,
1015}
D/dalvikvm( 3709): GC_EXPLICIT freed 38K, 36% free 9568K/14915K, paused 2ms+5ms,
total 52ms
D/dalvikvm( 3709): WAIT_FOR_CONCURRENT_GC blocked 0ms
D/dalvikvm( 3709): GC_EXPLICIT freed <1K, 36% free 9568K/14915K, paused 2ms+2ms,
total 39ms
D/dalvikvm( 3709): WAIT_FOR_CONCURRENT_GC blocked 0ms
D/dalvikvm( 3709): GC_EXPLICIT freed <1K, 36% free 9568K/14915K, paused 2ms+4ms,
total 38ms
D/dalvikvm( 8166): WAIT_FOR_CONCURRENT_GC blocked 0ms
I/ActivityThread( 8166): Pub com.google.android.googlequicksearchbox.AudioProvid
er: com.google.android.speech.audio.AudioProvider
I/ActivityThread( 8166): Pub com.google.android.googlequicksearchbox.google: com
.google.android.searchcommon.google.GoogleSuggestionProvider
I/ActivityManager( 3849): Start proc com.google.android.partnersetup for content
provider com.google.android.partnersetup/.RlzAppProvider: pid=8183 uid=10024 gi
ds={3003, 1028}
I/ActivityManager( 3849): Start proc com.google.android.gsf.login for service co
m.google.android.gsf.login/com.google.android.gsf.loginservice.GoogleLoginServic
e: pid=8193 uid=10010 gids={3003, 1015, 1028, 2001, 1007, 3006}
D/dalvikvm( 3849): WAIT_FOR_CONCURRENT_GC blocked 0ms
D/dalvikvm( 3849): GC_EXPLICIT freed 2528K, 36% free 24088K/37063K, paused 30ms+
19ms, total 320ms
W/Sidekick_LocationOracleImpl( 8166): Best location was null
I/ActivityManager( 3849): No longer want com.evernote (pid 6831): hidden #16
I/ActivityManager( 3849): No longer want com.evernote.widget (pid 6803): hidden
#17
I/ActivityThread( 8183): Pub com.google.android.partnersetup.rlzprovider: com.go
ogle.android.partnersetup.RlzProvider
I/ActivityThread( 8183): Pub com.google.android.partnersetup.rlzappprovider: com
.google.android.partnersetup.RlzAppProvider
W/Sidekick_LocationOracleImpl( 8166): Best location was null
I/ActivityManager( 3849): No longer want com.android.calendar (pid 6681): hidden
#16
D/elvison.battwidget( 4670): battery info changed
D/StatusBar.NetworkController( 4039): updateTelephonySignalStrength: mSignalStre
ngth == 99(GSM) 2(CDMA)

The connects and disconnects are the user. They were turning BT on and off, testing different music players, etc.