0

私のアプリケーションでは、インテント経由でGmailを開きます。 ハイパーリンクインテントエクストラテキストを追加しました。これはAndroid OS 5以上では動作しませんが、正常に動作しています。4.3ハイパーリンクAndroid OS 5以降は動作しません

問題が何であるか教えてください。以下のコードを参照してください。

注:直接リンク[https://www.google.co.in/]すべてのAndroid OSを正しく動作します。

コード:コードの下

Intent sharingIntent = new Intent(Intent.ACTION_SEND); 
sharingIntent.setType("text/html"); 
sharingIntent.putExtra(Intent.EXTRA_TEXT, Html.fromHtml("<a href=https://www.google.co.in/>Google</a>"); 
startActivity(Intent.createChooser(sharingIntent,"Share using")); 

答えて

-1

試し

Intent share = new Intent(android.content.Intent.ACTION_SEND); 
    share.setType("text/plain"); 
    share.addFlags(Intent.FLAG_ACTIVITY_CLEAR_WHEN_TASK_RESET); 


    share.putExtra(Intent.EXTRA_SUBJECT, "Google"); 
    share.putExtra(Intent.EXTRA_TEXT, "https://www.google.co.in"); 

    startActivity(Intent.createChooser(share, "Share link!")); 
関連する問題