"Application not installed" error and API levels - android

I've developed my first Android app, and have successfully deployed it to my Galaxy S4. The app was developed for API level 19.
When I tried to install it on an older phone (HTC Desire, running Android 2.3) I got an error saying that the apk could not be parsed. I guessed that this was because the API level for the app was 19, so revised this in my Android manifest to API level 9, regenerated the APK, then tried installing it on the HTC again. This time it tried to install the app, advised me of the permissions being requested, but then gave the error message "Application not installed"
Can anyone suggest what my options are from here? My Android manifest is below.
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.ian.mealtimer"
android:versionCode="1"
android:versionName="1.0" >
<uses-sdk
android:minSdkVersion="9"
android:targetSdkVersion="9" />
<application
android:name="com.ian.mealtimer.MealTimerApplication"
android:allowBackup="true"
android:icon="#drawable/ic_launcher"
android:label="#string/app_name"
android:theme="#style/AppTheme" >
<activity
android:name="com.ian.mealtimer.MainActivity"
android:label="#string/app_name"
android:launchMode="singleTask" >
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity
android:name="com.ian.mealtimer.PresetItemsActivity"
android:label="#string/preset_item" >
</activity>
<activity
android:name="com.ian.mealtimer.MealActivity"
android:label="#string/title_activity_meal" >
<!-- android:parentActivityName="com.ian.mealtimer.MainActivity" > -->
<!-- <meta-data -->
<!-- android:name="android.support.PARENT_ACTIVITY" -->
<!-- android:value="com.ian.mealtimer.MainActivity" /> -->
</activity>
<activity
android:name="com.ian.mealtimer.MealItemActivity"
android:label="#string/title_activity_meal_item" >
android:parentActivityName="com.ian.mealtimer.MealActivity" >
<!-- <meta-data -->
<!-- android:name="android.support.PARENT_ACTIVITY" -->
<!-- android:value="com.ian.mealtimer.MealActivity" /> -->
</activity>
<activity
android:name="com.ian.mealtimer.MealItemDetailActivity"
android:label="#string/title_activity_meal_item_detail"
android:parentActivityName="com.ian.mealtimer.MealItemActivity" >
<meta-data
android:name="android.support.PARENT_ACTIVITY"
android:value="com.ian.mealtimer.MealItemActivity" />
</activity>
<activity
android:name="com.ian.mealtimer.SelectPresetItemActivity"
android:label="#string/title_activity_select_preset_item" >
</activity>
<activity
android:name="com.ian.mealtimer.SavedMealsActivity"
android:label="#string/title_activity_saved_meals" >
</activity>
<activity
android:name="com.ian.mealtimer.SetMealTimersActivity"
android:label="#string/title_activity_set_meal_timers"
android:parentActivityName="com.ian.mealtimer.MainActivity" >
<meta-data
android:name="android.support.PARENT_ACTIVITY"
android:value="com.ian.mealtimer.MainActivity" />
</activity>
<receiver android:name=".AlarmReceiver" >
</receiver>
</application>
<permission
android:name="android.permission.STATUS_BAR_SERVICE"
android:protectionLevel="signature" />
<uses-permission android:name="android.permission.WRITE_SETTINGS" >
</uses-permission>
<uses-permission android:name="android.permission.CHANGE_CONFIGURATION" >
</uses-permission>
<uses-permission android:name="android.permission.MODIFY_AUDIO_SETTINGS" >
</uses-permission>
</manifest>

