<?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: Changing the Screen Brightness Programatically</title>
	<atom:link href="http://almondmendoza.com/2009/01/05/changing-the-screen-brightness-programatically/feed/" rel="self" type="application/rss+xml" />
	<link>http://almondmendoza.com/2009/01/05/changing-the-screen-brightness-programatically/</link>
	<description>Android Examples For Developers</description>
	<lastBuildDate>Wed, 10 Mar 2010 22:21:22 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Fred</title>
		<link>http://almondmendoza.com/2009/01/05/changing-the-screen-brightness-programatically/comment-page-1/#comment-927</link>
		<dc:creator>Fred</dc:creator>
		<pubDate>Mon, 21 Dec 2009 17:39:32 +0000</pubDate>
		<guid isPermaLink="false">http://almondmendoza.com/?p=198#comment-927</guid>
		<description>How do you make this in widgets?</description>
		<content:encoded><![CDATA[<p>How do you make this in widgets?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: admin</title>
		<link>http://almondmendoza.com/2009/01/05/changing-the-screen-brightness-programatically/comment-page-1/#comment-738</link>
		<dc:creator>admin</dc:creator>
		<pubDate>Mon, 30 Nov 2009 15:31:02 +0000</pubDate>
		<guid isPermaLink="false">http://almondmendoza.com/?p=198#comment-738</guid>
		<description>Marc, i just got it from &lt;a href=&quot;http://code.google.com/p/apps-for-android/&quot; rel=&quot;nofollow&quot;&gt;http://code.google.com/p/apps-for-android/&lt;/a&gt; if you looking to unlock more android functions this might help you too &lt;a href=&quot;http://almondmendoza.com/2009/11/27/calling-private-methods-in-android/&quot; rel=&quot;nofollow&quot;&gt;Calling private methods in Android&lt;/a&gt;

update: should be &lt;a href=&quot;http://code.google.com/p/openintents/&quot; rel=&quot;nofollow&quot;&gt;http://code.google.com/p/openintents/&lt;/a&gt;</description>
		<content:encoded><![CDATA[<p>Marc, i just got it from <a href="http://code.google.com/p/apps-for-android/" rel="nofollow">http://code.google.com/p/apps-for-android/</a> if you looking to unlock more android functions this might help you too <a href="http://almondmendoza.com/2009/11/27/calling-private-methods-in-android/" rel="nofollow">Calling private methods in Android</a></p>
<p>update: should be <a href="http://code.google.com/p/openintents/" rel="nofollow">http://code.google.com/p/openintents/</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Marc</title>
		<link>http://almondmendoza.com/2009/01/05/changing-the-screen-brightness-programatically/comment-page-1/#comment-737</link>
		<dc:creator>Marc</dc:creator>
		<pubDate>Mon, 30 Nov 2009 15:27:29 +0000</pubDate>
		<guid isPermaLink="false">http://almondmendoza.com/?p=198#comment-737</guid>
		<description>The implementation of the IHardwareService that is provided here has worked wonders on all kinds of fronts.

Can you tell me where you acquired the hardware09.jar file?  Are there other files like it that allow access/interface with other hidden classes?  Did you compile that jar file yourself?  If so, how did you do it?

I&#039;m looking to unlock more android functions that have been hidden away.

Thanks,

Marc</description>
		<content:encoded><![CDATA[<p>The implementation of the IHardwareService that is provided here has worked wonders on all kinds of fronts.</p>
<p>Can you tell me where you acquired the hardware09.jar file?  Are there other files like it that allow access/interface with other hidden classes?  Did you compile that jar file yourself?  If so, how did you do it?</p>
<p>I&#8217;m looking to unlock more android functions that have been hidden away.</p>
<p>Thanks,</p>
<p>Marc</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: DAK</title>
		<link>http://almondmendoza.com/2009/01/05/changing-the-screen-brightness-programatically/comment-page-1/#comment-498</link>
		<dc:creator>DAK</dc:creator>
		<pubDate>Thu, 15 Oct 2009 08:51:49 +0000</pubDate>
		<guid isPermaLink="false">http://almondmendoza.com/?p=198#comment-498</guid>
		<description>Thanks for replay..
I saw that method in your &quot;Changing the Screen Brightness  Programatically in Cupcake&quot; article.
It works very well but only for one window.

Not only just one activity, I want to change system brightness permanently.

Like your bightness change toggle widget.
Thanks in advance :)</description>
		<content:encoded><![CDATA[<p>Thanks for replay..<br />
I saw that method in your &#8220;Changing the Screen Brightness  Programatically in Cupcake&#8221; article.<br />
It works very well but only for one window.</p>
<p>Not only just one activity, I want to change system brightness permanently.</p>
<p>Like your bightness change toggle widget.<br />
Thanks in advance <img src='http://almondmendoza.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: admin</title>
		<link>http://almondmendoza.com/2009/01/05/changing-the-screen-brightness-programatically/comment-page-1/#comment-497</link>
		<dc:creator>admin</dc:creator>
		<pubDate>Thu, 15 Oct 2009 06:56:05 +0000</pubDate>
		<guid isPermaLink="false">http://almondmendoza.com/?p=198#comment-497</guid>
		<description>try this one:

WindowManager.LayoutParams lp=yourActivity.getWindow().getAttributes();
// SDK 1.5 call:
//lp.screenBrightness=val;
 try {
     fieldScreenBrightness.setFloat(lp, val);
} catch (IllegalAccessException e) {
     Log.d(&quot;BrightnessNew for SDK 1.5&quot;, &quot;Setting brightness failed&quot;);
}
yourActivity.getWindow().setAttributes(lp);

Source: http://code.google.com/p/openintents/source/browse/trunk/Flashlight/src/org/openintents/flashlight/BrightnessNew.java</description>
		<content:encoded><![CDATA[<p>try this one:</p>
<p>WindowManager.LayoutParams lp=yourActivity.getWindow().getAttributes();<br />
// SDK 1.5 call:<br />
//lp.screenBrightness=val;<br />
 try {<br />
     fieldScreenBrightness.setFloat(lp, val);<br />
} catch (IllegalAccessException e) {<br />
     Log.d(&#8220;BrightnessNew for SDK 1.5&#8243;, &#8220;Setting brightness failed&#8221;);<br />
}<br />
yourActivity.getWindow().setAttributes(lp);</p>
<p>Source: <a href="http://code.google.com/p/openintents/source/browse/trunk/Flashlight/src/org/openintents/flashlight/BrightnessNew.java" rel="nofollow">http://code.google.com/p/openintents/source/browse/trunk/Flashlight/src/org/openintents/flashlight/BrightnessNew.java</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: DAK</title>
		<link>http://almondmendoza.com/2009/01/05/changing-the-screen-brightness-programatically/comment-page-1/#comment-494</link>
		<dc:creator>DAK</dc:creator>
		<pubDate>Thu, 15 Oct 2009 02:02:13 +0000</pubDate>
		<guid isPermaLink="false">http://almondmendoza.com/?p=198#comment-494</guid>
		<description>I am try to change system brightness setting. NOT LayoutParams for just one window in SDK 1.5 r3.

I changed library files (hardware09.jar) to recent cupcake classes and tried this sample. Then It does not work and throw an exception

10-15 10:52:41.087: ERROR/AndroidRuntime(4420): Caused by: java.lang.SecurityException: Requires HARDWARE_TEST permission

However, I have asked for the permission in AndroidManifest.xml definetly.

I could find interesting warning which state permission is not granted.
10-15 10:52:37.397: WARN/PackageManager(56): Not granting permission android.permission.HARDWARE_TEST to package com.monmonja.firstDemo (protectionLevel=2 flags=0x44)

Some says HARDWARE_TEST permission is not allowed to third party app but I know there are bunch of application that support brightness change in cupcake.

I spent too much time for googling and I am getting tired :(

please please show me the way!</description>
		<content:encoded><![CDATA[<p>I am try to change system brightness setting. NOT LayoutParams for just one window in SDK 1.5 r3.</p>
<p>I changed library files (hardware09.jar) to recent cupcake classes and tried this sample. Then It does not work and throw an exception</p>
<p>10-15 10:52:41.087: ERROR/AndroidRuntime(4420): Caused by: java.lang.SecurityException: Requires HARDWARE_TEST permission</p>
<p>However, I have asked for the permission in AndroidManifest.xml definetly.</p>
<p>I could find interesting warning which state permission is not granted.<br />
10-15 10:52:37.397: WARN/PackageManager(56): Not granting permission android.permission.HARDWARE_TEST to package com.monmonja.firstDemo (protectionLevel=2 flags=0&#215;44)</p>
<p>Some says HARDWARE_TEST permission is not allowed to third party app but I know there are bunch of application that support brightness change in cupcake.</p>
<p>I spent too much time for googling and I am getting tired <img src='http://almondmendoza.com/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' /> </p>
<p>please please show me the way!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: krt</title>
		<link>http://almondmendoza.com/2009/01/05/changing-the-screen-brightness-programatically/comment-page-1/#comment-193</link>
		<dc:creator>krt</dc:creator>
		<pubDate>Fri, 05 Jun 2009 09:34:47 +0000</pubDate>
		<guid isPermaLink="false">http://almondmendoza.com/?p=198#comment-193</guid>
		<description>thanks for the quick reply.
But I do not have a window.I just wanted to right simple program which modifies the window brightness.</description>
		<content:encoded><![CDATA[<p>thanks for the quick reply.<br />
But I do not have a window.I just wanted to right simple program which modifies the window brightness.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
