[android-developers] Google Cloud Messaging (GCM) : Server URL Details
Hi, Please confirm on GCM server details to test the push notification of messages from the remote server. As per developer documentation tried the below URL and not getting the pushed message on to the device. But the device has been registered with the GCM register method and message also been sent to the GCM cloud server from a remote server, and it returns the message id back for the post message. GCM URL: https://android.googleapis.com/gcm/send also tried for the below server url: SERVER = 'gcm.googleapis.com' PORT = 5235 Please confirm on the URL -- -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en --- You received this message because you are subscribed to the Google Groups "Android Developers" group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
[android-developers] org.xmlpull.v1.XmlPullParserException: expected: END_TAG
Hi, This is regarding consuming PHP based webservice using ksoap2 in android platform(version 2.3.1). The exception occurs when at line androidHttpTransport.call(SOAP_ACTION, envelope); as per below code. Please could you help on this issue regarding the exception. Below is the code snippet which consumes the SOAP Webservice using ksoap2 api: private ArrayList getCategoryNameService() { ArrayList indexstring = new ArrayList(); String SOAP_ACTION = "http://service/xsd/getCategoryNames";; String METHOD_NAME = "getCategoryNames"; //String NAMESPACE = "urn:mretail"; //String NAMESPACE = "http://service";; String NAMESPACE = "http://service/xsd";; // String URL = // "http://20.201.140.126:8080/RetailAppPrj/services/RetailService? wsdl"; String URL = "http://innovation.in.csc.com/mobile/RetailAppPrj/ mretail_server.php"; arrayListPrice = new ArrayList(); try { SoapObject request = new SoapObject(NAMESPACE, METHOD_NAME); SoapSerializationEnvelope envelope = new SoapSerializationEnvelope( SoapEnvelope.VER11); envelope.dotNet = true; /* * envelope.encodingStyle=SoapEnvelope.ENC; * envelope.setAddAdornments(false); envelope.implicitTypes=false; */ envelope.setOutputSoapObject(request); HttpTransportSE androidHttpTransport = new HttpTransportSE(URL); androidHttpTransport.debug = true; try { System.out.println("calling the wserv."); System.out.println("Soap action name: "+ SOAP_ACTION); androidHttpTransport.call(SOAP_ACTION, envelope); //SoapObject soapObject = (SoapObject) envelope.bodyIn; SoapObject soapObject = (SoapObject) envelope.getResponse(); if (soapObject != null) { for (int i = 0; i < soapObject.getPropertyCount(); i++) { indexstring.add(soapObject.getProperty(i).toString()); } } } catch (XmlPullParserException exception) { exception.printStackTrace(); System.out.println("The xml parser Errors are " + exception.toString()); } catch (NullPointerException exception) { System.out.println("The null pointer Errors are " + exception.toString()); } } catch (Exception e) { } return indexstring; } Below is the wsdl file content: Please Type your service description here http://service/xsd";>http://innovation.in.csc.com/mobile/RetailAppPrj/ mretail_server.php"/>http://innovation.in.csc.com/mobile/RetailAppPrj/ mretail_server.php"/> Getting following exception 03-27 21:13:10.960: W/System.err(1507): org.xmlpull.v1.XmlPullParserException: expected: END_TAG {http:// schemas.xmlsoap.org/soap/envelope/}Body (position:END_TAG @2:246 in java.io.InputStreamReader@405457d8) 03-27 21:13:10.991: W/System.err(1507): at org.kxml2.io.KXmlParser.exception(KXmlParser.java:273) 03-27 21:13:11.000: W/System.err(1507): at org.kxml2.io.KXmlParser.require(KXmlParser.java:1424) 03-27 21:13:11.000: W/System.err(1507): at org.ksoap2.SoapEnvelope.parse(SoapEnvelope.java:138) 03-27 21:13:11.000: W/System.err(1507): at org.ksoap2.transport.Transport.parseResponse(Transport.java:63) 03-27 21:13:11.180: W/System.err(1507): at org.ksoap2.transport.HttpTransportSE.call(HttpTransportSE.java:100) 03-27 21:13:11.180: W/System.err(1507): at com.android.csc.mretail.MRetailActivity.getCategoryNameService(MRetailActivity.java: 1047) 03-27 21:13:11.281: W/System.err(1507): at com.android.csc.mretail.MRetailActivity.onCreate(MRetailActivity.java: 125) 03-27 21:13:11.281: W/System.err(1507): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java: 1047) 03-27 21:13:11.281: W/System.err(1507): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java: 1586) 03-27 21:13:11.413: W/System.err(1507): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java: 1638) 03-27 21:13:11.413: W/System.err(1507): at android.app.Activi
[android-developers] Problem in Accessing 2.9 MB Database from Apps
Hii All, I am Having 2.9 MB Database given by client. I know that Android don't Support data more than 1.1 MB So I Spilt DB into 3 Parts of 1.1 MB . Now when I am going to Read these Database from my Apps then it is Saying that "Database Malformed" and the Desired tables are not shown there.So if Anyone has done work on this issue then please let me know.Any suggestions will be AppreciatedAnd if there is some other way, then please suggest me.Thanks Regards: Jeet -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en