The application did not have an error when starting from the shortcut on the main screen

FYI: I already went through these links . Application error not installed on Android

Application not installed when trying autoupdate

My question is a little different.

  • I released the application with default / main action as XActiivity.java in version 1.0
  • I released an update with a change to the standard / main action as YActivity.java
  • I found that the application opens perfectly from the application, but when I try to start from a shortcut on the main screen, it gives an error message " Application not installed "

I know that due to a shortcut linking to the old XActivity.java, this problem will be solved by uninstall, but if I release the application for thousands as an update that already has this application, it will be annoyed in the first instance of this error message I would refuse good reviews, I received

+4
source share
8 answers

This is because the desktop shortcuts are slightly different from the launch icons in some launchers.

Your old label still contains a reference to XActiivity as the main action when you updated it as YActiivity. This makes Android think that the application is not installed, because it cannot find XActiivity in your application marked as MAIN Activity.

Simply removing the home screen icon and adding it back will resolve this.

+4
source

Check if you have the android:exported="false" property for the action, which should be "android.intent.category.LAUNCHER" . This disables the launch of certain activities in the launchpad.

+2
source

Enter

  <intent-filter> <action android:name="android.intent.action.MAIN"/> </intent-filter> 

inside a specific activity inside Manifest.XML did the job for me.

+1
source

What if you implement both XActivity and YActivity as entry points in your application? XActivity can remove the launch shortcut, set the YActivity shortcut, and launch YActivity.

0
source

The solution I wrote is. AndroidManfest.xml

  • I saved the target filter android.intent.action.MAIN for my previous XActivity.java.
  • I also saved the intent filter android.intent.action.MAIN, as well as the category as LAUNCHER for YActivity.java.

In the onCreate () method of XActivity.java, I added these lines and it seems to have solved the problem

 Intent thisIntent = getIntent(); if(thisIntent.getAction() == "android.intent.action.MAIN"){ Intent intent = new Intent(this,YActivity.class); startActivity(intent); finish(); } 
0
source

first make sure that the currently installed applications can be transferred to the SD card if they cannot be, that is, you have a reason for my desire to htc 300, while I rooted, I flashed incorrectly and I launched my phone in bootloop it was repaired from the store now a custom rom is working I don’t know which one but it doesn’t support moving the application to the SD card so I copied the application to the phone’s memory or the SD card is removed then I try to install it from the phone’s memory and now fs2014 is installed 1.35 horrray hope this helps you it will only work if you have a custom rom because the original rom has nt such errors or you call it an error

0
source

Possible solutions to the "Application not installed" error

  • Reboot the phone: at such moments, first of all, you need to restart the computer your device. Or simply turn off, remove and reinsert the battery.
  • Be sure to uninstall all applications that you are not using to free up space, also uninstall previous versions of the same application that is currently installed on
    your device.
  • Double check the apk files you are downloading and make sure they have been fully copied or downloaded.

  • Try resetting application permissions by choosing Settings> Applications> All> Menu

    Reset application permissions or Reset application settings.

  • Change the installation location of the application to automatic or let the system decide.
    Make sure your SD card is not mounted or connected to a PC or
    in the other place.
  • For scenarios with the smallest scenario, format the SD card - copy its contents
    somewhere else for backup and format.

  • The final solution is to completely erase your device. Either by making a factory reset in the Settings section or by performing a complete cleanup in
    recovery mode.

Link

0
source

I had the same problem, just a minute ago. I am not an expert, so all I could get from all the answers was the problem in the shortcut created on the main screen using the launcher. I use a classic minimalist program in which there is no application, so all applications are on the main screen, so I can’t just delete the shortcut without deleting it.

So, I cleared the cache of my launcher and myself created a new shortcut for this application, and it started working.

0
source

Source: https://habr.com/ru/post/1488641/


All Articles