This is one exemple whitch give me all time some error  . Also this
code is simular on the codeprojet.

I ast some help for to solve this problem. Problem of Firewall! or
other! I dont know

package org.me.xmlrpc.org;

import java.util.Vector;

import org.me.xmlrpc.R;
import org.xmlrpc.android.XMLRPCClient;
import org.xmlrpc.android.XMLRPCException;

import android.app.Activity;
import android.content.Context;
import android.os.Bundle;
import android.util.Log;
import android.widget.TextView;

public class xmlrpc extends Activity {
    /** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        //setContentView(R.layout.main);
        TextView tv;

        XMLRPCClient client = new XMLRPCClient("http://foo.bar.com";);
     // add 2 to 4
     try {
                int sum = (Integer) client.call("add", 2, 4);

     // check whether x is inside range 4..10
     boolean isInside = (Boolean) client.call("isInside", 6, 4, 10);
     // capitalize string
     String capitalized = (String) client.call("capitalize", "to be or
not to be");
     tv= new TextView(this);
         tv.setText("Sumfffffff"+sum);
         setContentView(tv);

     } catch (XMLRPCException e) {
         tv= new TextView(this);
                 tv.setText("----------------Error-------------"+e.toString());
                 setContentView(tv);

        }

    }


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to