java code to receive GCM push notification and save them in SQLite DB on android phone
<p>I am a beginner in PHP, JAVA and GCM Service.</p>

<p>I built an app that has two parts:</p>

<p>1)PHP Server side </p>

<p>2)Java android client side</p>

<p>I set the GCM and registered the phone and I got an ID.</p>

<p>I set the server to sent Data to GCM server successfully. </p>

<p>My question is:</p>

<p>what is the Java code I have to write to receive the push notification from the GCM server and save it on the SQLite DB i built in the android app?</p>

<p>Thanks in advance!</p>
