I have just tried this code but something is not just as I wanted. The
user shoud confirm that he want to install the new version when this
application is already install. Is it possible to "force" the
installation without any user confirmation?

On Sep 17, 10:36 am, DaminouU <dam.le...@gmail.com> wrote:
> OK !
>
> Thank you. I will try this solution. It should work !
>
> On 16 sep, 19:32, Jack Ha <jack...@t-mobile.com> wrote:
>
> > One way you can do is to first save the .apk file in /sdcard and then
> > install it with the following code:
>
> >         Intent intent = new Intent(Intent.ACTION_VIEW);
> >         intent.setDataAndType(Uri.fromFile(new File("/sdcard/
> > app1.apk")), "application/vnd.android.package-archive");
> >         startActivity(intent);
>
> > --
> > Jack Ha
> > Open Source Development Center
> > ・T・ ・ ・Mobile・ stick together
> > The coverage you need at the price you want
>
> > The views, opinions and statements in this email are those of
> > the author solely in their individual capacity, and do not
> > necessarily represent those of T-Mobile USA, Inc.
>
> > On Sep 16, 10:05 am, DaminouU <dam.le...@gmail.com> wrote:
>
> > > Hi,
>
> > > I want to create an application which will be able to install another
> > > one.
>
> > > Actually a server will send me the .apk file. Then I want my
> > > application installing this .apk file and running it.
> > > This activity will be a kind of 'script' for installing and running a
> > > new apk file...
>
> > > Is it possible?
> > > How can I do?
>
>
--~--~---------~--~----~------------~-------~--~----~
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