I’m trying to create an email application which is depending upon the same function of our android mobile’s default email application. How can I get that default email functions source code?
I think what you are looking for is K-9 mail. It looks like you’re in luck. it’s open source on github: https://github.com/k9mail/k-9
For sake of completeness, the source of the default Email application is available at
EDIT: Palaniraja suggests the following alternate link, however it does not support the source browsing capability of the discontinued original repository.
However, it will (or at least used to) require a fair amount of adaptation before it can be built with the SDK, as it was originally designed to be built with the platform build system before decisions about APIs available under the SDK were finalized. Unless that has changed, you may be better off working with some other codebase that someone has already adapted for SDK use.
maybe this will help you: http://java.sun.com/developer/onlineTraining/JavaMail/contents.html
i’ve used that for my own gmail client app.