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. [help!] Can't mount /dev/block/mmcblk0p1 (or /dev/block/mmcblk0)

Hi all,

Milestone 1 (GSM) ku ada masalah nih,
sebelumnya kalau mau make Open Recovery ( bisa melalu
Android System Recovery ..
nah, skrg ini saya ada masalah, kalau mau pilih :

di ASR (Android System Recovery)
selalu keluar pesan

E:Can't open /cache/recovery/command

-- Install from sdcard...
Finding update package...
E:Can't mount /dev/block/mmcblk0p1 (or /dev/block/mmcblk0)
(No such file or directory)
E:Can't mount
Installatation aborted.

kira kira kenapa ya ini?
saya udah yakin letakkin file di

Note: saya sudah menggunakan 7 Sdcard berbeda..
mohon bantuannya..


2. back button for new canvas

Is there a code snippet for using the back button for a new paint
surface. I am using finger paint and after painting there is no way to
create a new paint.


3. App with usb connectivity

4. get IMEI in native code

5. Alarm Issue

6. android.view.windowLeaked

7. about application error