best touchscreen resolution (pixels/mm)

by Ken Schultz » Wed, 11 Feb 2009 20:34:31 GMT

Sponsored Links
 Does anyone know the best touchscreen resolution for Android?  Most
likely there would be a sweet spot for this.  The higher the
resolution the more data which could cause a bottleneck for data flow
and the low the resolution the worse the accuracy is.  I would imagine
this to be in the units pixels per millimeter.


best touchscreen resolution (pixels/mm)

by Dianne Hackborn » Wed, 11 Feb 2009 21:29:33 GMT

 Some that is at least the same resolution as the screen should be
sufficient.  Very few things -- certainly nothing that is part of the
standard platform -- is going to do much useful with sub-pixel touch data
(though we do report it in the APIs).

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.



Sponsored Links

Other Threads

1. ADT installation error !!

Hi All,

I have installed ADT earlier on  my windows xp with out any issues,
now trying on ubuntu I get this error'
has encountered a problem.

Transfer Exception.

when i check the details for this dialog

Transfer Exception
Read timed out

Any help regarding the same will be appreciated.

-Thanks & regards,
Manjunath S


2. java.lang.NullPointerException with getting ID of element

Iam new to android and I really need help with accessing the xml
layout "objects" from .java. I have this code:

package cz.aurem.ot;

import android.os.Bundle;
import android.view.GestureDetector;
import android.view.MotionEvent;
import android.view.GestureDetector.OnGestureListener;
import android.widget.TextView;
import android.widget.ToggleButton;
import cz.aurem.ot.R;

public class ovladacOT extends Activity implements OnGestureListener {
    /** Called when the activity is first created. */
    private TextView viewA;
    public ToggleButton vypinac;

    private GestureDetector gestureScanner;

    public void onCreate(Bundle savedInstanceState)

        gestureScanner = new GestureDetector(this);
        this.vypinac = (ToggleButton)this.findViewById
        viewA = (TextView)this.findViewById(;

        try {
        } catch (Exception ex) {
           System.out.print("Exception" + ex.toString());


    public boolean onTouchEvent(MotionEvent me)
     return gestureScanner.onTouchEvent(me);

    public boolean onDown(MotionEvent e)
     viewA.setText("-" + "DOWN" + "-");
     return true;

    public boolean onFling(MotionEvent e1, MotionEvent e2, float
velocityX, float velocityY)
     viewA.setText("-" + "FLING" + "-");
     return true;

    public void onLongPress(MotionEvent e)
     viewA.setText("-" + "LONG PRESS" + "-");

    public boolean onScroll(MotionEvent e1, MotionEvent e2, float
distanceX, float distanceY)
     viewA.setText("-" + "SCROLL" + "-");
     return true;

    public void onShowPress(MotionEvent e)
     viewA.setText("-" + "SHOW PRESS" + "-");

    public boolean onSingleTapUp(MotionEvent e)
     viewA.setText("-" + "SINGLE TAP UP" + "-" + e.getX());
     return true;

AND the main.xml:

<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="

<ToggleButton android:id="@+id/toggle_button"


Everytime I make action (touch the display or so (call the viewA.* or
vypinac.set*)) it crashes due to java.lang.NullPointerException. So it
looks like the
this.vypinac = (ToggleButton)this.findViewById(;
is not works. I dont know what I do bad, please let me know the way or
Thanks in advance :-)


3. Changed activity from a BroadcastReceiver.

4. App Idea for your consideration

5. Eclipse connecting to real atrget

6. reference modifiers

7. Newbie question about developing Android App