<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: How to tell android which volume (media/ringtone etc.) should be controlled by your app</title>
	<atom:link href="http://www.stealthcopter.com/blog/2010/02/how-to-tell-android-which-volume-mediaringtone-etc-should-be-controlled-by-your-app/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.stealthcopter.com/blog/2010/02/how-to-tell-android-which-volume-mediaringtone-etc-should-be-controlled-by-your-app/</link>
	<description>Android, Linux, Python and stealthcopters</description>
	<lastBuildDate>Thu, 29 Jul 2010 09:28:55 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
	<item>
		<title>By: Sonja</title>
		<link>http://www.stealthcopter.com/blog/2010/02/how-to-tell-android-which-volume-mediaringtone-etc-should-be-controlled-by-your-app/comment-page-1/#comment-3422</link>
		<dc:creator>Sonja</dc:creator>
		<pubDate>Thu, 29 Jul 2010 09:28:55 +0000</pubDate>
		<guid isPermaLink="false">http://www.stealthcopter.com/blog/?p=602#comment-3422</guid>
		<description>Forgot to say, AudioManager.STREAM_MUSIC is the one that sets&quot;Music/video volume&quot;, might be helpful</description>
		<content:encoded><![CDATA[<p>Forgot to say, AudioManager.STREAM_MUSIC is the one that sets&#8221;Music/video volume&#8221;, might be helpful</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sonja</title>
		<link>http://www.stealthcopter.com/blog/2010/02/how-to-tell-android-which-volume-mediaringtone-etc-should-be-controlled-by-your-app/comment-page-1/#comment-3421</link>
		<dc:creator>Sonja</dc:creator>
		<pubDate>Thu, 29 Jul 2010 09:26:43 +0000</pubDate>
		<guid isPermaLink="false">http://www.stealthcopter.com/blog/?p=602#comment-3421</guid>
		<description>Thanks! And if you want to just have maximum media volume when your application is started, use

AudioManager audioManager = (AudioManager) this.getSystemService(Context.AUDIO_SERVICE);
        audioManager.setStreamVolume(AudioManager.STREAM_MUSIC, audioManager.getStreamMaxVolume(AudioManager.STREAM_MUSIC), 0);

in your onResume() (and good practie would be to turn it down in onPause()), where the last param &quot;flags&quot; (here 0) sets how this change should be indicated, 0 means &quot;not&quot;, AudioManager.FLAG_PLAY_SOUND for example plays some beep at the new volume level!</description>
		<content:encoded><![CDATA[<p>Thanks! And if you want to just have maximum media volume when your application is started, use</p>
<p>AudioManager audioManager = (AudioManager) this.getSystemService(Context.AUDIO_SERVICE);<br />
        audioManager.setStreamVolume(AudioManager.STREAM_MUSIC, audioManager.getStreamMaxVolume(AudioManager.STREAM_MUSIC), 0);</p>
<p>in your onResume() (and good practie would be to turn it down in onPause()), where the last param &#8220;flags&#8221; (here 0) sets how this change should be indicated, 0 means &#8220;not&#8221;, AudioManager.FLAG_PLAY_SOUND for example plays some beep at the new volume level!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: David Shellabarger</title>
		<link>http://www.stealthcopter.com/blog/2010/02/how-to-tell-android-which-volume-mediaringtone-etc-should-be-controlled-by-your-app/comment-page-1/#comment-3414</link>
		<dc:creator>David Shellabarger</dc:creator>
		<pubDate>Wed, 28 Jul 2010 02:25:28 +0000</pubDate>
		<guid isPermaLink="false">http://www.stealthcopter.com/blog/?p=602#comment-3414</guid>
		<description>Wow that&#039;s easy.
Thanks for the tip.
First hit on Google.</description>
		<content:encoded><![CDATA[<p>Wow that&#8217;s easy.<br />
Thanks for the tip.<br />
First hit on Google.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Cameron</title>
		<link>http://www.stealthcopter.com/blog/2010/02/how-to-tell-android-which-volume-mediaringtone-etc-should-be-controlled-by-your-app/comment-page-1/#comment-3133</link>
		<dc:creator>Cameron</dc:creator>
		<pubDate>Wed, 07 Jul 2010 22:00:52 +0000</pubDate>
		<guid isPermaLink="false">http://www.stealthcopter.com/blog/?p=602#comment-3133</guid>
		<description>Thanks so much! This has also been bugging me and there isn&#039;t anything online I could find!</description>
		<content:encoded><![CDATA[<p>Thanks so much! This has also been bugging me and there isn&#8217;t anything online I could find!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: mat</title>
		<link>http://www.stealthcopter.com/blog/2010/02/how-to-tell-android-which-volume-mediaringtone-etc-should-be-controlled-by-your-app/comment-page-1/#comment-1061</link>
		<dc:creator>mat</dc:creator>
		<pubDate>Tue, 13 Apr 2010 15:35:09 +0000</pubDate>
		<guid isPermaLink="false">http://www.stealthcopter.com/blog/?p=602#comment-1061</guid>
		<description>@Jarcikon, good tip, thanks</description>
		<content:encoded><![CDATA[<p>@Jarcikon, good tip, thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jarcikon</title>
		<link>http://www.stealthcopter.com/blog/2010/02/how-to-tell-android-which-volume-mediaringtone-etc-should-be-controlled-by-your-app/comment-page-1/#comment-968</link>
		<dc:creator>Jarcikon</dc:creator>
		<pubDate>Thu, 08 Apr 2010 12:01:11 +0000</pubDate>
		<guid isPermaLink="false">http://www.stealthcopter.com/blog/?p=602#comment-968</guid>
		<description>If you need to reset the volume control back to the default, there is one other value you can use:

this.setVolumeControlStream(AudioManager.USE_DEFAULT_STREAM_TYPE);</description>
		<content:encoded><![CDATA[<p>If you need to reset the volume control back to the default, there is one other value you can use:</p>
<p>this.setVolumeControlStream(AudioManager.USE_DEFAULT_STREAM_TYPE);</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tom</title>
		<link>http://www.stealthcopter.com/blog/2010/02/how-to-tell-android-which-volume-mediaringtone-etc-should-be-controlled-by-your-app/comment-page-1/#comment-948</link>
		<dc:creator>Tom</dc:creator>
		<pubDate>Wed, 07 Apr 2010 17:00:11 +0000</pubDate>
		<guid isPermaLink="false">http://www.stealthcopter.com/blog/?p=602#comment-948</guid>
		<description>Cheers for this tip, I was looking for something this simply explained in the android SDK!</description>
		<content:encoded><![CDATA[<p>Cheers for this tip, I was looking for something this simply explained in the android SDK!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: OC</title>
		<link>http://www.stealthcopter.com/blog/2010/02/how-to-tell-android-which-volume-mediaringtone-etc-should-be-controlled-by-your-app/comment-page-1/#comment-200</link>
		<dc:creator>OC</dc:creator>
		<pubDate>Thu, 04 Feb 2010 15:34:29 +0000</pubDate>
		<guid isPermaLink="false">http://www.stealthcopter.com/blog/?p=602#comment-200</guid>
		<description>Thanks. That&#039;s been bugging me for a while. Play testers kept saying &quot;It doesn&#039;t make sense!!!! Volume this, volume that.&quot;
Not much on-line to help with this issue either.</description>
		<content:encoded><![CDATA[<p>Thanks. That&#8217;s been bugging me for a while. Play testers kept saying &#8220;It doesn&#8217;t make sense!!!! Volume this, volume that.&#8221;<br />
Not much on-line to help with this issue either.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: scheich</title>
		<link>http://www.stealthcopter.com/blog/2010/02/how-to-tell-android-which-volume-mediaringtone-etc-should-be-controlled-by-your-app/comment-page-1/#comment-186</link>
		<dc:creator>scheich</dc:creator>
		<pubDate>Tue, 02 Feb 2010 21:19:11 +0000</pubDate>
		<guid isPermaLink="false">http://www.stealthcopter.com/blog/?p=602#comment-186</guid>
		<description>thx</description>
		<content:encoded><![CDATA[<p>thx</p>
]]></content:encoded>
	</item>
</channel>
</rss>
