Hi,

I create an application where it always check new version from my
server. If found then it will download the apk file and install it. If
it successful updated, the file in the asset folder should be
changed.

I run the app through Eclipse.
The app has downloaded the apk to the sdcard successfully but nothing
change when install the new apk.

Here is the code :

Intent i = new Intent(Intent.ACTION_VIEW);
i.setDataAndType(Uri.fromFile(new File(Environment
                                        .getExternalStorageDirectory()
                                        + "/download/"
                                        + outputFileName)),
                                        
"application/vnd.android.package-archive");
startActivity(i);

Is the upgrade will change project file if it runs successfully?
What is the best way to test it in Virtual device?

Thanks in advance,
Samuel



-- 
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