Lines Matching full:your
1 page.title=Controlling Your App?s Volume and Playback
18 <li><a href="#HardwareVolumeKeys">Use Hardware Volume Keys to Control Your App?s Audio
20 <li><a href="#PlaybackControls">Use Hardware Playback Control Keys to Control Your App?s Audio
34 <p>A good user experience is a predictable one. If your app plays media it?s important that your
35 users can control the volume of your app using the hardware or software volume controls of their
39 playback keys should perform their respective actions on the audio stream used by your app.</p>
45 your app will use.</p>
51 <p>Most of these streams are restricted to system events, so unless your app is a replacement alarm
52 clock, you?ll almost certainly be playing your audio using the {@link
56 <h2 id="HardwareVolumeKeys">Use Hardware Volume Keys to Control Your App?s Audio Volume</h2>
58 <p>By default, pressing the volume controls modify the volume of the active audio stream. If your
65 <p>You may be tempted to try and listen for volume key presses and modify the volume of your
70 <p>Having identified the audio stream your application
72 your app?s lifecycle—because you only need to call it once during the activity lifecycle, you
75 your media). This ensures that whenever your app is visible, the
87 <h2 id="PlaybackControls">Use Hardware Playback Control Keys to Control Your App?s Audio
96 android.content.BroadcastReceiver} in your manifest that listens for this action broadcast as shown
131 also programmatically control when your app should receive media button press events.</p>
133 <p>The following code can be used within your app to register and de-register your media button
134 event receiver using the {@link android.media.AudioManager}. When registered, your broadcast
152 important when your application isn?t visible and therefore can?t be controlled by the on-screen
155 <p>A better approach is to register and unregister the media button event receiver when your