return true;
}
case R.id.action_send_file: {
- shareFile();
+ sendFile();
return true;
}
}
}
- private void shareFile(){
+ private void sendFile(){
Intent sharingIntent = new Intent(android.content.Intent.ACTION_SEND);
// set MimeType
sharingIntent.setType(getFile().getMimetype());
sharingIntent.putExtra(Intent.EXTRA_STREAM, Uri.parse("file://"+getFile().getStoragePath()));
- startActivity(Intent.createChooser(sharingIntent, "Share via"));
+ startActivity(Intent.createChooser(sharingIntent, getResources().getString(R.string.send_file_title_intent)));
}