Application Error on Android Phonegap - android

Im testing a simple html file with some input fields and two buttons, after installing the apk file on my android device everything seems well, but when I rotate the screen I receive the following error
Im using a samsung galaxy s3 mini with android 4.1.2.
Im using the latest phonegap and eclipse juno.
How can I fix (or hide) this error?

You should add android:configChanges="orientation|keyboardHidden|keyboard|screenSize|locale" to your activity in the AndroidManifest.xml, like recommended in the PhoneGap API Documentation

Related

Webview error using Readium 2 for android

I'm trying to use readium 2 library for my android project. I cloned r2-workspace-kotlin repo. I launched the app on some of my test devices. I noticed that on one device the app is unable to render some pages. Instead of what should be a page of the book I get a page saying Webpage not available. The device is running android 7.1.2 but it's not related to android version as I tested the app on emulator running the same version and it worked. Anyone has any ideas how to fix it?

Pushwoosh crashing on registration on Android 5.0.2

A colleague in the office is facing the following situation: He downloaded a sample code from the below link to get familiar with pushwoosh functionality: https://github.com/Pushwoosh/phonegap-build-sample-app
This example is built using Adobe PhoneGap online: https://build.phonegap.com
Although this example works fine in the iOS devices, it crashes on execution when on Android devices, both in version 4.4.2 and 5.0.2. Doing step-by-step code execution with weinre he noticed the application crashes on device registration. He wonders if he should try a different example or a different plugin. Could a wrong Google API key cause this behavior?
PhoneGap (iOS / Android / Windows)
cli-5.2.0 (3.9.1 / 4.1.1 / 3.8.1)
Thank you
For Phonegap Build please use "pushwoosh-pgb-plugin". PGB are way too slow updating Android libraries :(

Delphi XE7 Firemonkey Android 5.1.1 app crashing with just a TEdit on Samsung Galaxy S7

I create a fresh Android app with Rad Delphi XE7 (Pc So win8) and test on Samsung Galaxy S7 with 5.1.1 version.
I put a TEdit on it, and run it in the Samsung Galaxy S7 and the program crashes when enter on edit component and close keyboard.
A similar problem when put image on TListBoxItem the program crashes.
The same android app work ok on Tablet Samsung Galaxy Tab 3 with 4.2 android version.
Has anyone got a solution to this?
Thanks
Not sure if this will solve your problem, but I have found that the VERY FIRST THING I have to do when I create a new android project is go into the project directory and delete the Android.Manifest.xml file. If I don't do this, all kinds of craziness happens including failed deployments, failed launches, random crashes, etc.
It is also a good idea to make sure that your app only deploys to INTERNAL storage, and disable its ability to deploy to an SD card (I don't remember where that is, probably also part of the manifest).
My two cents.
If your PC installed old version SDK Delphi(older version 23) ,You should download new version from the Internet.
If not work,Install Delphi XE8(or DX10) in your PC.
Embarcadero has released a hotfix for Delphi XE7 to update the Java JNI bridge support for Android 5. Otherwise the app crashes on Lollipop. Did you download the hotfix?
http://blog.marcocantu.com/blog/2015-january-lollipop-hotfix-beta.html

Trouble using jsoup with Android 4.2

I have an android app that uses jsoup that runs fine on a motorola atrix phone running Android 2.3.6 and also works fine on a Samsung Galaxy Tab running 2.3.5.
However, I have tried to run it on my new phone: Samsung Galaxy S4 runnning Android 4.2.2. It can't run jsoup at all.
It chokes on this line of code:
Document document = Jsoup.connect(SPOT_SERVER_BASE).get();
Has anyone else encountered this problem for Android 4.2? (Or 4.1 or 4.0?) Is there something I need to do differently to get it to work?
Thanks for your help.
I haven't figured out what causes the problem, but I have figured out how to fix it.
In the manifest, I deleted this line:
android:targetsdkversion="xx"
where "xx" is whatever version you are using for the target in your build.
The only place where I indicate the project build targtet is where you edit the project properties by right-clicking on the package name and selecting "properties".
Why does this work? I have no idea.

Android Emulator does not view my index.html with PhoneGap

I am trying to run the sample (or any) application with phonegap in android emulator. I followed all the instructions in the PhoneGap's manual, but instead of the contents of index.html, an ordinary android activity starts. I am using phonegap version 1-2-0 and android emulator with target api 8 (android 2.2). What am I doing wrong? Thanks.
This is very hard to answer without some more info. I have managed to get phonegap running on the emulator and my phone fairly recently so it works.
Have you tried MDS applaud ? (It's a plugin for eclipse.)
http://www.mobiledevelopersolutions.com/home/start

Categories

Resources