is Invalidate() causes taking more time ?

by manoj » Sat, 05 Sep 2009 17:55:20 GMT


Sponsored Links
 Hi friends,

I am trying an app (just like a karaoke) which has some predefined set
of lines on the canvas.

After some time I will redraw the strings of each line on the canvas
with another color using Timer.schedule() function.

But the redrawn strings are painted more time than the given time in
schedule () ( just my guess).

I am using postInvalidate() function in my app.

How can I sync lyrics with exact timings?

Thanks,
Manoj.

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



Other Threads

1. How to make an android notification for the application?

Hello,

Does anyone knows how to do an android notification?
I have an application that needs to be updated from time to time.
I would like to know how can i implement the android notification
feature for my app?

I would appreciate any idea.
Thanks
Lidia

-- 

2. what is the basic idea of sensor driven animation

Hi all,

I want to do a sensor driven animation ( like AR)  where by i use
azimuth to control the flowing of drawable in the camera overlay.

right now, i have the sensor reading ready on camera. I can drawable
on the camera overlay.

However, I am not sure how can the sensor data to be used to control
the animation?

i looked at the animatedrawable in apidemo,

should i be calling translate animation everytime i get a new sensor
reading?

   Animation an = new TranslateAnimation(0, 100, 0, 200);
            an.setDuration(2000);
            an.setRepeatCount(-1);
            an.initialize(10, 10, 10, 10);


            mDrawable = new AnimateDrawable(dr, an);
            an.startNow();

-- 

3. how export an resources attribute

4. How to use GridView with ScrollView (containg Data of ListView)

5. Can we customize spinner dialog

6. How to do this correctly in SQLite?

7. How to create a common library in android - containing resource files as well