D Dirk A Member Licensed User Longtime User Sep 3, 2013 #1 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 ?
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 ?
NJDude Expert Licensed User Longtime User Sep 3, 2013 #2 Try: Code: Copy iIntent.Initialize(iIntent.ACTION_VIEW, "file://" & File.DirDefaultExternal & "/update.apk") Upvote 0
Try: Code: Copy iIntent.Initialize(iIntent.ACTION_VIEW, "file://" & File.DirDefaultExternal & "/update.apk")
D Dirk A Member Licensed User Longtime User Sep 3, 2013 #3 Hey NJDude , that did the trick ! thanks Upvote 0