how to use touch screen on the emulator

by mamila » Fri, 19 Mar 2010 05:43:31 GMT

Sponsored Links
 Hi all,
my friend is trying to develop locale application that recognizes text
entry using a touch screen input method. unfortunately, he was unable
to figure out how to change the input method to touch screen.
can anyone give us some suggestion on how to start the touch screen
input method on the android emulator? we are currently using the 1.5


how to use touch screen on the emulator

by Lazarus » Sat, 27 Mar 2010 04:55:25 GMT

 I think touch = click, so OnClick = OnTouch.
Take it easy


Sponsored Links

Other Threads

1. NullPointerException in ViewRoot.draw


I have a fairly complex application that I ported from Java. I am now
debugging it.
When I launch the code under Eclipse, I get a NullPointerException in
ViewRoot.draw / ViewRoot.performTraversals / ViewRoot.handleMessage /
ViewRoot(Handler).diwpatchMessage at random times when the code runs.
Not always at the same position.
The layout of the application is very simple, I just have a
SurfaceView derived class in the display.
This is strange as I used the same layout in a simple application that
moves a circle on the screen, and I did not get these messages.

Can you help me please?

Thanks, Francois


2. Problem with returning from sleep mode.

Returning from sleep causes game to run, but the screen doesn't update
(on real (G1) device, but works fine on emulator)

I'm using DView class that extends SurfaceView and implements
SurfaceHolder.Callback, with constructor that contains :

SurfaceHolder surfaceHolder = getHolder();

Dview of course overrides each of the SurfaceHolder.Callback methods .
Rendering is performed in other thread:

SurfaceHolder surfaceHolder = dview.getHolder();
Canvas c = surfaceHolder.lockCanvas(null);
     c.drawBitmap(backbuffer.bitmap, 0, 0, null);
       System.out.println("frame "+frm);

Everything works perfectly on android emu, but there's huge problem on
real device.
I'm rendering some anims to the backbuffer. When returning form sleep
mode screen is not updated. All i can see are two (switching) anim
frames.. the ones rendered _before_ device (G1) enetred sleep mode.
There are no null pointers. All objects are valid.
App outputs to log increasing frame numbers (prntln).
Even if i draw directly on canvas (instead drawing backbuffer) -
there's no visible change on screen.

Any idea what's wrong ?

The only difference between emu and G1 system logs is this (on real

W/InputManagerService( 55): Window already focused, ignoring focus
gain of:$Stub


3. Memory management in OpenGL ES / Red button handling

4. SmsMananger.getDefault().sendTextMessage stopped working.

5. Throttling rate of messages to handler

6. Errors in VideoPlayer

7. How to enable logs for Android Applications like camera