On Tue, Mar 3, 2009 at 5:55 PM, Shashank Bharadwaj <shanka....@gmail.com> wrote:
> Hi All,
>
> I'm trying to write a java program that will install an apk file on
> android. I saw that there is an Intent action: ACTION_PACKAGE_INSTALL

Nevermind.
I was able to install the file using:

    File apkFile = new File("/data/data/HelloAndroid.apk");
    Intent intent = new Intent(Intent.ACTION_VIEW);
    intent.setDataAndType(Uri.fromFile(apkFile),
"application/vnd.android.package-archive");
    startActivity(intent);


Sorry for the noise.

-- 
Regards
Shashank
As our circle of knowledge expands, so does the circumference of
darkness surrounding it - Albert Einstein

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to