Yes, I have and Android app that writes on GAE via json. The idea is to use the PhoneGap framework to write an app available for Android, iOS and WP without write every app in its own language but just changing some configuration files and using javascript and css. So I have to write this new app with its several configurations file and then I can choise a method (rhino, or json+servlet+xhr, or your linked example) to communicate with datastore. Is it right?
2013/4/9 Maria Carmela Vitelli <[email protected]> > Thanks Wolfram, I'll try! > > > 2013/4/9 Vinny P <[email protected]> > >> >> On Monday, April 8, 2013 9:02:55 AM UTC-5, Mary wrote: >>> >>> So I have a java web application on GAE with a datastore. There is also >>> a mobile application for android that takes and writes data on the >>> datastore through json and servlet, and the data model is written in java >>> (there is a conversion of data and a synchronization with the datastore and >>> not a direct access from this app). Now I want to write a new application >>> with phonegap to have an android-ios-windows application, but now the data >>> model is completely in javascript. So I don't know how share datasore >>> between web and mobile application. >>> >>> >> To be clear, you already have an Android app that writes to GAE via >> JSON, and now you want to port it to iOS (Obj-C) and Windows Phone >> (VB.Net/C#)? Wolfram is correct, you shouldn't even need to write any code. >> The fact that the PhoneGap data model is Javascript is not a blocking >> issue, Javascript can write to JSON, and you can use cross domain >> requests/JSONP to transfer it to your web application. Here's some sample >> code to get you started: >> http://simonmacdonald.blogspot.com/2011/12/on-third-day-of-phonegapping-getting.html >> >> One last thing: Make sure your server is setting the >> Access-Control-Allow-Origin header to * (just an asterisk), otherwise XHR >> won't work. >> >> >> ----------------- >> -Vinny P >> Technology & Media Advisor >> Chicago, IL >> >> @GOV on AppDotNet: https://alpha.app.net/gov >> >> -- >> You received this message because you are subscribed to a topic in the >> Google Groups "Google App Engine" group. >> To unsubscribe from this topic, visit >> https://groups.google.com/d/topic/google-appengine/4HNuju25BGg/unsubscribe?hl=en >> . >> To unsubscribe from this group and all its topics, send an email to >> [email protected]. >> To post to this group, send email to [email protected]. >> Visit this group at http://groups.google.com/group/google-appengine?hl=en >> . >> For more options, visit https://groups.google.com/groups/opt_out. >> >> >> > > -- You received this message because you are subscribed to the Google Groups "Google App Engine" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/google-appengine?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
