Launcher3 icon indicating copy to clipboard operation
Launcher3 copied to clipboard

Ask question, thanks

Open dtboy1995 opened this issue 7 years ago • 0 comments

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!

dtboy1995 avatar Sep 21 '18 15:09 dtboy1995