Touch *extremely* expensive performance-wise

by Stoyan Damov » Thu, 19 Feb 2009 17:33:42 GMT

Sponsored Links
 Here's a hint - override public boolean dispatchTouchEvent(MotionEvent
ev) instead of onTouchEvent - this *does* save quite a few cycles.
You sleep using whatever you find more appropriate - Thread.sleep for
interruptible sleep or SystemClock.sleep for non-interruptible one.



Touch *extremely* expensive performance-wise

by suhas gavas » Fri, 20 Feb 2009 17:41:20 GMT

 hi zombies and robots,
plz let me the solution to improve touch event performance
I have got stuck because of the sam



Sponsored Links

Touch *extremely* expensive performance-wise

by Stoyan Damov » Wed, 11 Mar 2009 02:48:56 GMT

 sure, it should work - I think someone has already done that


Touch *extremely* expensive performance-wise

by Dianne Hackborn » Thu, 12 Mar 2009 02:13:37 GMT

 The ANR dialog is shown when you aren't responsive for 5 seconds.  We should
be talking about waiting for ~20ms only for motion events.  These are in
completely different realms.

On Wed, Mar 11, 2009 at 7:22 AM, Streets Of Boston

Dianne Hackborn
Android framework engineer

Note: please don't send private questions to me, as I don't have time to
provide private support.  All such questions should be posted on public
forums, where I and others can see and answer them.


Other Threads

1. How to set width and height of a View in DP through code not in XML ?

search 'Converting dp units to pixel units' on above page.


2. Notepad Sample - adding more columns to listview

I've done the notepad tutorial on Google's Android site, but I would
like to know how to add more fields to the list, in columns. At the
moment I can add the columns no problem, but they're not aligned like
you would a normal table on the layout:

john smith
heinrich cilliers
will peck

I would like it aligned as in a html table.

Any pointers?


3. How to set width and height of a View in DP through code not in XML ?

4. Control rotation of a 3D object using the touchscreen

5. Views with the same dip width number have different widths in appearance on device

6. MediaPlayer error( 1,-2147483648)

7. Music / Soundtrack composer available for interesting projects - perhaps even free.