![]() ![]() ![]() PackageInstaller.SessionParams(_FULL_INSTALL) PackageInstaller.SessionParams params = new Where InstallApkSessionApi contains a button that when pressed should start the install window: PackageInstaller packageInstaller = getPackageManager().getPackageInstaller() ![]() Looking at the demo found in the Android docs I get to this: Intent intent = new Intent(PSMentorActivity.this,InstallApkSessionApi.class) tDataAndType(Uri.fromFile(outputFile), "application/-archive") įollowing different answers I've found over the internet I need to start using PackageInstaller instead. output file is the apk downloaded earlier So since Android 10(API 29) ACTION_VIEW was deprecated so this doesn't really work anymore: Intent intent = new Intent(Intent.ACTION_VIEW) The way my apk updates currently is through the new apk installing itself over the old one(while not overwriting the local database or settings). ![]()
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |