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 in alarmclcock

Hi All,
I m trying to customize in built alarmclock...i have put a delete
button in alarmclock which delete the selected view using checkbox in
listview...but i m encountering one prblm whenever i m trying to read
the state of checkbox associated with view in listview thru getChildAt
(position) method i  m not able to read all the child in list
view...only first three is readable others are returning null....can
anybody help me....
--~--~---------~--~----~------------~-------~--~----~

2. Writing Lat/Long to Camera EXIF

Hello everyone.  I'm trying to write an application that places a
latitude and longitude stamp on all pictures.  I can see in the LogCat
output that there is someway of altering the EXIF headers in this
way.  How exactly can this be done?  Thanks in advance.


06-01 01:07:04.877: VERBOSE/QualcommCameraHardware(35):
receiveRawPicture: GPS PARM gps-timestamp --> [(null)]
06-01 01:07:04.877: WARN/QualcommCameraHardware(35):
receiveRawPicture: GPS timestamp not specified: defaulting to zero in
EXIF header.
06-01 01:07:04.877: VERBOSE/QualcommCameraHardware(35):
receiveRawPicture: GPS PARM gps-altitude --> [(null)]
06-01 01:07:04.877: WARN/QualcommCameraHardware(35):
receiveRawPicture: GPS altitude not specified: defaulting to zero in
EXIF header.
06-01 01:07:04.877: VERBOSE/QualcommCameraHardware(35):
receiveRawPicture: GPS PARM gps-latitude --> [(null)]
06-01 01:07:04.877: WARN/QualcommCameraHardware(35):
receiveRawPicture: GPS latitude not specified: defaulting to zero in
EXIF header.
06-01 01:07:04.877: VERBOSE/QualcommCameraHardware(35):
receiveRawPicture: GPS PARM gps-longitude --> [(null)]
06-01 01:07:04.877: WARN/QualcommCameraHardware(35):
receiveRawPicture: GPS longitude not specified: defaulting to zero in
EXIF header.

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

3. How to type in different language on emulator 1.1 and 1.5?

4. Will android-challenge mailing list open?

5. Can't figure out how to use SurfaceView properly, nothing is drawn

6. Adding items to a ListView

7. How to Enable network support for emulator (Android 1.5)