Thank you, I will try this this afternoon. On 27 jan, 10:45, kirti kaul <[email protected]> wrote: > Hi, > > Use this: > > intent.setAction(android.content.Intent.ACTION_VIEW); > intent.setDataAndType(Uri.parse("file:/// > sdcard/.sampleapk"), "application/vnd.android.package-archive"); > startActivity(intent); > > Where Sample.apk is the apk you need to install. > > On Jan 27, 1:54 pm, ColletJb <[email protected]> wrote: > > > > > Hi, > > > How can I programmatically install an apk file ? > > > I've foud that the PackageManager.installPackage(...) method was used > > to do that, but is no longer supported (http://developer.android.com/ > > sdk/api_diff/4/changes/android.content.pm.PackageManager.html) > > > How can I do then ? > > > Thanks for your help > > > ColletJb
-- 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

