Install an updated apk on Android 10 devices and put the same app in foreground
问题 In my app I implemented an update process, by which, if a new version is available, it automatically downloads from my server the new apk and then it tries to install it. I noticed for Android 10 devices I have to use PackageInstaller API (Android 10 - No Activity found to handle Intent): doing so my app correctly starts the installation process. Here is the code I used: try{ String apkPackageName = BuildConfig.APPLICATION_ID; PackageInstaller packageInstaller = getPackageManager()