Я пытаюсь разделить изображение через долю, как это:
Intent sharingIntent = new Intent(android.content.Intent.ACTION_SEND);
sharingIntent.setType("image/png");
sharingIntent.putExtra(android.content.Intent.EXTRA_SUBJECT, application.getString(R.string.app_name));
sharingIntent.putExtra(android.content.Intent.EXTRA_TEXT,application.getString(R.string.app_share_message));
File image = new File(Uri.parse("android.resource://" + C.PROJECT_PATH + "/drawable/" + R.drawable.icon_to_share).toString());
sharingIntent.putExtra(Intent.EXTRA_STREAM, Uri.fromFile(image));
shareMe(sharingIntent);
Устранение общего доступа срабатывает правильно, и я выбираю Gmail, все работает как ожидается, пока я не нажму кнопку send. Я получаю уведомление "Невозможно показать приложению", и электронное письмо отправляется без него... Почему?
Спасибо за ваше время.