i want my android app to communicate with google app engine, to be precise I want to be able to "use" appengine as a rest server. I want on the client side the get, set, update and delete methods, and on appengine i want to be able to handle those, and manage a database saved on google servers.
I don't think I'm asking to much, but online I cannot find a guide that explains how to do that in a clear way, some of you can help me? I know nothing about network and stuff, so be clear^^
If this isn't clear enough - Really can't do much.
https://cloud.google.com/developers/articles/how-to-build-mobile-app-with-app-engine-backend-tutorial
Below links provides even easier way to accomplish appengine implementation.
http://rominirani.com/2014/01/10/google-cloud-endpoints-tutorial-part-1/
Related
I’m hoping this question hasn’t been asked before or that it isn’t too basic, but if it has please let me know and I will delete this question!
I have experience programming in Java but I am fairly new to programming for Android Applications (specifically on Eclipse). I’m trying to help a friend out with his business (which will inadvertently be my first Android app!). All that he wants me to do is develop an application where there will be a daily update with an inspirational image and quote. I’m sure it’s something that is extremely simple, but I’m unsure on how to provide continual updates to an application. Would I put it on a server? Can I upload it to some website (Google Drive, image sharing website, etc.) and somehow tell the app to continually grab the newest one? And then save old images and text onto the phone so they can access it anytime in the future?
If you could point me to source code that I could manipulate that would excellent! I learn best when I can alter existing syntax to see effects. I appreciate the help and hope to hear from you soon!
Would you suggest this to be a good example for me to look off of: http://developer.android.com/samples/BasicSyncAdapter/index.html
This isn't an update to the application itself, just sending new content to it. A trivial REST service calling to an HTTP server can send the information. The Spring Android RestTemplate or other similar client-side libraries make consuming REST services easy, and Spring MVC, Jersey, and dozens of other frameworks for Java and other languages can implement the entire server side of this in a few classes.
I am working with some friends on an android application and we want to use data store on google app engine.
Can anyone help me find a tutorial on how to create a connection between the android app and the data store, I couldn't find a good one myself.
Thanks.
I suggest you look at a few, quite recent Google services:
Endpoints will help you create an interface between your server code and your client, including generating a client library and doing OATH2 authentication.
Volley is an Android library that makes it easy to perform the requests to the server. (There are a number of 3rd party alternatives to Volley that are also good.)
Mobile Starter Kit is a simple way to get started, doing everything from the client initially, but with the ability to customize the server later.
Take a look at this Google blog post from a few days ago:
http://googlecloudplatform.blogspot.ca/2013/11/connecting-mobile-developers-to-the-cloud-with-google-cloud-endpoints.html
Those are good starting points, but don't assume you should use the recommended Google services. Endpoints for example, will lock you into GAE and it doesn't sound like you need the multi-platform support it offers. You could just create a REST/JSON servlet using one of many libraries.
I reccomand DropBox API.
It is not what you asked, but I guess you didnt start using the Google API because you are looking for a tutorial..
DropBox API has a lot of info and tutorials and it's kinda easy to handle..
I'd like to know if someone can guide me in this aspect, as everything I know is that Datanucleus REST API may help into making the contents of my local Google App Engine datastore and the online one the same, but there might be also another way to do that which is easier, as I'm having great difficulties to understand how could might be done via that API. Application has been done in Java so there's no point in trying to develop it into phyton know, it's way too late for that now.
Thanks a lot for your interest.
Edit: Well I actually found some interesting tools here: http://www.appwrench.onpositive.com, but it would be better for my application if I could done by code as it would need to be executed automatically once a day, so if you know of some not too hard way to achieve what I'm telling I'll be grateful if you tell me so, if not I'll just stick with the tools.
I don't know DataNucleus, but you can connect GAE Datastore from local machines using Remote API
you can use Remote API to access a production datastore from an app
running on your local machine. You can also use Remote API to access
the datastore of one App Engine app from a different App Engine app.
With this, you can code an app to synchronize the data
I am trying to connect to twitter, because i am trying to write an app (for the android platfrom) that updates your twitter status. the problem i have is with Oath. I have both Jtwitter and Signpost.
how do i get these below?
JTWITTER_OAUTH_KEY ,JTWITTER_OAUTH_SECRET
I read that you have to register your application. Mine is just a testing application as I am messing around with android right now. Do i still have to register my app?
In "https://dev.twitter.com/apps/create" they are asking me for an "Application Website:"
which I dont have. do i need to have a website to register my application?
is there any easier way to connect to twitter? without oath?
thx!
You have to register your application with Twitter here to get your key and secret. You don't have to provide a real website if you're just testing. Make sure you provide real information when you release your application.
I also recommend sticking with OAuth, it's worth it and shouldn't be too complicated to work with. I personally use twitter4j for integration with android which you can find more info on here. I'm sure JTwitter is also fine but I cannot comment on it since I never tried it.
Once you get your key and secret, it should be pretty straightforward. If you require further assistance, there are plenty of tutorials you can find around to help you.
Ryan
You really should register on dev.twitter.com for your own oauth key & secret. You can use the String constants Twitter.JTWITTER_OAUTH_KEY and Twitter.JTWITTER_OAUTH_SECRET to access Twitter via the JTwitter account. This is fine for a bit of experimenting, but nothing more: About once a year, someone will abuse this freedom, at which point we change the oauth keys.
I have recently tried to move a visualization project, developed in javascript to GWT, hoping to get better structure and optimised code. As a part of the transfer we also wanted to go from google spreadsheet to fusion tables as our data storage.
I haven't been able to find a good tutorial that supports GWT's web applications or I might just not been able to implement them correctly. I have tried to implement e.g. Hello World and gwt-gdata, with errors as soon as I use any library.
Can anyone please tell me if this is possible, if there is any way to send requests to the Fusion Tables using GWT?
Thank you!