Android 2.2 have scrolling issues with phonegap app? - android

I have a phone gap app.
When I test it out on 2.2 froyo, (on actual phone and in AVD) it refuses to scroll.
I've tested it out on 2.3.3 and it works perfectly. Are there issues with scrolling in the 2.2 version?
If so, is there a workaround to this?

Some PhoneGap examples include the following line in initialization code:
document.addEventListener("touchmove", preventBehavior, false);
This will disable scrolling on some devices. If your app includes it, try deleting (or commenting) it.

Related

Android 6 Marshmallow with Delphi XE8

Is it possible to create an app for Android 6 using Delphi XE8 instead of Delphi 10?
Now apps seem to crash on Android 6, but Delphi 10 apps seem to crash on older android versions.
I have multiple Android SDK installed from 19(Android 4.4) till 23(6.0)
I also have the newest android NDK(r10e) and the newest Java JDK.
The crashes seem to be very random. Can't yet say why it crashes exactly. I'll try to find out more!
Update:
It seems to be a device specific problem. If I run Delphi 10 app on emulators with android 4.2/6.0 the app doesn't crash. Also on my samsung galaxy tab with android 4.2 it doesn't crash. Only my sony xperia with android 5.1 crashes.
Update:
My app seems to crash becore I call TCloseAction.caFree in the FormClose event of my 2th form
I found out what the problem was for older android versions with my Delphi 10 version of the project.
Through commenting out code I found out that the TCloseAction.caFree crashes the app in the formclose event. I can't remove this otherwise the form memory doesn't get freed. I tried multiple methods but only this totaly frees all the memory of a form in a Firemonkey multi device project.
After finding this out I found that it crashes when I add a TVertScrollBox to a TTabItem. On my Form I have multiple tabs. And on one of them I have a Listbox that I fill runtime with items and below that a memo. In order to use this memo correctly I added a TVertScrollBox so when the keyboard is shown the keyboard doesn't hide the memo. When I added the VertScrollBox in the designer my listbox doesn't draw the items correctly, so that's why I add it runtime. But this causes the crash on older android versions. Apparently it doesn't like to get freed in the onClose event for some reason.
So for the final solution i'm left with putting the memo in the top of the TTabItem so it never gets hidden behind the keyboard and removing the TVertscrollbox from designer/runtime. Now my ListBoxItems get drawn correctly and my app doesn't crash on older android versions anymore.

appframework/phonegap scroll is not working on android

I'm developing a phonegap application for both iOs and Android platform.
I'm using AppFramework by Intel (ex. jqMobi) and it works like a charm in iOs, it works good also on android, the only thing is that the scrolling is not working in Android 2.3.6 and I can't figure out why. I don't know if it works in most recent version of Android on real device, it's not working there too in the emulator.
Thanks in advance for any suggestion...
On Android 2.3.5 & 2.3.6, JQM's header and footer scroll with document and then reposition (back to top and bottom) after scrolling has stopped. This happens when header and footer are set to data-position="fixed".
It appears that these versions of android have buggy CSS implementations of {position:fixed;} and therefore JQM's behavior appears erratic when compared to other adjacent Android versions.

Application running really slow when android os update to 4.1.2

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.

why phonegap not showing images on android ICS (4.0.2)?

I've create an android aplication using phonegap and jquery mobile, when I test it from android version Gingerbread (2.3.3) everything is fine, but when I run my application on android phone with android version ICS (4.0.2), all images not showing. why my images not showing in android phone with ICS? and VideoRecording functions too not works in higher version well.
here is the sample code: http://pastie.org/4201837
I have also had a lot of issue with phonegap and ICS. The reason for this is due to the fact that their are a lot of Web View Bugs within the ICS firmware.
This is mainly due to the fact that Google want more native apps and therefore have not bothered properly supporting web view apps, such as phonegap.
They are slowly working through the more major issues. How are you currently displaying the images, like below?
<img src="test.png" />

Android Application is not crashing in emulator 2.3.3 but crash in device 4.0.3

I have a app which was working properly on device Android 2.3.3.
But is not working properly on Android 4.0.3 device.
Errors are
App crash at start.
Grid-view icon not clickable after clicked once. Works again on restart for once.
These are examples.
These are platform issues are just coding errors.
Thanks for help in advance.
I also faced the same problem. I found the solution here. Try not using the Deprecated methods/API(in your case GRIDVIEW) in your code because Android API does not support the deprecated methods/API in the latest versions.

Categories

Resources