Go Back   Android Forums > Android Discussion > Android Lounge
Android Lounge A place for general Android discussion and questions.
Gamers - Check out our new sister sites!
Nintendo Wii U!    |    OUYA - $99 Android System!

test: Reply
 
LinkBack Thread Tools
Old August 13th, 2011, 03:59 AM   #1 (permalink)
Junior Member
Thread Author (OP)
 
Join Date: Apr 2011
Posts: 32
 
Device(s):
Carrier: Not Provided

Thanks: 0
Thanked 0 Times in 0 Posts
Default Android service and activity question

Hi,

I am new to this whole app programming thing. I am trying to write a music player that can play music in the background. Therefore, I also need to write a service.

I already finished the music playing part but I dont know how to use the volume rocker to change the media volume when the app is running in the background.

I used: this.setVolumeControlStream(AudioManager.STREAM_MU SIC); to accomplish it in the app activity.

Any help would be appreciated!

kevdliu is offline  
Reply With Quote
Sponsors
Reply
Tags
activity, app, rocker, service, volume


Go Back   Android Forums > Android Discussion > Android Lounge
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -5. The time now is 06:35 AM.
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2013, vBulletin Solutions, Inc.