Email client

Problems with WiFi, SQLite ,Bluetooth, WiMax, Proxies, etc...

Email client

Postby jonneymendoza » Mon Nov 09, 2009 12:03 pm

Hi, i am wondering how its possible to recieve incoming emails on an android device.

i can send out emails using private void sendEmail(String[] address, String subject, String msg) {
Intent send = new Intent(Intent.ACTION_SEND);
send.putExtra(Intent.EXTRA_EMAIL, address);
send.putExtra(Intent.EXTRA_SUBJECT, subject);
send.putExtra(Intent.EXTRA_TEXT, msg);
send.setType("text/plain");
startActivity(Intent.createChooser(send, "MySendMail"));
}


But i cant seem find a way to actually receive incoming new emails or even read emails stored in a n inbox? the only inbox i have seen is the ones for SMS but nothing for emails
jonneymendoza
Developer
Developer
 
Posts: 36
Joined: Fri Sep 04, 2009 10:30 am

Top

Postby jonneymendoza » Mon Nov 09, 2009 5:38 pm

Anyone?

Not only for Emails but for SMS messages too. At first i thought i found a way using the SMS_RECIEVED intent but i during further investigation, this intent doesnt exist in the actual android SDK?

Surely there is a way to listen out for new incoming SMS and emails? Thanks in advance.
jonneymendoza
Developer
Developer
 
Posts: 36
Joined: Fri Sep 04, 2009 10:30 am

SMS manager

Postby brownie » Mon Nov 09, 2009 10:53 pm

Hi,

look at the smsmanager class. it provides api to send sms.

if you want to monitor incoming, create a broadcast receiver for
"android.provider.Telephony.SMS_RECEIVED" intent.

good luck,
brownie
brownie
Freshman
Freshman
 
Posts: 3
Joined: Mon Nov 09, 2009 10:36 pm

Postby jonneymendoza » Tue Nov 10, 2009 4:28 pm

Thanks it worked! my next question is regarding emails. is there a EMAIL_RECEIVED intent?
jonneymendoza
Developer
Developer
 
Posts: 36
Joined: Fri Sep 04, 2009 10:30 am

Top

Return to Networking & Database Problems

Who is online

Users browsing this forum: No registered users and 3 guests