can't install apk on motorola milestone droid - android

I have an apk which i am unable to install on my motorola milestone droid. It gives an error not an apk file! Any suggestions? I am using android 2.1 and the code was developed on Android 3.1 platform.
this is the manifest file:
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="acb.xiynove"
android:versionCode="1"
android:versionName="1.0">
<uses-sdk android:minSdkVersion="12" />
<application android:icon="#drawable/icon" android:label="#string/app_name">
<activity android:name=".ACB_OnlineScreenActivity"
android:label="#string/app_name">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
</application>
</manifest>

You have specified in AndroidManifest that your .apk file can not be installed on systems lower then with API Level 12 (Android 3.2):
<uses-sdk android:minSdkVersion="12" />
In your specific case this means that you cannot install this .apk to Android 2.1 (API Level 7). You should either lower to android:minSdkVersion="7", or install .apk only to devices with Android 3.2.
As a side note, my guess is that you meant to use targetSdkVersion instead of minSdkVersion. But I might be wrong, as this depends on what APIs you're using.

Related

Why am I unable to set minSdkVersion

I can't work out any reason at all why I am seemingly unable to set a minSdkVersion for my application from the manifest. I am compiling from the terminal using Ubuntu OS - simply using> ant debug
This is my manifest:
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="self.redway.menubardemo"
android:versionCode="1"
android:versionName="1.0">
<uses-sdk
minSdkVersion="11"
targetSdkVersion="20"/>
<application android:label="#string/app_name" android:icon="#drawable/ic_launcher">
<activity android:name="MenuBarActivity"
android:label="#string/app_name">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
</application>
</manifest>
and yet when I compile the output in the terminal says:
[gettarget] Project Target: Android 4.4W
[gettarget] API level: 20
[gettarget] WARNING: No minSdkVersion value set. Application will install on all Android versions.
[echo] ----------
And although it runs the application is not giving me the action bar or the holo theme I expect when my min target is set at 11.
Is there something I need to do to the build path or something tricky. There is literally nothing to be found on the subject on here or google generally. Totally stuck.
Use the android namespace prefix with your attributes. That is, android:minSdkVersion instead of default minSdkVersion.
The same problem is there with targetSdkVersion, too.
use this :
<uses-sdk
android:minSdkVersion="11"
android:targetSdkVersion="20" />

Unable to test Android application

I cannot run a default-generated app from neither AVD or my Moto X. I don't have the developer edition, but I am in debug mode.
The AVD returns no error, however it loads the android bootlogo and stays there. I waited for a bit, no change.
Moto X V: 4.4.2
Manifest:
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.trevor1134.liveleak"
android:versionCode="1"
android:versionName="1.0" >
<uses-sdk
android:minSdkVersion="17"
android:targetSdkVersion="19" />
<application
android:allowBackup="true"
android:icon="#drawable/ic_launcher"
android:label="#string/app_name"
android:theme="#style/AppTheme" >
<activity
android:name="com.trevor1134.liveleak.MainActivity"
android:label="#string/app_name" >
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
</application>
</manifest>
The app is going to be a non-released app because I don't like the official LL app. :P
I suggest you using Intel Atom processor for 4.4.2. Make sure you update from android SDK.
Here your new setting for AVD.
DO NOT CHOOSE ARM because it more slower than Intel Atom. enjoy !
Install the ADB Drivers from: https://motorola-global-portal.custhelp.com/app/answers/detail/a_id/88481
This will fix your problems, but if you need a tutorial, look here: http://theunlockr.com/2009/10/06/how-to-set-up-adb-usb-drivers-for-android-devices/

Error string types not allowed at android:configChanges in manifest file

Here is my manifest file which shows error string types not allowed at android:configChanges please help me in rectification of the error.
below is my manifest file.
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.ifahja.banner"
android:versionCode="1"
android:versionName="1.0" >
<uses-sdk android:minSdkVersion="10"/>
<application
android:icon="#drawable/ic_launcher"
android:label="#string/app_name" >
<activity
android:name=".MyBannerActivity"
android:label="#string/app_name" >
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity android:name="com.google.ads.AdActivity"
android:configChanges="keyboard|keyboardHidden|orientation|screenLayout|uiMode|screenSize|smallestScreenSize"/>
</application>
<uses-permission android:name="android.permission.INTERNET"/>
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>
</manifest>
android:configChanges="keyboard|keyboardHidden|orientation|screenLayout|uiMode|screenSize|smallestScreenSize"
screenSize & smallestScreenSize attributes are not available in SDK 10.They are been introduced in API level 13.
http://developer.android.com/guide/topics/manifest/activity-element.html#config
Make sure you have the latest copy of the Android SDK and that you're
compiling against at least Android v3.2 (set target in
project.properties to android-13).
The Google Mobile Ads SDK for Android requires a run-time of Android 2.3 or later (set
android:minSdkVersion to at least 9 in your AndroidManifest.xml).
This means you can develop with the latest version of the Android SDK
and your app will still run on an earlier Android version (2.3
minimum).

Running the Android emulator

I am trying to run the emulator and each time I tried it it gives me the same error message 'Application stopped unexpectedly' I tried sorting it by killing the adb process in the task manager. The log cat error says:
WARNING: Application does not specify an API level requirement!
Device API version is 7 (Android 2.1-update1)
I do not know how this could be sorted, or if there is any other issue.
Please help, thanks!
Amrita
I guess the solution for your problem is:
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.
AdnroidManifest.xml looks like this:
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.jaxx.progressbarexample"
android:versionCode="1"
android:versionName="1.0">
<application android:icon="#drawable/icon" android:label="#string/app_name">
<activity android:name=".MainActivity"
android:label="#string/app_name">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
</application>
**<uses-sdk android:minSdkVersion="9" />**
</manifest>
One more thing to remind,you specify the min sdk version in your AndroidManifest.xml file similar to what your emulator target sdk version which you specify while creating your AVD.or create a new AVD with a target sdk of your application
.

Confusion why a magic 1.6 user cannot find app on market

I've published an app today mainly for my forum users to use, just a
very simple app that displays wallpapers derived from the forum.
Problem I'm having is one guy says it doesn't appear in the market,
and I've even sent him the APK to install manually but it fails.
My minimum SDK version is 4, I created it with the 1.6 SDK specified
so not sure why he can't see it or install it. He has a 1.6 Magic
handset.
So just wondering if anyone has any ideas, the app is called bocn
wallpaper, it uses internet and set-wallpaper permissions.. but I
wouldn't have thought the permissions were the problem...
My manifest is as follows:
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
android:versionCode="1"
android:versionName="1.0" package="net.dbws.bocnwallpaper">
<application android:icon="#drawable/launcher_icon"
android:label="#string/app_name">
<activity android:name=".Main"
android:label="#string/app_name">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<meta-data android:value="xxxxx" android:name="ADMOB_PUBLISHER_ID" />
</application>
<uses-sdk android:minSdkVersion="4" />
<uses-permission android:name="android.permission.INTERNET"></uses-permission>
<uses-permission android:name="android.permission.SET_WALLPAPER" />
</manifest>
Please, check the supported screens: http://developer.android.com/guide/topics/manifest/supports-screens-element.html
Android 1.6 has small-screens flag set default to false. May be it causes that the application is not seen on the device of the guy.

Categories

Resources