Thursday, August 16, 2012

Re: Eclipse (Android) -> Cloud SQL Server

Hi Marcelo,

You cannot connect directly to Cloud SQL -- you're going to need some "middleware" to expose a web service in App Engine.  You should take a look at the new AppEngine Cloud Endpoints --- it can even help you generate some Java wrapper code to work with your App Engine app.

Pseudo code in AppEngine (Just for an idea, don't actually do this exact code.....)

def get_widget(self, id):
  return conn.execute("select * from widgets where id=%d" % id)

On Wednesday, August 15, 2012 2:42:55 PM UTC-6, Marcelo wrote:
Hi,

I´m trying to make my eclipse APP Adroid talk to Cloud SQL Server. I did 4 steps below:

1-Create a Cloud SQL account - OK
2-Import the data and scheme to it  - OK
3-Create an AppEngine Application - OK
4-Allow the AppEngine app id access to the Cloud SQL- OK

BUT, here´s my problem:

5- "Create an application that android can access and talk to your cloud sql" - X

In step 5 "Create an application that android can access and talk to your cloud sql" i can´t find anything or any piece of code in developers or tutorial to help me to make the 2 sides talk. (Android (Eclipse) with Cloud SQL Server).

Can anyone help me? Another question is, Cloud SQL can only comunicate with an WebService? Can i make the comunication without WebService? Ca i do the code directly in eclipse withou webservice?



No comments:

Post a Comment