android application running in simulator but not in mobile devices - android

Recently I've created one android application using eclipse and ran it using android virtual device manager. It ran successfully in the simulator, but whenever I am trying to install it in mobile device HTC Salsa (2.3 ginger bread) it is showing an error message and not proceeding. The error message is:
Parse Error: There is a problem parsing the package
As it was my first demo application in android so it will be very helpful if you will guide me in this.

Got the issue, it was happening because of the API version. I have the target version as 4.0.3 i.e, API 15 but ginger bread is of API 10. So I've modified the line <uses-sdk android:minSdkVersion="15" /> in manifest file to <uses-sdk android:minSdkVersion="10" />. Now it is working fine. Thanks for all of your help...

Try to "clean" then "rebuild" your project.

Related

opencv was not initialised correctly Application will be shut down

opencv was not initialised correctly Application will be shut down
i downloaded FacialRecognisition project from this link [https://github.com/ayuso2013/face-recognition] and imported it to eclipse .....
OpenCV-2.4.9-android-sdk
i have ran App on decvice asus zenfone4 version 4.4.2 and it is working fine but.... i tried to run it on another devices (version: jellybean ,lollipop....etc) but its shows an error opencv was not initialised correctly Application will be shut down try others versions oencv manager too...but failed
sdk
<uses-sdk android:minSdkVersion="8" />
<uses-sdk android:targetSdkVersion="15"/>`
<uses-sdk android:maxSdkVersion="23"/>
I had the same error. I've installed the OpenCV_2.4.11_Manager_2.20_armv7a-neon-android8.apk (link) on my samsung s6 and it works.

Ionic framework: how to run on android tablet without the latest API version

I'm new to Ionic and Cordova. Trying to run a sample app and deploy it to my Nexus 7 android tablet. Already have android SDK installed and windows variables configured (already program native android), but still when I run
ionic run android
I get the error below
But I don't want to deploy to API level 22. Already changed "todo\platforms\android\AndroidManifest.xml" file to the following content
...
<uses-sdk android:minSdkVersion="16" android:targetSdkVersion="19" />
...
but that also didn't worked. Anybody have a clue on what is going on? Can this be an Ionic or Cordova bug?
Found the answer on this link:
http://forum.ionicframework.com/t/build-for-older-api-version/18972/2
I have to update the "todo\platforms\android\project.properties" file with the desired API level.

Run android 4.2.2 build target application in android 4.4.2

I'm currently developing an android application. in manifest i have put the minSkdVersion and targetSdk version as follows.
<uses-sdk
android:minSdkVersion="14"
android:targetSdkVersion="17" />
when i'm trying to run the application in android 4.4.2 nexus 4 phone it shown unknown target in select device dialog screen as following
is it not possible to run on android higher version with less api build target.
It is possible to run your app on a device with API version less than the build version. The minimum API you can run on is decided by android:minSdkVersion attribute.
You have a problem with connecting your device properly. Please note that it is listed as offline. The device status/unavailability has nothing to do with your code.

Application build on Android2.2 platform not working on emulator of 2.3.3 platform

I am new in android, Please help me ....
I build an application in android 2.2platform but when i test it on an emulator of version 2.3.3 and higher it is not working .
Is there any problem of emulators or I have to build the same application with the 2.3.3 platform .....???
Make sure that your AndroidManifest.xml has a line like the following:
<uses-sdk android:minSdkVersion="8"
android:targetSdkVersion="8"
android:maxSdkVersion="10" />
This says, essentially, "I would like to target 2.2 devices, but the application should run on any devices up to 2.3.4."
You can get more information about uses-sdk at http://developer.android.com/guide/topics/manifest/uses-sdk-element.html
Please check your Manifest file in that is there any code like ? If yes then remove that line and then test it or set that at which level you want to run your application.

How to change the minSDK Version in eclipse?

While creating a new android project in eclipse 3.5, i have selected Android 2.1 Update1 as build target. But i forgot to give the mini SDK version. Now when the build the project, its giving a warning message "WARNING: Application does not specify an API level requirement!Device API version is 8 (Android 2.2)"
The application is running fine..but when i run that application is my Samsung Galaxy S which is having android 2.1, the application is behaving differently.
I have even tried adding
<uses-sdk minSdkVersion="7" /> in the manifest file..But still i am getting the warning message..
So how can i change the mini SDK of my project in eclipse to 7,so that i get the same result in my emulator and Mobile phone?
Thanks in advance
Shijilal
In your manifest there should be something like this
<uses-sdk android:minSdkVersion="int" />
Now just change the number to the desired version number. Additionally you should also change the value of the target in the default.properties file.

Categories

Resources