Paging om Tio Ping

by WiwietH » Tue, 09 Feb 2010 16:09:32 GMT


Sponsored Links
 Paket dah sampe.....keren euy smoke grey nya.

Love it

N1..., don't dream it. Have it.

-- 
"



Other Threads

1. ViewGroup Help

Hi there,

I am relatively new to Android, I was wondering if anyone can show me any
demo on how to use ViewGroup. I cant able to find a proper tutorial. Any
help would be appreciated!

thanks,
Arin

--~--~---------~--~----~------------~-------~--~----~

2. Brightness change is not smooth

Hi,

I am trying to resolve following task: smooth change of brightness
from 100% to 0%, but can't gain effect of smoothness.

Want to emphasize that I am using following approach of brightness
change. The recommended one.

WindowManager.LayoutParams lp = window.getAttributes();
lp.screenBrightness = floatPercent;  // 0 - 1
window.setAttributes(lp);

Well, it obviously works, but not smooth.
I will describe logic:

I have a thread that changes brightness:

                while (isRunning()) {
                    Thread.sleep(sleepTime);
                    spentTime+=sleepTime;
                    view.post(new Runnable() {
                        public void run() {
                            changeBrightness();
                        }
                    });
                }

We have duration of brightness change, for example 10 seconds.
I calculate next value of floatPercent (see code snippet above) the
way, sleepTime should always be less than 50ms.
So looks like it had to be smooth.

But I always get not smooth transition. It relates specially the range
of 0% - 5% of brightness. Smoothness is completely lost on this
brightness range.
What can you propose?

Thanks,
Lyubomyr


--~--~---------~--~----~------------~-------~--~----~

3. No coarse location in emulator

4. need android source tree 1.1 cupcake branch

5. App Store Providers - White Label Providers or Software Vendors

6. how to put image(button) on the webview or mapview???

7. Understanding intercepting touch events