2012-11-06 54 views

回答

2

之前去問問題。嘗試谷歌或搜索SO的類似問題。

在這裏看到:see here

1

試試這個:

   Intent targetedShare = new Intent(android.content.Intent.ACTION_SEND); 
       targetedShare.setType("image/jpeg"); // put here your mime type 
       targetedShare.putExtra(Intent.EXTRA_TEXT,  "My body of post/email"); 
       targetedShare.putExtra(Intent.EXTRA_STREAM, Uri.fromFile(new File(imagePath))); 

       Intent chooserIntent = Intent.createChooser(targetedShare, "Select app to share"); 
       chooserIntent.putExtra(Intent.EXTRA_INITIAL_INTENTS, targetedShare); 
       startActivity(chooserIntent);