Google Talk API integrations with Android app - java

I am checking out the google talk api's and it uses XMPP.
Here http://code.google.com/appengine/docs/java/xmpp/overview.html#Sending_Chat_Messages
I am reading on integrating it into my android app. Does anyone know of any good tutorials on using Google talk API with android?
Also does it require app-engine to be integrated?

All you need is XMPP on Android. You can then use GTalk as any other XMPP Server, but make sure to specify the full JID (e.g. "user#gmail.com") as login name.

Related

Android connecting to Java Server

I'm new in android studio I'd like to know how can I make requests to a server.
I wanted that in my Android App I sign up an account and my server stores all the users, something simple just to start. The next step that i want is like passing some strings or objects to other users.
How can I do that?
Is recommended to do my Server in Java/Python?
Thank you
I would suggest you first google your queries, since there are many such repositories on GitHub.
First Link when I searched Android CRUD was this
https://github.com/budasuyasa/simple-android-crud
As for Java or Python, all depends on your skill set, what I would recommend is using Spring boot for backend services but you can also use Flask to create Rest services in Python.
Have fun coding

Authentication of HTTP request from an Android App to A Google Cloud Engine App

I am planning to develop an Android app that will make HTTP request to a REST API (server app) that is hosted on Google App Engine. The data retrieve would be common and visible to all users of the app, so authentication at a user level doesn't not seem necessary. My concern is this, is it necessary for the server app to authenticate that the request is indeed from the intended Android app? If so, is this done internally by the libraries or do I need to implement it myself? Some reading materials on this topic would be very much helpful.
Going through the Google documentations have indicated that the use of a Service Account would seem appropriate, but it bothers me that I would then need to package the credentials along with the Android app, which some how seems to defeat the purpose of authenticating the request, since it's is relatively easy to retrieve the credentials from an apk.
Any guidance in terms of design would be greatly appreciated.
It seems that API Keys is the answer. API Keys can be selected to be limited to a certain Android App during creation.
Reference: https://cloud.google.com/endpoints/docs/frameworks/java/restricting-api-access-with-api-keys-frameworks

Google App Engine and Android?

I want to create to applications one written for Google App Engine (strictly Java) and the other an Android app. I want the android app to connect to the GAE server. Via what API will I get support for JAX-WS?
Google App Engine from what I've seen promotes the usage of RESTful architectural style and thus is a JAX-RS reference implementation which is pretty straightforward (annotations on WebService methods, parameters etc.)
Plus, some of the packages you need in order to marshal-unmarshal request and responses are not included
If you so insist on using JAX-WS I would suggest you take a look at this blog entry.
I would strongly advice you not to delve into a web service implementation with this approach, google app engine has already the endpoints API in order to deal with developers wanting just a backend to their apps.

App engine authentication

I am new to appengine. I will write application which consist of two parts.
1) Core written in app engine with REST interface for clients.
2) Client application written in J2EE on my other (not appengine) server. But here, client may use any other technology (android, swing etc.)
I dont know, how to handle authentication of users in this schema. I think that I am in the middle between standard login and installed applications.
The simplest solution that occured to me, that the client will request username+password, pass it to appengine application via https and it will authenticate.
But dont know how to synchronized the login with client app, because it will need also data from google applications...
Is there any solution or pre-prepared facility in Java how to handle this?
Thanks
You probably want to use OAuth for this; client login or using username+password is not a good way to do this, and informed users will be -- or SHOULD be -- hesitant to give away their passwords. There is a page for using OAuth within AppEngine applications written in Java which may be of use. There is also some support for Oauth in the GData client library for Java. The OAuth in the Google Data Protocol Client Libraries document may help you to understand how to use those features.

Store files to Google cloud from Android?

I want to store my SD card contents to Google docs (or any Google cloud service) and retrieve them from there via an Android device.
Can anyone tell me how to do that?
I guess the best place is to go here http://code.google.com/apis/documents/
You will find examples there on how to programmatically get access to Google Docs.
You can use http library available in Android for accomplishing cloud communication via Android. Android has the Apache http library in its runtime. So you can rely on that. I have written a cloud based app. Hope this little blog can help you
This might be more than you need, but real cloud storage at Google Storage for Developers can be easily and securely accessed using jetS3t (pronounced "jetset"). The icing is that jetset also is compatible with Amazon S3 cloud storage!

Categories