Я хочу реализовать кнопку, которая, после нажатия, откроет клиент по умолчанию по умолчанию с файлом вложения. Ссылка? public void sendFileToEmail(File f){
String subject = "Lap times";
ArrayList attachments = new ArrayList();
attachments.add(Uri.fromFile(f));
Intent intent = new Intent(Intent.ACTION_SEND_MULTIPLE);
intent.putExtra(Intent.EXTRA_SUBJECT, subject);
intent.putParcelableArrayListExtra(Intent.EXTRA_STREAM, attachments);
intent.setClassName("com.android.email", "com.android.mail.compose.ComposeActivity");
try {
startActivity(intent);
} catch (ActivityNotFoundException e) {
e.printStackTrace();
}
Подробнее здесь: https://stackoverflow.com/questions/288 ... on-android