We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ef84b2d commit af8c37fCopy full SHA for af8c37f
app/src/main/java/com/katcom/androidFileVault/ImageViewerFragment.java
@@ -96,7 +96,13 @@ private void export() {
96
intent.putExtra(Intent.EXTRA_TITLE, mFile.getFilename());
97
startActivityForResult(intent, WRITE_REQUEST_CODE);
98
}
99
-
+ private void share() {
100
+ Intent intent = new Intent(Intent.ACTION_CREATE_DOCUMENT);
101
+ intent.addCategory(Intent.CATEGORY_OPENABLE);
102
+ intent.setType("image/*");
103
+ intent.putExtra(Intent.EXTRA_TITLE, mFile.getFilename());
104
+ startActivityForResult(intent, WRITE_REQUEST_CODE);
105
+ }
106
@Override
107
public void onActivityResult(int requestCode, int resultCode, Intent data) {
108
if (requestCode == WRITE_REQUEST_CODE && resultCode == Activity.RESULT_OK) {
0 commit comments