mgr=(NotificationManager)getSystemService(NOTIFICATION_SERVICE);
try {
String filename=i.getData().getLastPathSegment();
final NotificationCompat.Builder builder=
buildForeground(filename);
<BUG>startForeground(FOREGROUND_ID, builder.build());
File root=
Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_DOWNLOADS);</BUG>
root.mkdirs();
File output=new File(root, filename);

mgr=(NotificationManager)getSystemService(NOTIFICATION_SERVICE);
try {
String filename=i.getData().getLastPathSegment();
final NotificationCompat.Builder builder=
buildForeground(filename);
startForeground(FOREGROUND_ID, builder.build());
File root=getExternalFilesDir(null);
root.mkdirs();
File output=new File(root, filename);
