android


AudioManager.isMusicActive() returning false with headset plugged-in


When i am trying to check whether any music stream is playing via AudioManager using isMusicActive() function. Its returning below value
If headset is already plugged in then audio is played fine. But isMusicActive returns false.
If i remove headset before playing audio and let audio to be played via speaker for a second and then plug-in headsets then it return proper value.
Help is required to figure out any other way to know Music is playing in device.

Related Links

Android Translate Animation like Swapping Two Views
get null pointer error when trying to getText
How to design android layout for this snapshot?
Can't sync Android Calendar Events (created from my app) with the Google Calendar
Network configuration for JmDNS on Android. Service added but not resolved
how to partition Activity in 3 parts for different Controls
Cannot get status of download manager in android
Android Media player keeps crashing
Broadcast receiver calls twice EXTRA_STATE_RINGING state causing invariant data
View SQLite DB on Android device
How to copy a record with a trigger on update
Android newr google-play-services.jar causing delay on startup
Programmatically Scrollable TableLayout
Add a Button and Add String Resources
Google Map api v2 - setUpMap() causes errors
how to compile and run android application using a batch file and not IDE?

Categories

HOME
eclipse
c++11
webdriver
static
yahoo-finance
package
bitbucket-api
javacc
newrelic
parameters
tvos
spring-session
lanczos
cumulocity
event-sourcing
google-content-api
gmm
database-connection
selinux
sar
imagemap
php-mysqlidb
exploit
highstock
froala
data.stackexchange.com
slidetoggle
progress-bar
fractions
twiml
aws-codecommit
android-gridview
keras-layer
hibernate-search
getlasterror
openerp-7
git-rewrite-history
sessionstorage
recurrent-neural-network
gdata
c9.io
visa
parser-generator
drupal-theming
signal-strength
dynamic-linq
trojan
magic-draw
context-switch
boxing
sundials
bbpress
d3-force-directed
rmongo
vcloud-director-rest-api
ziparchive
microstation
beamer
rspec2
jquery-jscrollpane
cifilter
database-relations
cycle2
design-principles
microsoft-reporting
morton-number
ons-api
cwrsync
ms-access-2000
dot.js
infosphere-spl
at-job
spy++
paw
xml-namespaces
lambda-architecture
gnumeric
gwt-openlayers
hibernate-entitymanager
solace-mq
composite-component
mkv
cakephp-1.2
listitem
oracle-enterprise-linux
floating-point-exceptions
hibernateexception
agility.js
luabind
winmain
cdonts
objective-j
squishit
interprocess
openfaces
opml
dojo-dnd
firefox-3

Resources

Encrypt Message



code
soft
python
ios
c
html
jquery
cloud
mobile