ERNICommunity / erni-moods-android

Android ERNI moods app (Hack Sessions)
0 stars 0 forks source link

Provide a 'send feedback' option in the setting menu #55

Closed guslong closed 9 years ago

guslong commented 9 years ago

Provide a send feedback option in the setting menu. At least it can trigger a pre-filled in mail. (see code below to send a mail intent)... we can include the build number so it is easier for the development team to know which build has the issue.

Intent i = new Intent(Intent.ACTION_SEND); i.setType("message/rfc822"); i.putExtra(Intent.EXTRA_EMAIL , new String[]{"recipient@example.com"}); i.putExtra(Intent.EXTRA_SUBJECT, "subject of email"); i.putExtra(Intent.EXTRA_TEXT , "body of email"); try { startActivity(Intent.createChooser(i, "Send mail...")); } catch (android.content.ActivityNotFoundException ex) { Toast.makeText(MyActivity.this, "There are no email clients installed.", Toast.LENGTH_SHORT).show(); }

elgrangrifon45 commented 9 years ago

cool!