How to implement "Send Feedback" feature in Android?

android

Solution

I'm not exactly sure how this app behaves with the "Send Feedback". Could you explain it to me, so I do not have to download the app?

As I do not know what it looks like, I am just going to take a guess and supply you with one way of letting the user send feedback:

@Override
public boolean onCreateOptionsMenu(Menu menu){
    super.onCreateOptionsMenu(menu);
    MenuInflater hardwaremenu = getMenuInflater();
    hardwaremenu.inflate(R.menu.main_menu, menu);
    return true;
}

@Override
public boolean onOptionsItemSelected(MenuItem item){
    switch (item.getItemId()){
    case R.id.sendEmail:
        Intent Email = new Intent(Intent.ACTION_SEND);
        Email.setType("text/email");
        Email.putExtra(Intent.EXTRA_EMAIL, new String[] { "admin@hotmail.com" });
        Email.putExtra(Intent.EXTRA_SUBJECT, "Feedback");
        Email.putExtra(Intent.EXTRA_TEXT, "Dear ...," + "");
        startActivity(Intent.createChooser(Email, "Send Feedback:"));
        return true;
    }
}

Either incorporate this into your existing menu or simply add this onto the bottom of the Activity that you would like to display the menu.

I hope this helps!

Problem

I would like this to behave just like the "Send Feedback" behaves when you click on the Menu item in the Google+ Android app.

Original source

Related problems