Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Application is not installed error, when launched from home screen shortcut

Tags:

android

FYI: I have gone through these links already 'App not Installed' Error on Android

Application not installed when i try to autoupdate

My question is little different.

  • I released app with default/main activity as XActiivity.java in version 1.0
  • I released update with changing default/main activity as YActivity.java
  • I find that app opens fine from application meanu, but when I try to launch from home screen shortcut, it throws an error saying "Application is not installed"

I know that its due to shortcut referencing to old XActivity.java, by removing would solve this issue, but if I release app to thousands as an update who already have this app would get annoyed at the first instance of this error message. I would loose on good reviews I got

like image 286
Shri Avatar asked Jun 28 '13 08:06

Shri


People also ask

How do I fix application not installed?

The Android app not installed error can be combated after resetting app permissions. Go to Settings > Apps > Reset App Preferences/Reset Application Permissions. After this, third-party software can be installed on your device.

Why app is not showing in home screen?

This is because if the app hasn't been installed yet, it will not appear on the home screen. You can find the installed and uninstalled apps in App Gallery, where the pre-installed apps and the third-party ones are all be stored.

Why is it showing app not installed in Android?

By default Android allows installation only from the Play Store. In order to allow installation of apps from other sources, open the Settings app and locate "Install Unknown Apps" under Privacy/Security settings. Enable the permission for the app which you use to install your APK.


3 Answers

Please check if you have the property android:exported="false" on an activity that should have been a "android.intent.category.LAUNCHER". This disables the specific activity from being launched on the launcher.

like image 97
Pier Betos Avatar answered Sep 21 '22 21:09

Pier Betos


in 2021, just add

android:exported="true"

in the manifest, and it will be fixed

Example

like image 22
Liong Avatar answered Sep 18 '22 21:09

Liong


This question is old, but still relevant today.

This occurred because I changed the starting activity. I had this originally (truncated):

<manifest>
    <application>
        <activity android:name=".activities.StartActivity">
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />
                <category android:name="android.intent.category.LAUNCHER" />
            </intent-filter>
        </activity>
        <activity
            android:name=".activities.OtherActivity"
            android:exported="false" />
    </application>
</manifest>

I removed StartActivity but I forgot to remove android:exported="false", after adding the intent filter. It looked like this:

<manifest>
    <application>
        <activity
            android:name=".activities.OtherActivity"
            android:exported="false"> <!-- REMOVE THIS -->
            <intent-filter>
                <action android:name="android.intent.action.MAIN"/>
                <category android:name="android.intent.category.LAUNCHER" />
            </intent-filter>
        </activity>
    </application>
</manifest>

In short, make sure your starting activity is exported.

like image 41
Jamie Dulaney Avatar answered Sep 21 '22 21:09

Jamie Dulaney