Android :: Incorrect Touch Events From Browser With Dashcode Mobile Projects
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
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
Feb 15, 2014
In a WIP for create a CWM for Galaxy Music GT-S6010 I doing a wrong operation.
First at all I've dumped the recovery of my phone and used CWM builder online, but the recovery didn't work.
I have founded a recovery of another smartphone that I think has similar hardware, the GT-S5310. I have flashed the CWM recovery of this other phone and the result is:
1) The CWM work. It seems to work well.
2) The touch screen behavior is bad. Is incorrect and inverted. In some point when touch with one finger the result give two touch.
I think that the problem is software not hardware, because with bluetooth mouse and keyboard the phone work well.
I have already tried many times, in this order:
1) restore the original recovery;
2) flash the stock firmware;
3) flash the CWM, doing a clean cache, format /sysem, format /cache, clean dalvik cache;
But not solved.
View 4 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
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
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
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
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
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
Jun 17, 2009
I was wondering if there was a way to use the mouse events in the Android Browser or in the Webview? I'd like to have mousedown/mouseup but if I could get drag events that would be great!
View 5 Replies
View Related
Mar 20, 2010
I tried to register to Internet browser URL changes but no succes so far, I tried different ways:
1. Start the browser as intent, for example: Intent myIntent = new Intent(Intent.ACTION_VIEW, Uri.parse("http:// m.cnn.com/")); myContext.startActivity(myIntent); this.registerReceiver(intentReceiver, intentFilter);
2. Start browser using: myWebView.setWebChromeClient(..) Then override each and every onXYZ method ...
Now, I know I can start using: myWebView.setWebViewClient(..) and then override shouldOverrideUrlLoading(..), but the WebViewClient is way too simple internet browser, and would require me tons of additions to make it anything close to the WebChromeClient.
View 4 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
Sep 11, 2009
About to buy my first android phone . I have tried the windows mobile, I am currently a blackberry user and I am about to but a My touch. Can the android os import the contact list from Microsoft outlook?
View 1 Replies
View Related
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
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
Mar 27, 2009
Did anyone hear about the Multi-Touch Browser? Is it true? Android Unleashed: JFv1.41, with Multi-Touch Browser! As a person brand new to G1 (got mine yesterday) i'm like WOW! How do I install it? Is it safe?
View 1 Replies
View Related
Nov 24, 2010
We're evaluating Sencha Touch for mobile development. Has anyone used this yet (I realize that it's still in beta), and if so, what are its strengths / weaknesses? How does it compare to alternatives?
View 3 Replies
View Related
Feb 26, 2009
Are following touch events supported by android platform or we have to implement them?
Touch event - Used to focus an item Tap - Execute action when finger is released Tap and hold - Long tap for some timeout Double tap - Tap twice without much delay Flick - Touch, hold, move and release quick Drag n drop - Touch, hold and drag Touch and move - Touch, hold, move and release in straight line
View 3 Replies
View Related
Aug 29, 2010
I just downloaded the Dolphin Browser and every time I go to Facebook it loads the touch version and I want it to load the normal one is there a way to change this?
View 4 Replies
View Related
Jan 25, 2010
My g2 touch says Firmware Version - 1.5
Build Number - 2.73.110.26
Software Version - 1.00.A6288
Is the most up to date version available for the t mobile y2k touch? If not how do I upgrade?
View 2 Replies
View Related
Dec 7, 2009
Have had my Hero since Friday, and so far i'm loving it - apart from a couple of minor teething problems, which i hope you can advise me on. I apologise if these questions have been answered before - i have done a thorough search (of the web, too!) but not found exactly what i'm looking for.
My main problem seems to be with Peep - i like the interface and would be more than happy to use it as opposed to downloading another app, but it seems to be very temperamental with the updates/notifications. I have it set to update/notify me every 15 minutes - which it doesn't. And when i go into Peep myself, (even if i do a manual refresh) it rarely gets the latest tweets. I downloaded Twitdroid to try, but this force closed about 4 times before i got fed up and uninstalled it!
There seems to be an annoying lag on the phone too - reading about, it seems this MAY have something to do with being logged into Peep?
Should i do a ROM upgrade - would this help? Build number is 1.76.110.6 (if i'm looking at the right thing!)
Oh, and apparently my hubby texted me a few hours ago, too - this hasn't come through either!
View 7 Replies
View Related
Feb 9, 2010
I have a G2 touch UK and the USB cable that plugs into the phone end has not got a mini usb port but rather something shaped like it but not quite the same. Tried a usb to mini usb adapter on it and it wouldn't fit. What connection is it? It's not micro usb either.
View 5 Replies
View Related