process closing unexeptedly in emulator

by aditya.kulkarni » Tue, 21 Apr 2009 01:37:32 GMT

Sponsored Links
 hi all,
i tried to write a SOAP application where a .net server is running a
method Add in local host and returns an integer value 2000
here is the code for android to connect to local server via SOAP
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.TextView;
import java.*;

import org.ksoap2.SoapEnvelope;
import org.ksoap2.serialization.SoapObject;
import org.ksoap2.serialization.SoapSerializationEnvelope;
import org.ksoap2.transport.HttpTransportSE;

     public class Test extends Activity {
          private Button okButton;

           private int a;
          private static final String SOAP_ACTION = "http://";
          private static final String METHOD_NAME = "Add";
          private static final String NAMESPACE = "http://";
          private static final String URL = " :8000/

         protected void onCreate(Bundle icicle) {

            okButton = (Button) findViewById(;
             okButton.setOnClickListener(new View.OnClickListener() {

                 public void onClick(View view) {
                  //   setResult(RESULT_OK);

                     a= mymethod();

             TextView tv=new TextView(this);

         public static int  mymethod() {
           SoapObject request = new SoapObject(NAMESPACE,

           SoapSerializationEnvelope envelope = new
           envelope.dotNet = true;
           HttpTransportSE androidHttpTransport = new HttpTransportSE
           int a=0;

           try {
      , envelope);
           } catch (Exception e) {
         return a;


when trying to run in emulator giving error as "PROCESS STOPPED
UNEXCEPTEDLY".....please tell me where is the mistake..... thank you
in advance..


Other Threads

1. Intent XML

I came across the method parseIntent:,%20org.xmlpull.v1.XmlPullParser,%20android.util.AttributeSet)

I would really like to use this method rather than baking my own. It
looks like I can pass XML from anywhere into this to create an intent.
However, I can't find any schema for this XML.

Does anyone know what the XML should look like? The documentation is
as vague as you can get.




2. Getting long/lat from locale

is it possible to get the longitude and latitude coordinates only if you
know the country? Is there any function which gives me the values if I pass
the current locale?
Christian Wiesbauer


3. Geocoder. getFromLocationName - no results [forwardGeocode(): no feature in GLocation]

4. Create a View dinamically-How to set its layout on the screen

5. How to make an application icon & its name invisible in menu list.

6. setText() of TextView does not update instantly

7. HELP!! the code will not compile and I can't find anybody with the same issue