-1

i want to make an android app that get list of all installed applications and after that user may select various apps and save their backups on google drive

fazal nabi
  • 39
  • 1
  • 4

1 Answers1

0

This can help you to get all installed apps,

Intent intent = new Intent(Intent.ACTION_MAIN, null);
intent .addCategory(Intent.CATEGORY_LAUNCHER);
List<ResolveInfo> apps = context.getPackageManager().queryIntentActivities( intent , 0);
suraj shinde
  • 230
  • 1
  • 7
  • 19
  • works great! this is the first part of my question, now can you please tell me that how i can take backups of various apps that the user has selected? – fazal nabi May 08 '17 at 06:36
  • First try to find out how apk files are store in sd card and then try this [tutorial](https://www.numetriclabz.com/integrate-google-drive-in-android-tutorial/) – suraj shinde May 08 '17 at 10:55