2012-10-22 21 views
2

我正面臨「Android gmail未出現在nexus設備(平板電腦和手機)上的郵件意向共享列表中的問題」 。Android gmail未出現在nexus設備(平板電腦和手機)上的郵件意向共享列表中

 Intent mailIntent = new Intent(Intent.ACTION_SEND_MULTIPLE); 
     mailIntent.putExtra(Intent.EXTRA_EMAIL, mailTo); 
     mailIntent.putExtra(Intent.EXTRA_SUBJECT, buildSubject()); 
     mailIntent.putExtra(Intent.EXTRA_TEXT, buildMessage()); 
     mailIntent.putExtra(Intent.EXTRA_STREAM, uris); 
     // mailIntent.setType("image/jpg"); 
     mailIntent.setType("plain/text"); 
     // mailIntent.setType("message/rfc822"); 
     startActivity(Intent.createChooser(mailIntent, "send multiple datas")); 

我試圖severals類型( 「圖像/ JPG」, 「純/文本」, 「信息/ RFC822」),但沒有

有人可以幫我解決這個問題

回答

1

這裏的問題是,你正在使用

mailIntent.putExtra(Intent.EXTRA_STREAM, uris); 

這只是在舊版本的Gmail專用應用程序的錯誤。該應用程序未註冊到意圖的操作,因此它沒有出現在建議的應用程序列表中。

現在這個bug已經修復,它再次工作。

1

嘗試:Intent mailIntent = new Intent(android.content.Intent.ACTION_SEND); mailIntent.setType("text/plain"); 它應該工作。

+0

對不起。我已經嘗試過您的提案,但您無法發送多個數據附件 –

相關問題