Hi, all, I'm writing an app which needs to install another app. I followed the code in the link below:
http://www.anddev.org/viewtopic.php?p=31112 to do this: Intent intent = new Intent(Intent.ACTION_VIEW); intent.setDataAndType(Uri.fromFile(new File(fileName)), "application/ vnd.android.package-archive"); startActivity(intent); Firstly, I put the sub apk (installed after the first app installed) to /sdcard/hello.apk manually and it can be installed. However, my host app has no right to write to /sdcard/ and then it cannot be done automatically. Next, I put the sub apk to the app private folder, /data/data/example/ files/hello.apk and tried the installation again. It fails again because of the message: "Unable to open /data/data/example/files/hello.apk, Permission Denied". Is it possible that I can get around such permission restriction? -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

