[android-developers] Re: How to programmatically install an APK file ?

2011-11-29 Thread wegoke
Here is the answert: Intent intent = new Intent(Intent.ACTION_VIEW); intent.setDataAndType(Uri.fromFile(new File(Environment.getExternalStorageDirectory() + /download/ + app.apk)), application/vnd.android.package-archive); startActivity(intent); I got that from

[android-developers] Re: How to programmatically install an APK file ?

2010-02-07 Thread Carlo
Is it possible to have the APK installed with forward lock option ? On Jan 27, 7:23 pm, ColletJb collet...@gmail.com wrote: Thank you, I will try this this afternoon. On 27 jan, 10:45, kirti kaul kirti.k...@wipro.com wrote: Hi, Use this:              

[android-developers] Re: How to programmatically install an APK file ?

2010-01-27 Thread kirti kaul
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,

[android-developers] Re: How to programmatically install an APK file ?

2010-01-27 Thread ColletJb
Thank you, I will try this this afternoon. On 27 jan, 10:45, kirti kaul kirti.k...@wipro.com wrote: Hi, Use this:              intent.setAction(android.content.Intent.ACTION_VIEW);              intent.setDataAndType(Uri.parse(file:/// sdcard/.sampleapk),