Launcher3
Launcher3 copied to clipboard
Ask question, thanks
How does a launcher app update itself?
- can i use below?
Uri uri = Uri.fromFile(new File(Environment.getExternalStorageDirectory() + "/" + "update1.apk"));
Intent intent = new Intent(Intent.ACTION_VIEW);
intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
intent.setDataAndType(uri,
"application/vnd.android.package-archive");
startActivity(intent);
- or other methods?
Any help is greatly appreciated!