Android Question there was a problem while parsing the package

khosrwb

Active Member
Licensed User
Longtime User
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

B4X:
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
    Screenshot_20180408-153626.png
    35.3 KB · Views: 286

khosrwb

Active Member
Licensed User
Longtime User
excuseme , I use from this code :

B4X:
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
Top