khosrwb Active Member Licensed User Longtime User Apr 8, 2018 #1 hello when I use from following code I get to error : there was a problem while parsing the package you can see an picture (screenshot of phone ) my program don't crash , it's work hint : this apk file is fine , I can to install it with other file manager Code: Copy Dim intent1 As Intent intent1.Initialize("android.intent.action.INSTALL_PACKAGE", addrss& st3) intent1.Initialize(intent1.ACTION_VIEW,"file:///"&addrss&st3) intent1.SetType("application/vnd.android.package-archive") StartActivity(intent1) Attachments Screenshot_20180408-153626.png 35.3 KB · Views: 638
hello when I use from following code I get to error : there was a problem while parsing the package you can see an picture (screenshot of phone ) my program don't crash , it's work hint : this apk file is fine , I can to install it with other file manager Code: Copy Dim intent1 As Intent intent1.Initialize("android.intent.action.INSTALL_PACKAGE", addrss& st3) intent1.Initialize(intent1.ACTION_VIEW,"file:///"&addrss&st3) intent1.SetType("application/vnd.android.package-archive") StartActivity(intent1)
khosrwb Active Member Licensed User Longtime User Apr 8, 2018 #2 excuseme , I use from this code : Code: Copy Dim intent1 As Intent intent1.Initialize("android.intent.action.INSTALL_PACKAGE","file:///"& addrss& st3) intent1.SetType("application/vnd.android.package-archive") StartActivity(intent1) Upvote 0
excuseme , I use from this code : Code: Copy Dim intent1 As Intent intent1.Initialize("android.intent.action.INSTALL_PACKAGE","file:///"& addrss& st3) intent1.SetType("application/vnd.android.package-archive") StartActivity(intent1)
Erel B4X founder Staff member Licensed User Longtime User Apr 9, 2018 #3 The old intent is no longer relevant. Version safe APK installation Upvote 0