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?
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'm building a mashup app for Android Wear, using speech recognition so I can post to Fitbit's API. Single-purpose and pretty simple. I generated the OAuth 1.0 credentials with the excellent Temboo library and granted access in a desktop browser, then naively hard-coded those keys and tokens into my app and let Temboo take care of the HTTP requests and API calls to Fitbit.
I've gotten errors from Fitbit stating that my requests are being refused by Temboo's server because of invalid OAuth signature (Fitbit uses OAuth 1.0). I've come to the realization that I probably need to have the user grant access on the wearable app itself. I'll need to launch the mobile browser and pass it the authorization URL from Temboo in a WebView, then have the user grant access, and then pass this approved data back to the watch.
Is there a pattern for doing this in order to allow access to third-party web service APIs already? I've not seen documentation on it so far. Does anyone have a tip on how the authorization process would flow for a wearable watch app?
Thanks much!
There is no web browser or direct internet connection on Android Wear devices - all web connections must be done on the phone part of your app and then forwarded to your Wearable app via the various Data Layer API methods - using messages is an easy way to send information in a lightweight, time sensitive manner.
Therefore your phone app should do all of the OAuth dance as part of an initial setup.
my new task is to implement Voice/Video chat native application in Android. I browsed net for the same and it was written that using Android "SIP" API we can do it. I gone through the documents about SIP.In Implementing using SIP we required SIP address for each user which will be provided by different SIP providers. I also checked the SipDemo sample app provided in samples.
Problem is my app will be used by many Users and they can chat with any others.
So, how can we generate SIP address for each user dynamically and establish communication session ?
or each there any other way of doing this ?
Please Help
If you want to test your android app you can generate a free sip account from AntiSip.
and for generating sip account dynamically you have to configure sip on your server with the help of Asterisk:
Two VoIP software can contact each other directly by using direct SIP URI like username#IP:port.
This can work fine on local networks where the UA (sip user agent) has fix address. Otherwise you will need to use a SIP server (This is the main role of a SIP registrar server: to keep a track of the user locations). There are plenty open source software for this like the above mentioned Asterisk but you can also find a lot of services offering free calls (free from softphone to softphone; they charge only if you wish to make outbound calls to landline or mobile numbers).
I was wondering how can you link the fields of a website with an app. Like I have a college attendance website where we all check our attendance and then a student made an app on android where we login by entering the student id and password. So how was the person able to send info from the app to the website and get the information?? Thanks in advance! The website is www.websismit.Manipal.edu.
See you there are some ways as follows:-
you can make an android app having single activity with webview and
open your site inside the webview. you can also use html 5 and jquery mobile for that.
you can make an native application and using web-services you can
get/set the parameter result.
In thin client mobile applications, we generally deal with lot of data exchange between server and mobile app. Mobile app is nothing but a client. So in order to get/post data from server you have to write APIs.
Now writing restful API is your choice you can use any on the available language.
I believe your website is up already so just search and you can easily get ways to expose RESTful APIs.
There are different ways to identify client request, for that you should use Access Token to identify the clientID/UserID or whatever id you are maintaining.
For consuming API from android, you can refer to this tutorial.
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.