Problem with continuos animation of children on long press of keys in a Viewgroup.

by ursnavin » Fri, 06 Mar 2009 15:48:29 GMT


Sponsored Links
 Hi all,

Suppose,If the user long presses a key,the animation should run till
the keyup...

For this i tried starting the animation on a new thread with a lock on
a flag variable,till the first animation ends.

Now when the user is still pressing his key,the thread is created with
the nxt animation in it....

On keyup the main thread gets the lock on the flag variable,and relays
the child views in thier new position....

This logic seems to work fine,but after some duration the animation
stops and the application simply hangs,

Is there something that i am missing here.....It would be great if
anyone can tell whether the approach followed is correct or should i
do something else???
--~--~---------~--~----~------------~-------~--~----~



Other Threads

1. Why I can't delete SIM record?

Hi guys,

I can use code to delete contacts in phone, but I can't do it in SIM
card. Does anybody know it??

Here is my code to delete SIM record.

mSimUri = Uri.parse("content://sim/adn");
getContentResolver().delete(mSimUri, "name=?",new String[] {"people
name"});

No exception to execute this command, but not any result.

Can anybody give an eye on it? Thanks!
--~--~---------~--~----~------------~-------~--~----~

2. multiple google accounts

i regularly use two google accounts - one for work and one personal.

with calendar it's easy to sync them, and currently on the g1 i'm just
about happy to access my work email via the browser while my personal
email autoupdates.

however, it would be massively useful if

1 i could check both email accounts with the full functionality of
gmail - using IMAP via the Mail app is no good because you can't
archive (which to me is one of the most useful functions)
2 i could synchronise the two sets of contacts

any ideas how i could do either 1 or 2?

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

3. Doh! I killed my SMS notifications

4. Reg OMA DM , FOTA & DS

5. Flash Audio Wizard (v4) - Web Audio Software.

6. How to capture ACTION_MOVE MotionEvents in a view

7. How to auto lock alt by application