I tried to set a trigger that update backgroup every second, just for
test
Timer t = new Timer();
                t.schedule(new TimerTask()
                {
                        @Override
                        public void run()
                        {
                                
getListView().setBackgroundResource(R.drawable.bg);
                                getListView().setCacheColorHint(0);
                        }
                }, new Date(),100);
I thought when the preference change as I'm in the same activity, it
would update the background of my new preferencescreen...
It makes me think that PreferenceScreen creates a new activity when I
click...
If so, them I need a way to access this new activity through the
PreferenceScreen object...

On Dec 3, 9:40 pm, TreKing <[email protected]> wrote:
> On Fri, Dec 3, 2010 at 5:37 PM, Douglas Fonseca 
> <[email protected]>wrote:
>
> > Is there a onSomethingChange method where I can put it or I'm doing
> > a mistake somewhere else?
>
> Don't know for sure, but not surprised that didn't work. Clicking the
> preference surely happens before it's actually changed to the new screen.
> There are a ton of onSomethingHappened events in the preference hierarchy -
> if no one else knows for sure, I'd start trying them, one by one :-)
>
> --------------------------------------------------------------------------- 
> ----------------------
> TreKing <http://sites.google.com/site/rezmobileapps/treking> - Chicago
> transit tracking app for Android-powered devices

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to