Can't add email signature in Android

Posted by user1680411 on Stack Overflow See other posts from Stack Overflow or by user1680411
Published on 2012-09-18T13:52:04Z Indexed on 2012/09/18 15:38 UTC
Read the original article Hit count: 184

Filed under:
|
|

I'm trying to compose and send an email which will include a signature at the bottom of my email content in android. I'm able to send an email but I'm not getting the way that allows me to add my own signature. Do you have any suggestion?

here's my code:

public void addListener() {
                final Button button = (Button) findViewById(R.id.button1);
                button.setOnClickListener(new View.OnClickListener() {
                        public void onClick(View v) {
                                findViewById = (TextView) findViewById(R.id.t1);
                                Intent i = new Intent(Intent.ACTION_SEND);
                                i.setType("text/plain");
                                i.putExtra(Intent.EXTRA_EMAIL,
                                                new String[] { "[email protected]"});
                                /*i.putExtra(Intent.EXTRA_CC,
                                                new String[] { "[email protected]" });*/
                                i.putExtra(Intent.EXTRA_SUBJECT, "Android Test");
                                i.putExtra(Intent.EXTRA_TEXT, "Body");
                                //i.putExtra(Intent.EXTRA_TEXT, "signature");
                                try {
                                        startActivity(Intent.createChooser(i, "Choose mail app..."));
                                } catch (android.content.ActivityNotFoundException ex) {                                       
                                }

                        }
                });
        }

© Stack Overflow or respective owner

Related posts about android

Related posts about email