After a quick Google and a little bit of reading there seems to be a serious lack of available Google Analytics API's for android.
One alternative is a paid Analytics tool from usermartix but since its not free it doesn't really help me for the example so I'm sticking with Google's own Analytics SDK for Android.
To keep things simple, we’ll use an in-memory Map datasource instead of a database. There are many tools out there to generate schema from xml such as Trang command and XMLBeans’s ints2xsd.
For our simple example, I personally like doing it by hand.
Installation instructions are available in the getting started section of the Google Mobile SDK docs.It requires knowledge of SOAP, xml schema, xml frameworks, and marshallers.Despite the learning curve, the reward is so rewarding.Contract first web service approach is an industry standard best practice when developing web services.
Honestly speaking, spring web services was a lot harder to learn that JAX-WS based frameworks.Here’s a good tutorial for writing xml schema by hand We’ll use this xml file later on the project setup.