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. problem after I have changed the opencore and run media player

in order to run my media player on hardware not supporting pmem, I have 1. 
altered the external/opencore/android/android_surface_output.cpp to support 
mEmulation
2. make (under folder mydroid)
3.copied some lib relevant to opencore to the rootnfs/system/lib 
and then I run mediaplayer on my real hardware board,  there is still no  media 
to show on my screen, here is the catlog

V/ActivityThread(  560): Resuming ActivityRecord{436ba610 
token=android.os.binderpr...@436bbba0 
{com.android.mediaplayer/com.android.mediaplaye
D/MediaPlayerDemo(  560): surfaceCreated called
V/MediaPlayerDemo(  560): android.content.res.assetfiledescrip...@436b8440
W/PlayerDriver(  419): Using generic video MIO
V/VideoMIO(  419): CloseFrameBuf
V/VideoMIO(  419): setParametersSync
V/VideoMIO(  419): setParametersSync
V/VideoMIO(  419): setParametersSync
D/MediaPlayerDemo(  560): surfaceChanged called
D/MediaPlayerDemo(  560): onPrepared called
V/VideoMIO(  419): setParametersSync
V/VideoMIO(  419): iVideoWidth=176
V/VideoMIO(  419): setParametersSync
V/VideoMIO(  419): iVideoHeight=144
V/VideoMIO(  419): setParametersSync
V/VideoMIO(  419): iVideoDisplayWidth=176
V/VideoMIO(  419): setParametersSync
V/VideoMIO(  419): iVideoDisplayHeight=144
V/VideoMIO(  419): setParametersSync
V/VideoMIO(  419): VIDEO SUBFORMAT SET TO X-YUV-420-PLANAR
V/VideoMIO(  419): CloseFrameBuf
V/VideoMIO(  419): using software codec
V/VideoMIO(  419): video = 176 x 144
V/VideoMIO(  419): frame = 176 x 144
V/VideoMIO(  419): frame #bytes = 50688
I/ActivityManager(  435): Displayed activity 
com.android.mediaplayer/.MediaPlayerDemo_Video: 839 ms

anyone anyidea? my media is stored in res/raw and the app can run successfully 
on emulator.

--~--~---------~--~----~------------~-------~--~----~
unsubscribe: android-porting+unsubscr...@googlegroups.com
website: 

2. My Log messages fails to appear on Logcat View

hi friends,
When i run my application i could see the log messages in Logcat View,
as i was working through , all of a sudden i couldn't see log message
I'm not aware what has happened ,any clue ?.
Can we stop log message  displaying !,suppose i may accidentally
turned it off
i am fresh developer,help to solve it out.
Thanks

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

3. DEV PHONE IN ASIA

4. surffaceHolder.lockCanvas(dirtyRect) help?

5. strange adb logcat

6. Will ADP1 support payed apps from the store

7. Google Dev Phone