Integrate GWT with Google Fusion Tables API - java

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!

Related

Android application Implement daily updates

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.

AppEngine and Android (REST)

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/

How to connect android app with data store on app-engine

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..

How do I make a simple web app with log-in?

I have been doing android programming for a while now but only as a hobby. I know the basics of java, and can say I have a solid understanding of PHP and MySQL (I once followed a tutorial that showed how to create a very basic content management system). I've been wanting to expand my knowledge beyond the simple android apps I've made and recently had an idea for an android app. In this app, the user would create a Username and password the first time it is ran. From then, the user can fill out a form. From what i know so far, the valuesof this form can be stored in a MySQL database. So basically every user needs to have their own set of variables stored (which are not a lot). As I been looking around, i think there are many ways to create a web app, and there are different frameworks for doing so. I read I can create a web app with log-in, using ASP.NET. Can this be done using java? I just need some general guidance. I want to make the web app standalone, and then focus on creating an app for android that uses it.
I think good platform for your kind of case is to use Google App Engine (GAE). It provides platform to do your web-service with Java (or python if you prefer). It is also free for low amounts of traffic (like your service) and they have really good tools to manage the site (check the database entries, usage statistics, etc.).
Google has written a good set of tutorials to build webservice with Java in GAE:
http://googcloudlabs.appspot.com/
AppEngine documentation main page:
http://code.google.com/intl/fi-FI/appengine/
Signup here:
https://appengine.google.com/
I think you may want to look at JavaServer Pages.

google charts and Java

I am very keen to use google charting (visualization api) in my project in which I am making a network monitoring tool. I want to make a client app which will connect server at a port and get statistics about the application. I want to display the statistics using charts.
I tried to read good docs, but its quite confusing, I tried some other websites but no solution. Can anyone provide any good source to learn how to use google charts to display live running data?
Hey , I think charts4j will help you . http://code.google.com/p/charts4j/ .
charts4j allows you to
programmatically generate charts from
within your Java code via a simple,
intuitive, and lightweight Java API.
Moreover, it hides the ugly details of
creating the URL parameters that are
necessary for communicating with the
Google Chart API.

Categories