I have a PhoneGap 2.9 app running on Android 4.4 and it takes several tries to detect a swipe event from jQuery Mobile (v.1.10). This same code runs beautifully on Android 4.3.
I have tried changing the values for
$.event.special.swipe.durationThreshold
$.event.special.swipe.horizontalDistanceThreshold
but these do not seem to help at all. Any suggestions?
Below is how I am hooking up the swipe event:
$(document).on("swipe", '.collapsed', function (e) {
// do something
});
Set the target SDK to 18 instead of 19 to force the new webview in kitkat to operate in compatibility mode.
Related
I have a view and I want to implement detection of multi-touch gestures, so I override the onTouch() event and there I implement the logic. I have tested it and it work on actual device with Android API 28, and it works on Android Emulator up to API 29. As seen on the image below, on the emulator when I use [Ctrl+Clicks] to detect multi-touch for two fingers, I receive an event ACTION_POINTER_DOWN indicating that the second finger was down on the screen.
But on Android Emulator using API 30, I never receive the ACTION_POINTER_DOWN event and the multi-touch does not work. When I change the API version to lower version < 30, for the same emulated device it starts working. So the problem only occurs for devices that use API30 (I don't have an actual device that runs Android API30, so I am not sure if this only happens on the emulator or not). Is it somehow disabled by default from the developer options or the settings?
I am using PhoneGap 3.4.0 with the JQuery plugin for my Android project. Touch events are not working properly, with click events facing 300ms click delay. What seems to be the issue? How is it fixed?
Code sample:
$(element).click(function(){
//my function
});
300ms delay is normal thing in mobile webview, it's because of waiting for possibility of performing double tap, there is a way to bypass this with fastclick library.
As per this question, have you tried changing your target SDK setting in your AndroidManifext.xml to a later, more up-to-date API level? There are claims that changing from 8 (i.e. Android 2.2) to 14 (Android 4.0) dramatically improved PhoneGap performance on phones running newer versions of Android, probably because of having some hardware acceleration features disabled in lower settings. Also set your android:hardwareAccelerated to true and see if that helps.
I have made HTML5 application which is using vmoss platform, similar to phonegap. The application was running smoothly on samsung galaxy 10.1 tab with android version 4.0.4. After the client updated the device to android 4.1.2 now he is complaining of following issues.
Calendar control not working in new version
Text box controls having focus issues
Application GUI Issues because response is very slow
The page where issue of slowness comes is the page where child pages are loaded inside one of its div.
Can someone tell me, is it android os update issue or what?
i think it's because of the platform not updated to work/cope well with version 4.1.2
this one is vmoss platform issue.
Better try to run simple Html page with all these control without using the VMOSS at backend and see if there will be any issue.
Some time the version of Jquery doesn't fully support by the browser.
I'm developing a PhoneGap App with jQuery "collapsible content" elements. Now I'm testing the app under Android 4.2.2 on a Nexus 7 device and I have a problem with the expand/collapse event. The element expand and collapse immediately after the touch event. If I tap and hold the element for a second the collapse or expand event works.
It's very strange because it works under iOS (iPhone 5, iPad) and on Android 2.3.5 (HTC Desire HD)
Please help.
You might be seeing the same double-click bug as this. Phonegap 2.4.0 with Android 4.2 - strange double click behaviour
You can try the solution proposed in the link.
I created an application in html and JavaScript but it has the same bug is that with Android 2.3.6 with iPhone 5.0, while the Android version 4.0.4 the bug is not there.
To make it easier to explain my problem I put a link to the recording of my monitor.
The video on the iPhone, but on Android is the same. This application is for my thesis.
You can listen for showkeyboard/hidekeyboard events and resize your UI as appropriate.