Home » Android » How to implement "Send Feedback" feature in Android?

How to implement "Send Feedback" feature in Android?

Posted by: admin April 23, 2020 Leave a comment

Questions:

enter image description hereI would like this to behave just like the “Send Feedback” behaves when you click on the Menu item in the Google+ Android app.

How to&Answers:

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[] { "[email protected]" });
        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!

Answer:

If you really want to catch any unhandled Exceptions and submit them as Bug Reports to your own Site or a Google Docs Spreadsheet youu should have a look at ACRA (https://github.com/ACRA/acra/). It has an option to ask the user for written feedback before sending the Bugreport to you.

Answer:

Disclaimer: It’s my own project

I’m currently working on this: http://www.android-feedback.com which ,I think, is what you are looking for. If you want to participate in the beta just leave your e-mail addr on the form.