My android application need to communicate with the gmail server to receive emails from other gmail accounts so that i can show the e-mails in my android application..
Can anybody suggest me a API or Docs or tutorial to accomplish this....
Thanks in advance.....
Regards,
HONY
You most probably want to interface with a IMAP or a POP mail server. Just lookup on Google. I'm sure that there are already libraries for Java (maybe also for Android) avaiable.
This SO question discuesses how to connect to a Gmail server in a desktop java application, but I think you can port it also to android.
Related
Is there any mail sending api/service for android applications apart from Java mail API?
Right now I am using javamail API and after testing it I thought its working fine but actually its getting blocked when used from some other network despite of allowing access for less secured apps in Gmail setting of that particular account.
I don't mind even if some paid service is available for few bucks.
This is not required for bulk mails. Required for functionality like feedback of app.(I don't want to use firebase and all because there is no mechanism for login in my app)
Thanks
It's a bad idea to embed mail server credentials in your app, it's too easy to abuse them. Better to create a web service to accept the feedback and then use JavaMail on the server to send it, if you still even need email. You can limit the functionality of the web service to make it harder to abuse.
I am creating an app for android device and I was wondering if it is possible to connect my app with an e-mail account and have notifications every time the (let's say the gmail account) receives a new mail, and display the message in a new activity. I have researched a lot but I have not found something really useful.
Can anyone give me a clue on how to do it or even where to look for?
Yes. It is possible. You have to create an email client.
Here are some good email clients
You need to use the email client API for that. Here is Gmail API, you can find more my googling.
I am trying to make an application which will basically be the same as the stock email app. To allow me to log into an email account using IMAP and SMTP. I have been trying to understand the protocols and how to interface them with an app, but am at a loss. Can anyone possibly guide me to a solution or a direct download for the source of the stock app?
we have an application that need to interact with mail.
For that, our customer want us to :
- Retrieve the Activesync parameters the user have entered on the general parameters of the phone.
- Send the mail in a silent way using these activesync parameters.
- Be able to read and parse a possible reply to the mail on the Exchange server.
I know that it may cause severe security issue (retrieve a private password from an application is not a good practice..), but i can't find any clue on the sdk to communicate and send mail via activesync.
If anyone have some informations, i would be glad to hear about it.
Thanks a lot
Antoine
So, you want to send the email without any user intervention (in the background)?
Check out this article:
http://jondev.net/articles/Sending_Emails_without_User_Intervention_(no_Intents)_in_Android
I was wondering how to get the email from the owner of the phone or from the gmail account used on the phone.
I am trying to do this on android 1.6 and up.
I know its possible because I have seen some apps that get the email.
Maybe its undocumented or it reads it from a undocumented provider or some authentication service, but I know its possible.
Can anybody help me on this?
Thanks
Daniel
To retrieve information from another application you would use it's content provider.
The problem with what you want to do is that the gmail application is closed source and does not have documentation like the rest of the open source SDK. You could hack a solution together using undocumented providers like you said, but updates to the gmail application may break your code.
Either create your own email application using POP3 or IMAP and integrate with that, or think of a different way to do what you're looking to accomplish.