app install error

selvamurali

Active Member
Licensed User
Longtime User
Dim iIntent As Intent
iIntent.Initialize(iIntent.ACTION_VIEW, "file://"&File.Combine(File.DirRootExternal,"ringtone.apk"))
iIntent.SetType("application/vnd.android.package-archive")
StartActivity(iIntent)


when i try to run this code the error "There is a problem parsing a package" .
 
I've copied the file to the sd card and then ran the following code:
Code: Copy
Sub Activity_Click
   Dim i As Intent
   i.Initialize(i.ACTION_VIEW, "file://" & File.Combine(File.DirRootExternal, "browser.apk"))
   i.SetType("application/vnd.android.package-archive")
   StartActivity(i)
End Sub
The app was installed successfully.
 
Upvote 0
Back
Top