Android :: Monkey - Touch Events Being Dispatched To The Screen
Sep 8, 2010
I start monkey like this:
monkey -p <MY PACKAGE> --port 4321
(I have already done a tcp port forwarding).
I then use PuTTY to telnet to 127.0.0.1:4321
I can issue a command like tap 100 100 I get a response OK but I see nothing happening on the UI. I have placed a button at that location but I does not receive the touch event.
When I run monkey like this
monkey -p <MY PACKAGE> --pct-touch 100 -v 10
I see touch events being dispatched to the screen.
View 1 Replies
Jul 24, 2009
I want to listen for the touch events from Lock Screen and Home Screen, is there any way i can tap those to my applications.
View 4 Replies
View Related
Mar 5, 2009
I have a list activity that creates a header row above the data rows from the adapter. I want to receive click events when the user selects the header or a data row (but my data rows have check boxes in them, so this part is tricky). When I use the touch screen, I get this expected behavior:
1. Tapping on any row causes a click event and a dialog appears.
2. Long-pressing on a data row causes a context menu to appear.
3. Long-pressing on the header row does *not* show the context menu.
However, when I use the arrow keys (emulator) or trackball (G1), I get this unexpected behavior:
1. Selecting any row fails to cause any click events, even though the row's appearance changes like it's being clicked.
2. Long-pressing on the header row *does* show the context menu, which I don't want.
3. Occasionally, it doesn't focus the correct row when I move up or down (e.g. it skips from the header to the last data row).
View 11 Replies
View Related
Sep 7, 2010
Once I start up monkey from the shell like:
adb shell monkey --port 1080
Then, If I write normal java code to establish a connection to 127.0.0.1:1080 (on the device itself) and then issue monkey commands from there?
I have tried this and I am able to create a socket, but to get the response, I wait for an awfully long time and nothing happens. Why this behavior?
View 2 Replies
View Related
May 31, 2009
I am writing a game using OPENGL, there are several 3D objects in my surface view. My question is: Should each 3D object implement view in order to get touch events? Or there is other way to do this?
View 5 Replies
View Related
Apr 27, 2009
I'm developing a game for Android. It's got a lot going on but is running reasonably smoothly. That is, of course, until the user touches the screen.While they're touching it, onTouchEvent is called (with action = ACTION_MOVE, x = 0 and y = 0) roughly once every ten milliseconds at what appears to be a fairly high priority, as it absolutely obliterates the framerate. As soon as the touch ends the framerate returns to its nice state.Has anyone encountered this? Is there a way to reduce the rate at which ACTION_MOVE events are generated, or to ensure that they're only generated when there is actual movement, or use a polling method that just gets the current location of the touch? Or even just a way to disable it entirely?
View 4 Replies
View Related
Jul 19, 2010
New to android so please bare with me here
Is it possible to detect all touch events in an Activity and capture it and then in return pass that pass event to another View. For example:
Button 1 and Button 2. When Button 1 is pressed I want to capture that touch/click event and automatically pass that touch event to Button 2, basically with one touch/press you get the click generated and that same click is passed on to the second button automatically.
View 1 Replies
View Related
Feb 26, 2010
I'm writing an Android game that needs to receive touch events. My problem is that, whenever the user drags their finger along the screen, so many touch events get sent to the touch event handler (which I think runs as a separate thread) that my frame rate plummets! What's the best way I can limit the number of touch events that are handled per second? For example, if my game runs at 60 fps, I really shouldn't need more than 1 touch event being handled every second. Can I do this is a way that doesn't lose any information (i.e. important information about where on the screen the user touched last)?
View 2 Replies
View Related
Jul 21, 2010
I'm trying to figure out a way to send touch events to the foreground activity. Essentially I want to write something that allows me to run it from the shell and just say "I touched this co-ordinate", so that I can automate some UI tasks for testing. Essentially what Monkey does, but application agnostic.
I think that android.view.MotionEvent holds the key, but I'm not sure how to run something without view so that I don't interfere with what is on the screen. Perhaps with a service, but I'm unclear how that would work.
View 5 Replies
View Related
Jul 21, 2010
Wondering here if there is a way I could trigger an event, so that any library listening for these events (e.g. jQTouch, Sencha touch, iUI, ... ).
If I could extend or use jQuery for such task e.g. $(...).trigger('event') that would be great to know.
Usage example:
I need to debug a few web apps by simulating multi touch with my mouse. This seems a little complicated, so if I could trigger the multi-touch events using Javascript I could therefore test the app more efficiently.
View 2 Replies
View Related
Sep 24, 2010
Purpose of the app:
A simple app that draws a circle for every touch recognised on the screen and follows the touch events. On a 'high pressure reading' getPressure (int pointerIndex) the colour of the circle will change and the radius will increase. Additionally the touch ID with getPointerId (int pointerIndex), x- and y-coordinates and pressure are shown next to the finger touch.
Following a code snipplet of the important part (please forgive me it is not the nicest code ;) I know)
CODE:.............
The problem:
A HTC Desire running Android 2.1 is the test platform. The app works fine and tracks two finger without a problem. But it seems that the two touch points interfere with each other when they get t0o close -- it looks like they circles 'snap'to a shared x and y axle. Sometimes they even swap the input coordinates of the other touch event. Another problem is that even though getPressure (int pointerIndex) refers to an PointerID both touch event have the same pressure reading.
As this is all a bit abstract, find a video here: http://www.youtube.com/watch?v=bFxjFexrclU
My question:
Is my code just simply wrong? Does Android 2.1 not handle the touch events well enough get things mixed up?Is this a hardware problem and has nothing to do with 1) and 2)?
View 1 Replies
View Related
Apr 23, 2010
I have an Android activity with an ImageButton. I would like to execute some logic when the button is clicked and show a different image for the pressed state, but also receive the touch event on the activity.
By default only the button receives the touch event. If I set the clickable attribute of the button to false then only the activity receives the touch event.
What's the best way to implement the touch event in the activity and the click in the button?
View 2 Replies
View Related
Oct 4, 2010
How do you disable all touch events in an Android WebView (or scrolling in particular)? I would like the activity to handle all touch events.
View 2 Replies
View Related
Aug 10, 2009
Just wondering if there is an easier way to simply stop ScrollView from being scrolled via touch inputs? I will programmatically get the ScrollView to scroll to top or bottom.
As a last resort, I guess I will have to inherit from ScrollView and capture all the ontouch events. But wondering if there is an easier way before I take this approach?
View 5 Replies
View Related
Sep 10, 2010
I have a service setup to receive a PACKAGE_ADDED and a PACKAGE_REMOVED intent from all <data android:scheme="package" />
I receive the intent correctly, but I need to know how to use the Intent and Context classes from onReceive to get the name and label of the application that was added or removed.
I have been able to use Intent.getDataString() to get the uri string of the package, but don't really know where to go from there.
View 1 Replies
View Related
Jul 16, 2010
I'm developing an HTML/Javascript mobile web application using Dashcode. Normally I wouldn't use such WYSIWYG stuff, but I've found it a very rapid development process.
Unfortunately it seems like I can't get it to run on Android's browser currently. The main display loads and all the correct data is pulled from web services, but you cannot press on anything to activate it.
I suspect that the android browser is sending different javascript events, which the Dashcode objects are not configured to pick up.
In addition, the adb logcat debugger refuses to output any log messages from the browser on the emulator, and as such I'm having a very hard time sorting this out.
What events I need to be watching for, so I can iterate over all the touch handlers and duplicate them for the android events, or offer help in any other way on this situation?
View 2 Replies
View Related
Jan 20, 2010
I have an activity defined as:
CODE:...................
View 3 Replies
View Related
Sep 8, 2010
I have a custom Android view which overrides onTouchEvent(MotionEvent) to handle horizontal scrolling of content within the view. However, when the ScrollView in which this is contained scrolls vertically, the custom view stops receiving touch events. Ideally what I want is for the custom view to continue receiving events so it can handle its own horizontal scrolling, while the containing view hierarchy deals with vertical scrolling.
Is there any way to continue receiving those motion events on scroll? If not, is there any other way to get the touch events I need?
View 1 Replies
View Related
Jul 4, 2012
My phones' display has been broken and I would like to know if there is a pc software that allows me to simulate touch events via adb bridge.
View 1 Replies
View Related
Jul 17, 2010
Just a quick question about the Captivate. I just got myself an HTC Aria and I love how easy it is to use the touch screen on it. Its extremely responsive. Now my sister has the SamSung Instinct on Sprint and the touch screen is horrible compared to HTCs touch on the Aria. Im thinking about taking the HTC back to AT&T and getting the Samsung Captivate. I am just worried about the touch screen on it and if it will be like the Instincts? If the touch is as good as HTCs Ill get it. If its not, then Ill stick with the Aria because despite its size, its an extremely fun and responsive phone. Any thoughts?
View 10 Replies
View Related
Mar 17, 2010
On iPhone, iPod touch and (presumably) iPad, Apple has multi-touch event handling available via JavaScript in Mobile Safari. I know the Nexus One recently added multi-touch support via an update, and I believe webOS is also multi-touch enabled. Do Android 2.1 and/or webOS have access to multi-touch in the browser, or is this currently exclusive to Apple devices?
View 6 Replies
View Related
Oct 21, 2010
Is there such a thing for the HTC desire? also, is there a app that lets you see how many multi touch points the htc desire has? i saw some youtube vids where that have this app and they put as many fingers as they can on the screen and scribble around.
View 2 Replies
View Related
Feb 18, 2010
I am trying to pass the same touch events on one widget to the other so they both scroll at the same time and in same way. I have two Gallery widgets one above and one below. If the above one is scrolled then I want to pass the same touch event to the bottom widget so it also scrolls the same way.I have tried to use dispatchtouchevent events but I am facing an issue where in if the bottom gallery widget has some edit text then the edit text gets the key event and both widgets doesnt scroll anymore.I have tried to set focussable and editable to false on edittext even then it gets the touch events.I think I am going in the right direction. However I need some assistance in doing the right way.
View 3 Replies
View Related
May 6, 2009
What I want to do is that when a normal key (such as "A") is pressed from the onscreen keyboard, I can be notified to do something just like when that key is pressed from real keyboard. But it seems EditText can not receive onKey event from onScreen keyboard.How can I do that?
View 7 Replies
View Related
Sep 11, 2010
I bought a new droid for $20 haha lucky i think until i notice that the touch screen only works for the middle of the screen to the left so if yu cut the screen into thirds only the middle and left work assuming that yu cut it from top to bottom with the lights at the bottom for the home button etc. I opened it up cleaned all the flex cable with alcohol and waited for it to dry and it still does the same thing so my question is = do i need a new digitizer or is it a software problem or something that i dont even know?
View 9 Replies
View Related
Oct 20, 2010
Touch screen is completely froze on my home screen.Battery pulls don't work, tried a android recovery.Can't unlock,can't do anything.Y'all have any suggestions?
View 6 Replies
View Related
Jun 19, 2010
Anyone know of a widget to simply lock the screen or put into sleep mode by pressing something on the screen rather than pressing the power button on the top of the phone. Tried looking around and unless I'm missing something (I am particularly good at missing the obvious!) there doesn't seem to be anything that does just that. Anyone know/come across anything that will do this? Does anyone know if this might be included in 2.2?
View 1 Replies
View Related
Apr 18, 2009
Are there any Im clients with touch screen? Aim in particular would be great. I am rootes at 1.42 rc33. Tried meebo and such but didn't have it.
View 5 Replies
View Related
Mar 26, 2009
I am having a problem with the touch screen in that whenever the screen is touched, it causes significant slowdown because of the large number of callbacks that are being made. I have read in this group about throttling the UI thread, but this does not seem a good solution and i can't believe there isn't a better approach?
View 4 Replies
View Related
Jan 20, 2010
Alot of android phones use the capacitive touchscreen technology. I was wondering if there is away to access any sort of information related to this sensor.
In other words I want to get the voltage potential related to the distance that you push down on the screen.
I know this is probably really deep into the hardware technology and it's probably proprietary, but I want to know if someone has figured out how to access this data or if there is a way around it.
View 3 Replies
View Related