Created
October 11, 2012 14:27
-
-
Save benigumocom/3872748 to your computer and use it in GitHub Desktop.
インテントファイル渡し
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File file = new File(ファイルパス); // 他アプリに渡すファイル | |
Intent intent = new Intent(Intent.ACTION_SEND); // データーを送信するインテント | |
intent.setType("image/png"); // データタイプの指定 | |
intent.putExtra(Intent.EXTRA_SUBJECT, "件名"); | |
intent.putExtra(Intent.EXTRA_STREAM, Uri.fromFile(file)); | |
startActivity(intent); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment