How do I attach file(image, audio, text) in mail application of android
<p>I am trying to attach file in my mail app. but all time only body has been sent.I am using method:</p>

<pre><code> public void addAttachment(String path) throws Exception
    {
        BodyPart messageBodyPart = new MimeBodyPart();  
        DataSource dataSource = new FileDataSource(path);
        messageBodyPart.setDataHandler(new DataHandler(dataSource));
        messageBodyPart.setFileName(path);
        Multipart multipart = new MimeMultipart();
        multipart.addBodyPart(messageBodyPart);
    } 
</code></pre>

<p>I have used two jar file mail.jar, activation.jar. mail body is working fine. but attachment is not reached. please help me.<br>
Thanks in andvance.</p>
