小编Ani*_*mar的帖子

如何在Listview中按字母顺序显示联系人

我有一个自定义列表视图,我需要以字母顺序显示联系人,你可以提供示例代码,我该如何实现这一目标?

android alphabetical

13
推荐指数
1
解决办法
2万
查看次数

org.xmlpull.v1.XmlPullParserException:意外类型(位置:END_DOCUMENT null@1:0 in java.io.InputStreamReader@c599f9fd)

我是黑莓的新手,我只是想调用一个在 SAP CRM 上执行一些操作的 Web 服务,但我收到此异常: org.xmlpull.v1.XmlPullParserException:意外类型(位置:END_DOCUMENT null@1:0 in java .io.InputStreamReader@c599f9fd)

这是代码...

   SoapObject rpc = new SoapObject(serviceNamespace,"zws_incoming_email");

   rpc.addProperty("username","sreenu");

   rpc.addProperty("Password","ravi");

   SoapSerializationEnvelope envelope = new SoapSerializationEnvelope(SoapEnvelope.VER11);
   envelope.bodyOut = rpc;

   envelope.dotNet = true;
   envelope.encodingStyle = SoapSerializationEnvelope.ENC;
   envelope.env = "http://schemas.xmlsoap.org/soap/envelope/";
   HttpTransport ht = new HttpTransport(serviceUrl);
 //s  ht.requestDump=msg;
   ht.debug = true;
   String request="";
   ht.setXmlVersionTag("<?xml version=\"1.0\" encoding=\"UTF-8\"?>"  ); 
   String response=ht.responseDump;
        try
            {  
            System.out.print("2222222");
            ht.call(soapAction,envelope);
            String result = (envelope.getResponse()).toString();
            System.out.println("in try block"+result);
            System.out.println("Request"+request);
            System.out.println("Response"+response);
            System.out.println("Result......"+result);  
             }        
        catch(org.xmlpull.v1.XmlPullParserException ex2){
            String msg2 = ex2.toString();
              request=ht.requestDump;
               response=ht.responseDump;
             System.out.println("Exception...... "+msg2);
              System.out.println("request...... …
Run Code Online (Sandbox Code Playgroud)

soap web-services blackberry

5
推荐指数
1
解决办法
6800
查看次数

标签 统计

alphabetical ×1

android ×1

blackberry ×1

soap ×1

web-services ×1