Android Question Problem running update.apk with intent

Dirk A

Member
Licensed User
Longtime User
Hi,

I'm trying to start an update package from my program with an intent . Here's my code :
Code: Copy
Dim iIntent As Intent
iIntent.Initialize(iIntent.ACTION_VIEW, File.DirDefaultExternal & "/update.apk")
iIntent.SetType("application/vnd.android.package-archive")
StartActivity(iIntent)

I've added
Code: Copy
<uses-permission android:name="android.permission.INSTALL_PACKAGES"/>
to the manifest error
At runtime I get the error :
android.content.ActivityNotFoundException: No Activity found to handle Intent
Am I forgetting something ?
 
Back
Top