android


Increasing only my app volume Android


I have written a small app for runners and I've got some voice commands in it. Unfortunatelly when I want to play music from other app simultaneously I barely hear my app sounds. I've tried to set AudioManager to increase volume of the app but it makes the music from the other app louder too. Is there a way to increase my apps volume only? Or for the time I play sound in my app to lower down the volume of other apps?
am.setStreamVolume(AudioManager.STREAM_MUSIC, am.getStreamMaxVolume(AudioManager.STREAM_MUSIC), 0);
mgoPlayer = MediaPlayer.create(this, R.raw.go);
mgoPlayer.start();

Related Links

how to catch the android sms message before factually send
Java heap error after adding google play library
ListView inside two LinearLayout and scrolling issue
How to send Inviation to facebook friends via android app?
swap items in a Gridview trouble with the dropped position in Android
Longer screen timeout for a specific Android activity?
How to add voice recognition in my custom keyboard
Cocos2dx - Compiling for android
Can I share a map fragment through sockets? [closed]
onConfigurationChange does not get called
android FileWriter cannot open file ( file not found)
Aidl code linking for Package Manager in Android
Android- Force visible soft keyboard
Border around edit text
Is there a way for an app to know when others start?
Create Instance of TextView

Categories

HOME
nunit
object
angular2-material
youtube-data-api-v3
obfuscation
knitr
alarm
soa
3d-reconstruction
crystal-lang
spin
fhir
mautic
ycsb
tput
glyphicons
atlassian-stash
microsoft-dynamics-nav
jersey-1.0
rubymotion
named-entity-recognition
systemtime
hta
object-storage
displaytag
mount
jackson-modules
mat
bringtofront
browser-sync
gitlab-api
carriage-return
sql-delete
hivemq
latitude-longitude
watchman
cd
xdocreport
android-augmented-reality
node-mssql
diacritics
resolution
stringtokenizer
xmldocument
builder
wcftestclient
dbcontext
trojan
reachability
cvxpy
builtins
redbeard-ios
dup
pre-build-event
pushbots
jaunt-api
highland.js
inf
rubaxa-sortable
teamcity-9.1
snackbar
at-job
pseudo-class
linkedin-jsapi
malformedurlexception
extjs2
sbcl
breakout
mongohq
scringo
panda3d
fragmenttransaction
vfs
cakephp-1.2
google-ajax-api
drawtobitmap
codebase
facebook-iframe
echo3
firefox-3

Resources

Mobile Apps Dev
Database Users
javascript
java
csharp
php
android
MS Developer
developer works
python
ios
c
html
jquery
RDBMS discuss
Cloud Virtualization
Database Dev&Adm
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App