0
ProgressDialog progressDialog = new ProgressDialog(context);
progressDialog.setMessage("Waitting...");
progressDialog.show();
//sharing implementation
Intent sharingIntent = new Intent(android.content.Intent.ACTION_SEND);
// what type of data needs to be send by sharing
sharingIntent.setType("text/plain");
// package names
PackageManager pm = context.getPackageManager();
// list package
List<ResolveInfo> activityList = pm.queryIntentActivities(sharingIntent, 0);
List<ResolveInfo> newActivityList = new ArrayList<>();

Above is my code. The problem is the ProgressDialog has second delay show. Can anyone tell me why?

Reaz Murshed
  • 23,691
  • 13
  • 78
  • 98
LeoYe
  • 1
  • 2

0 Answers0