1. Download our Official Android App: Forums for Android!
  2. We apologize for the disruption in email services! They are sending out now, but there is a backlog, so it may take a little time to catch up.

Android service and activity question

Discussion in 'Android Lounge' started by kevdliu, Aug 13, 2011.

  1. kevdliu

    kevdliu Member
    Thread Starter
    Rank:
    None
    Points:
    15
    Posts:
    32
    Joined:
    Apr 25, 2011

    Apr 25, 2011
    32
    0
    15
    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_MUSIC); to accomplish it in the app activity.

    Any help would be appreciated!
     

    Advertisement

Share This Page

Loading...