Skip to content Skip to sidebar Skip to footer

How To Successfully Add Account To Android E-mail Database?

I am trying to add an account to E-mail database ,Below is the way i'm trying ... Account account = new Account(mContext); account.setDescription('acc added thr prog'); account.se

Solution 1:

    account.setSenderUri(mContext, "smtp+ssl+://UserName%40gmail.com:Password@smtp.gmail.com");
    mAccount.setStoreUri(mContext, "imap+ssl+://UserName%40gmail.com:Password@imap.gmail.com");

These are two important fields that you need add along with the above fields. These Uri's provides a way for your account to connect to internet.

This configuration is for POP3 type of account . If you know similar config for "Exchange account" please inform me , i am waiting for your reply .

Kinds & Regards Santhosh Kumar H.E

Post a Comment for "How To Successfully Add Account To Android E-mail Database?"