Sending email from android app

前端 未结 3 1265
旧巷少年郎
旧巷少年郎 2020-12-05 14:58

I need to provide feature for users where users can share some data by sending email. I used below code.

Intent emailIntent = new Intent(android.content.Inte         


        
3条回答
  •  暖寄归人
    2020-12-05 15:40

    Try adding the EXTRA_EMAIL to your intent, maybe bluetooth can be connected to ACTION_SEND but not to the same action if an email is to be send.

    See here:
    http://developer.android.com/reference/android/content/Intent.html#ACTION_SEND and here
    http://developer.android.com/reference/android/content/Intent.html#EXTRA_EMAIL

    Just a rough guess ...

提交回复
热议问题