The Application not installed occurs when there is a conflict with the old installed app with the new installed app. First of all you installed it first with the api as 19 then installed it again with api as 9 with out uninstalling it first.
solution:
Uninstalled the app first then use the android:minSdkVersion="9" in the manifest
`

Related

Android App not compatible from play store but works in debug mode

The mobile I am going to talk about is Micromax A63, Android Version 4.2.2
When I was developing my app, I used it as a debug device and it worked fine. All the development is done on the system.
After development, I uploaded the apk to play store and registered as a beta tester. When I see the app in the play store it says "Your device is not compatible with this version"
I have checked the compatible list, interestingly this device is neither in Supported Devices List nor in Unsupported list.
I have the following in my gradle build
minSdkVersion 13
targetSdkVersion 22
The permissions i use in the app are
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.RECORD_AUDIO" />
Help me understand what could be the issue.
Complete manifest file is as follows:
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.ghr.ubietyapp" >
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.RECORD_AUDIO" />
<application
android:allowBackup="true"
android:icon="#drawable/genie"
android:label="#string/app_name"
android:theme="#style/AppTheme" >
<activity
android:name=".splash"
android:label="#string/title_activity_splash"
android:noHistory="true" >
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity
android:name=".ProfileActivity"
android:label="#string/title_activity_profile" >
</activity>
<activity
android:name=".LoginActivity"
android:label="#string/title_activity_login" >
</activity>
<activity
android:name=".RegisterActivity"
android:label="#string/title_activity_register"
android:noHistory="true" >
</activity>
<activity
android:name=".OTPActivity"
android:label="#string/title_activity_otp"
android:noHistory="true" >
</activity>
<activity
android:name=".AttendanceActivity"
android:label="#string/title_activity_attendance" >
</activity>
<activity
android:name=".UploadActivity"
android:label="#string/title_activity_upload" >
</activity>
</application>
</manifest>
thanks.

How to list all packages in android project?

I downloaded google's sample in app purchase app and renamed the package to "com.iap.android.trivialdrivesample" wherever it appeared in AndroidManifest.xml:
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.iap.android.trivialdrivesample"
android:versionCode="3"
android:versionName="1.3" >
<uses-sdk
android:minSdkVersion="8"
android:targetSdkVersion="15" />
<!-- VERY IMPORTANT! Don't forget this permission, or in-app billing won't work. -->
<uses-permission android:name="com.android.vending.BILLING" />
<application
android:icon="#drawable/ic_launcher"
android:label="#string/app_name"
android:theme="#style/AppTheme" >
<activity
android:name="com.iap.android.trivialdrivesample.MainActivity"
android:label="#string/title_activity_main"
android:screenOrientation="portrait"
>
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
</application>
</manifest>
Uploading the apk into google play shows the error "cannot use package name com.example". I expanded all my folders in android studio and don't see any packages starting with "com.example". How can I list them from the command line to make sure?

BlueStacks Installation failed older sdk error

Hi everyone I'm trying to install an apk that I've designed with minsdk version of 14 and target of 19 onto bluestacks and its failing. What's weird is that I installed an app with the same api version of 14/19 on this very same bluestacks player a month ago(I deleted it now though to swap it with the new apk). Please let me know what api I should be developing in for bluestacks. Here's my xml
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.example.demoww"
android:versionCode="1"
android:versionName="1.0" >
<uses-sdk
android:minSdkVersion="14"
android:targetSdkVersion="14" />
<application
android:allowBackup="true"
android:icon="#drawable/earth"
android:theme="#style/AppTheme" >
<activity
android:name=".LoadScreen"
android:label="#string/Linking_players" >
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity
android:name=".SignUp"
android:label="#string/Signup" >
</activity>
<activity android:name=".MainActivity" >
<meta-data
android:name="android.support.UI_OPTIONS"
android:value="splitActionBarWhenNarrow" />
</activity>
<activity android:name=".suggestedfriends" >
<meta-data
android:name="android.support.UI_OPTIONS"
android:value="splitActionBarWhenNarrow" />
</activity>
<activity android:name=".search" >
<meta-data
android:name="android.support.UI_OPTIONS"
android:value="splitActionBarWhenNarrow" />
</activity>
<activity android:name=".requests" >
<meta-data
android:name="android.support.UI_OPTIONS"
android:value="splitActionBarWhenNarrow" />
</activity>
<activity android:name=".raul_profile" >
<meta-data
android:name="android.support.UI_OPTIONS"
android:value="splitActionBarWhenNarrow" />
</activity>
<activity android:name=".raul_message" >
<meta-data
android:name="android.support.UI_OPTIONS"
android:value="splitActionBarWhenNarrow" />
</activity>
<activity android:name=".profile" >
<meta-data
android:name="android.support.UI_OPTIONS"
android:value="splitActionBarWhenNarrow" />
</activity>
<activity android:name=".messages" >
<meta-data
android:name="android.support.UI_OPTIONS"
android:value="splitActionBarWhenNarrow" />
</activity>
<activity android:name=".friendslist" >
<meta-data
android:name="android.support.UI_OPTIONS"
android:value="splitActionBarWhenNarrow" />
</activity>
</application>
<!-- To access Google+ APIs: -->
<uses-permission android:name="android.permission.INTERNET" />
<!--
To retrieve OAuth 2.0 tokens or invalidate tokens to disconnect a user. This disconnect
option is required to comply with the Google+ Sign-In developer policies
-->
<uses-permission android:name="android.permission.USE_CREDENTIALS" />
<!-- To retrieve the account name (email) as part of sign-in: -->
<uses-permission android:name="android.permission.GET_ACCOUNTS" />
<!-- To auto-complete the email text field in the login form with the user's emails -->
<uses-permission android:name="android.permission.READ_PROFILE" />
<uses-permission android:name="android.permission.READ_CONTACTS" />
</manifest>
You can check which version of Android your version of BlueStacks is designed for by looking at the table below:
http://forum.xda-developers.com/wiki/BlueStacks_App_Player
The Android version of my BlueStacks is 4.0.4. The API level is 15.
According to the table, the latest version (beta) conforms to 4.4.2 (KitKat).
Unless, you have that version, you have to lower the API level for your apk to 15 or even lower.
If your BlueStacks is installed on a PC, you can check its version by:
Start-> type "regedit"
In registry editor, go to "HKEY_LOCAL_MACHINE" , "SOFTWARE", "BlueStacks" and it should be there under "Version".
[These instructions to find the version number of an installed BlueStacks were originally posted by intheGame.]
If your BlueStacks is installed on a Windows PC, you can check its version by hovering over its taskbar icon.

Android App not showing in PlayStore of certain devices (e.g samsung galaxy S4)

We published the app to Google PlayStore, but it does not seem to show on the PlayStore in latest available version of android (Kit Kat versions 4.4.2-4.4.3 ) on Samsung Galaxy4, HTC One (Model M7 2013) and Google Nexus tablet. However the app is visible on Android phones running Jelly Bean (android version 4.3.1). Here is the entire manifest file.
----------
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.xxx.yyyy"
android:versionCode="10" android:versionName="2.0">
<uses-sdk android:minSdkVersion="10"/>
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.CALL_PHONE" />
<uses-permission android:name="android.permission.SEND_SMS" />
<application
android:icon="#drawable/ic_launcher"
android:debuggable="false"
android:label="#string/app_name" android:name="xxxApp">
<activity
android:label="xxxx"
android:theme="#android:style/Theme.Light"
android:name=".xxxActivity" >
<intent-filter >
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity android:name=".favorites"
android:label="Favorites">
</activity>
<activity android:name=".pin"
android:label="Pin">
</activity>
<activity android:name=".registration"
android:label="Registration Form">
</activity>
<activity android:name=".divisions"
android:label="Promotions">
</activity>
<activity android:name=".config"
android:label="Settings">
</activity>
<activity android:name=".resultsearch"
android:label="Result">
</activity>
<activity android:name=".detailstore"
android:label="Info">
</activity>
</application>
</manifest>

Android app is not visible in mobile app store but from browser its is availabe

I have uploaded the android app in the android app store. The app is not visible from the mobile app store but from my browser it is visible.
The devices I have tried:
GT-S5360 (Samsung) gingerbread
A60 (Micromax) gingerbread
The AndroidManifest.xml code is
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.hyperwebenable.techpanels"
android:versionCode="1"
android:versionName="1.0">
<uses-sdk android:minSdkVersion="4" />
<application android:icon="#drawable/sitelogo"
android:label="#string/app_name">
<activity android:name=".MessageList"
android:label="#string/app_name"
android:theme="#android:style/Theme.NoTitleBar" >
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category
android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity android:name=".SecondActivity"
android:theme="#android:style/Theme.NoTitleBar" >
</activity>
<meta-data android:name="com.mobclix.APPLICATION_ID"
android:value=""/>
<activity
android:name="com.mobclix.android.sdk.MobclixBrowserActivity"
android:theme="#android:style/Theme.Translucent.NoTitleBar" />
</application>
<uses-sdk android:minSdkVersion="2" />
<uses-permission android:name="android.permission.INTERNET"/>
<uses-permission
android:name="android.permission.ACCESS_NETWORK_STATE"/>
<uses-permission
android:name="android.permission.READ_PHONE_STATE">
</uses-permission>
</manifest>
Please let me know what I am doing wrong here.
I'm not sure if this could cause a problem, but your uses-sdk is defined twice (with a different minSdkVersion). Try removing the second one.

Categories

Resources