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.
Related
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
I have made a Game using CORONA SDK, and during Building I set Andorind Version as 2.2 And Above, but when i tried to install that Game on Galaxy Ace Duos, It shows Error in installation due to Version Incompatibility. I searched & found that Samsung Ace Duos has Android 2.3.6. So according to that App should Worked.
What to do!!
It looks like the CPU on it is not of the ARMv7 family or later processors. It looks like an ARM9 which is of the ARMv3 family and Corona SDK is not compatible with.
You could try to launch the application on the SDK first to see if it works. I would suggest you to use Eclipse instead of Corona. If problem still persist, try switching it to your phone's version and try it out to see if the problem still occurs.
Cheers.
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
I've just started learning android and I've completed the hello world sample program which running on my galaxy tab emulator successfully.
Now i have the following concerns as below
can this hello world program run on galaxy y handset?
From where I can get the emulator for galaxy y model from samsung?
I am using sdk platform 2.2 , can this code run on Android OS v2.3.5 (Gingerbread - real handset)?
1) Yes
2) I'm not sure if such thing exists
3) Yes
You should try running the program on your handset; you can't learn unless you do. just FYI, I had to install Samsung Kies to get the drivers that let Eclipse see a Galaxy tab. I'm not sure if you have to do the same for the handset, but if that's the case, now you know what to do.
If you are beginning to learn Android you are better off learning with the default emulator that comes with the SDK. Setting up handset manufacturer specific emulators is not the hassle to address right now. Just use the default SDK, you will be fine.
Hello world programs, in almost all cases in Android will work with any emulator or SDK (from Android 1.6 onwards). So you should be okay.
Also, if it doesnt run due to some reason, learning how to recognize it and address it is a useful skill too, so dont think its not important.
If you're new to Android start your app projects with
Minimum required SDK-android 2.2 froyo
Target SDK- 4.2 jelly bean
Compile with android 4.2.
After creating the project go to your workspace APP project folder/bin/.apk file, copy and paste the .apk file and run it on your Samsung Galaxy y. It works, even I to have a Galaxy y mobile and tried it, it works.
Thank You. :)
I have an android app which uses sqllite, i have the apk files built in 2.2 sdk. It runs smoothly on the emulator, but when I installed it on the Samsung Galaxy Tab (Android tablet) it gets installed but wont run. It gives me error "my_app_name(my_package) have stopped unexpectedly. Please try again "..I don't know why this happens..
please help
Have you tried using DDMS to see what the error is? It should report the line of Java it crashed on and give you an indication as to the problem..