Search code examples
javaandroidfeedback

How to include feedback in android app


I want to include feedback in my app..so I need to show a popup to send mail and..I need to enter my mail id and feedback and when I am clicking the send button in the popup,the mail must send to the predefined mail id..how it is possible???


Solution

  • This is how you implement feedback in android :

    Intent feedbackEmail = new Intent(Intent.ACTION_SEND);
    
    feedbackEmail.setType("text/email");
    feedbackEmail.putExtra(Intent.EXTRA_EMAIL, new String[] {"yourfeedbackreceiveemailid"});
    feedbackEmail.putExtra(Intent.EXTRA_SUBJECT, "Feedback");
    startActivity(Intent.createChooser(feedbackEmail, "Send Feedback:"));