studiejamil
Lurker
Hello developers,
I'm a student learning how to implement the Google Cloud Messaging mechanism for sending push notification using XMPP/JSON.
I'm trying to implement the 3rd party example (SmackCcsClient.java) server which pushes and receives messages to the Google Cloud Connection servers. There is an official example available on the following site:
(scroll to chapter "Java sample using the Smack library"):
https://developer.android.com/google/gcm/ccs.html
I've downloaded all required smack and json libraries and i'm trying to compile this code on a Linux server but i get one error which I can't solve:
SmackCssClient.java:55: error: cannot find symbol
String json = parser.nextText();
symbol: method nextText()
location: variable parser of type XmlPullParser
Any ideas?
I'm a student learning how to implement the Google Cloud Messaging mechanism for sending push notification using XMPP/JSON.
I'm trying to implement the 3rd party example (SmackCcsClient.java) server which pushes and receives messages to the Google Cloud Connection servers. There is an official example available on the following site:
(scroll to chapter "Java sample using the Smack library"):
https://developer.android.com/google/gcm/ccs.html
I've downloaded all required smack and json libraries and i'm trying to compile this code on a Linux server but i get one error which I can't solve:
SmackCssClient.java:55: error: cannot find symbol
String json = parser.nextText();
symbol: method nextText()
location: variable parser of type XmlPullParser
Any ideas?