The application icon does not update in the device settings when trying to update?

I have two versions of my application, i.e. Test v1.0 and TestApp v2.0. Both have their own app and app name.

I noticed that after a successful update (installing v2.0 in version 1.0), the application name and application logo do not change on the "Application Settings" screen.

It shows the details of the old version (for example, v1.0 named TestApp), except for version No.

Current version information appears after executing the Force stop command.

These things usually mislead the user to find out the current version of the application.

How to update settings - application screen after updating the application?

Go to the device settings screen β†’ Applications> Application Information

Here, the application icon of the new application is not updated sometimes and refers to the old icon.

+4
source share
2 answers

The application in the application launcher (Home screen) should be updated, but the shortcuts will not be updated until the next update homescreen. homescreenis updated by itself, so the new icon will eventually automatically replace the old icon when updating.
 on another note, Android is used to store the application cache for your version code. If all else fails, you need to destroy the application cache during installation

0
source

, . , Google , . , :

ActivityManager activityManager = (ActivityManager) getSystemService(ACTIVITY_SERVICE);
activityManager.killBackgroundProcesses("com.android.settings");

:

<uses-permission android:name="android.permission.KILL_BACKGROUND_PROCESSES"/>

, .

0

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


All Articles