2020年2月16日日曜日

突如 Gmail が ACTION_SENDTO での EXTRA_TEXT を fill しなくなったので対応した

以前のコード val intent = Intent(Intent.ACTION_SENDTO, Uri.parse("mailto:$address") .putExtra(Intent.EXTRA_SUBJECT, subject) .putExtra(Intent.EXTRA_TEXT, text) startActivity(intent) 対応したコード val intent = Intent(Intent.ACTION_SEND) // Intent.ACTION_SENDTO でもいけた .putExtra(Intent.EXTRA_EMAIL, arrayOf(address)) .putExtra(Intent.EXTRA_SUBJECT, subject) .putExtra(Intent.EXTRA_TEXT, text) .apply { selector = Intent(Intent.ACTION_SENDTO, Uri.parse("mailto:")) } startActivity(intent)


ありがとう https://stackoverflow.com/questions/59836984/email-body-empty-when-select-to-send-email-by-gmail


1 件のコメント:

  1. Do you understand there's a 12 word phrase you can say to your crush... that will induce deep emotions of love and instinctual appeal for you buried inside his chest?

    Because deep inside these 12 words is a "secret signal" that triggers a man's impulse to love, please and guard you with all his heart...

    12 Words That Trigger A Man's Love Response

    This impulse is so built-in to a man's genetics that it will make him work better than before to build your relationship stronger.

    Matter of fact, triggering this mighty impulse is so mandatory to getting the best possible relationship with your man that once you send your man one of the "Secret Signals"...

    ...You'll soon find him expose his heart and soul to you in such a way he haven't experienced before and he will recognize you as the only woman in the universe who has ever truly appealed to him.

    返信削除