I am displaying downlaoded file progress in status Notification.I want to open particular downloaded folder on clicking on notification once download is over.I used below code but it is always opening first “Open From” window and when i select “File Manager” from window then its opening root directory of internal storage.Where am I going wrong?
Intent intent = new Intent();
Uri uri = Uri.parse(folder.getPath());
intent.setAction(Intent.ACTION_GET_CONTENT);
intent.setDataAndType(uri, "file/*");
final PendingIntent contentIntent = PendingIntent.getActivity(context, 0,intent, 0);
mBuilder = new NotificationCompat.Builder(context);
mBuilder.setContentText("Download complete")
.setProgress(0, 0, false)
.setContentIntent(contentIntent);