I finally managed to do some testing on a HTC Hero.  It does seem that
the LayoutParams are specific to the activity.  Setting full
brightness on one activity went back to normal once I closed the
activity/it lost focus.

On 30 Sep, 09:41, Chris <themaninthesuitc...@googlemail.com> wrote:
> I know how you feel, I often get the same on other forums where I have
> more expertise.  I will do some testing once I have a device to hand
> as the emulator gives no indication of the brightness.  Once I know
> for sure I will post here again.
>
> On Sep 30, 6:35 am, Justin Anderson <janderson....@gmail.com> wrote:
>
> > My apologies if I seemed a little curt in my original response.
>
> > There are quite a few people who post questions without doing any work for
> > themselves to find an answer... and I had already answered two other people
> > today who fit into this category.  It took me 2 minutes to look on the SDK
> > docs to find the answer for them.
>
> > It gets a little old and it seemed that your question fit into that category
> > as well.  I really don't know the answer to the question.  Perhaps someone
> > else can answer this, or, when you get your phone, you could post your
> > findings.
>
> > Thanks,
> > Justin
>
> > ----------------------------------------------------------------------
> > There are only 10 types of people in the world...
> > Those who know binary and those who don't.
> > ----------------------------------------------------------------------
>
> > On Tue, Sep 29, 2009 at 4:14 PM, Chris
> > <themaninthesuitc...@googlemail.com>wrote:
>
> > > I haven't tested as I still have a week until the phone arrives.  I am
> > > doing a few learning android exercise type apps and 1 felt would be a
> > > good basis for learning the app lifecycle/structure would be a "torch"
> > > app with settings for things like the brightness and so on.  But
> > > generally yes, I agree messing with the brightness would normally be a
> > > bad idea, which is why I am curious if I needed to return it to what
> > > it was or if it was app/activity centric.
>
> > > I will do some testing once I have a phone to test on.
>
> > > On Sep 29, 7:35 pm, Justin Anderson <janderson....@gmail.com> wrote:
> > > > Have you tried some testing to see what behavior you get?
>
> > > > Also, in my opinion, I wouldn't be messing with the screen brightness
> > > unless
> > > > there is a real good reason to.  I have my phone settings set exactly 
> > > > how
> > > I
> > > > want them.  If an app changed them without a VERY good reason I would be
> > > > extremely annoyed and probably uninstall the app.
>
> > > > Thanks,
> > > > Justin
>
> > > > ----------------------------------------------------------------------
> > > > There are only 10 types of people in the world...
> > > > Those who know binary and those who don't.
> > > > ----------------------------------------------------------------------
>
> > > > On Tue, Sep 29, 2009 at 8:25 AM, Chris
> > > > <themaninthesuitc...@googlemail.com>wrote:
>
> > > > > I am using WindowManager.LayoutParams to set the brightness of my
> > > > > actvity.  My question is, is this activity centric, app centric or
> > > > > does this change the current system brightness meaning I need to clean
> > > > > up the brightness back to what it was in my onPause?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.
To post to this group, send email to android-beginners@googlegroups.com
To unsubscribe from this group, send email to
android-beginners-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to