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. Compairing EditText fields with if..else

I would like to know if it is possible to compare two different
EditTexts using a if...else statement.  I am trying to compare them
with this template:

if(<name>.getText() == <anotherName>.getText()){
//code
}
else {
//more code
}

No matter what i always get the else block of code even if i display
my answer and the correct one and they are obviously the same.  Is
there another comparison method or is my code wrong?
--~--~---------~--~----~------------~-------~--~----~

2. Masked EditText

Hi,
Some of my input fields are of specific data types.
Therefore, I want to add to my EditText controls implementation of
mask (the mask will control the input limitiations).
Masks for example:
Decimal - N.N (Numeric is not good enought, because it doesn't allow
decimal point).
Date - DD/MM/YYYY

How can I acheive this?

Thanks,
Shai

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

3. How to pass data between activities?

4. How to retrieve Background Colour

5. can't edit AndroidManifest.xml in eclipse

6. Difficulty writing android manifest file

7. How to get movie's times?