Public paste
Undefined
By: kalkin | Date: Aug 14 2010 01:13 | Format: None | Expires: never | Size: 301 B | Hits: 491

  1. File file = new File(mCurrentDir, child);
  2.                         Intent intent = new Intent(Intent.ACTION_SEND);
  3.                         intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
  4.                         intent.setType(getMimeType(file));
  5.                         intent.putExtra(Intent.EXTRA_STREAM, Uri.fromFile(file));
  6.                         startActivity(Intent.createChooser(intent, null));