Biblioteca de Gmail (o POP3) para el desarrollo de Android [cerrado]

I'm looking for a library to access Gmail which can handle attachments. Can someone point me towards this please?

Muchas Gracias

preguntado el 09 de enero de 11 a las 00:01

there is a javax mail port for Android. For an example and references, read this other -

2 Respuestas

Gmail has an Oauth protocol for accessing IMAP and SMTP. You can read more about it here, including samples:

Respondido el 09 de enero de 11 a las 04:01

Thanks for that. Will give it a go. - govule

This link might be helpful.....

make changes in sendMail section for attachment..

    public synchronized void sendMail(String subject, String body, String sender, String recipients, File attachment) throws Exception {
    MimeMessage message = new MimeMessage(session);
    message.setSender(new InternetAddress(sender));
    message.setSubject(subject);MimeBodyPart mbp1 = new MimeBodyPart();

    MimeBodyPart mbp2 = new MimeBodyPart();
    FileDataSource fds = new FileDataSource(attachment);
    mbp2.setDataHandler(new DataHandler(fds));

    Multipart mp = new MimeMultipart();


    if (recipients.indexOf(',') > 0)
        message.setRecipients(Message.RecipientType.TO, InternetAddress.parse(recipients));
        message.setRecipient(Message.RecipientType.TO, new InternetAddress(recipients));
    }catch(Exception e){


Respondido el 08 de junio de 12 a las 15:06

No es la respuesta que estás buscando? Examinar otras preguntas etiquetadas or haz tu propia pregunta.