HI This errors iam getting in log cat
06-24 15:05:51.610: ERROR/AndroidRuntime(472): Uncaught handler: thread main exiting due to uncaught exception 06-24 15:05:51.774: ERROR/AndroidRuntime(472): android.content.ActivityNotFoundException: Unable to find explicit activity class {com.dci.isizzle/com.dci.isizzle.WebServices}; have you declared this activity in your AndroidManifest.xml? 06-24 15:05:51.774: ERROR/AndroidRuntime(472): at android.app.Instrumentation.checkStartActivityResult(Instrumentation.java:1467) 06-24 15:05:51.774: ERROR/AndroidRuntime(472): at android.app.Instrumentation.execStartActivity(Instrumentation.java:1441) 06-24 15:05:51.774: ERROR/AndroidRuntime(472): at android.app.Activity.startActivityForResult(Activity.java:2526) 06-24 15:05:51.774: ERROR/AndroidRuntime(472): at android.app.Activity.startActivity(Activity.java:2570) 06-24 15:05:51.774: ERROR/AndroidRuntime(472): at com.dci.isizzle.Splash$1.run(Splash.java:32) 06-24 15:05:51.774: ERROR/AndroidRuntime(472): at android.os.Handler.handleCallback(Handler.java:542) 06-24 15:05:51.774: ERROR/AndroidRuntime(472): at android.os.Handler.dispatchMessage(Handler.java:86) 06-24 15:05:51.774: ERROR/AndroidRuntime(472): at android.os.Looper.loop(Looper.java:123) 06-24 15:05:51.774: ERROR/AndroidRuntime(472): at android.app.ActivityThread.main(ActivityThread.java:3739) 06-24 15:05:51.774: ERROR/AndroidRuntime(472): at java.lang.reflect.Method.invokeNative(Native Method) 06-24 15:05:51.774: ERROR/AndroidRuntime(472): at java.lang.reflect.Method.invoke(Method.java:515) 06-24 15:05:51.774: ERROR/AndroidRuntime(472): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:739) 06-24 15:05:51.774: ERROR/AndroidRuntime(472): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:497) 06-24 15:05:51.774: ERROR/AndroidRuntime(472): at dalvik.system.NativeStart.main(Native Method) On Tue, Jun 23, 2009 at 5:42 PM, Desu Vinod Kumar <vinny.s...@gmail.com>wrote: > Hi > > Yes absolutly correct that cmdcalculate button invoking webservices when i > press that button it is quitting > > i am not getting how to solve > this > > > > On Tue, Jun 23, 2009 at 4:51 PM, Urs Grob <grob....@gmail.com> wrote: > >> >> Ok ..counting by hand I think this is the 31st line: >> findViewById(R.id.cmdCalculate).setOnClickListener(new OnClickListener() { >> >> So I guess findViewById(R.id.cmdCalculate) returns null. >> >> Is there a definition for cmdCalculate in your main layout? (if there >> is, there's maybe a typo?) >> >> -- Urs >> >> On Tue, Jun 23, 2009 at 1:15 PM, Desu Vinod Kumar<vinny.s...@gmail.com> >> wrote: >> > Hi >> > >> > thanks for giving response >> > >> > How to clear that i am not getting this is my code >> > >> > package org.tuxpan; >> > >> > import org.ksoap2.SoapEnvelope; >> > import org.ksoap2.serialization.SoapObject; >> > import org.ksoap2.serialization.SoapSerializationEnvelope; >> > import org.ksoap2.transport.AndroidHttpTransport; >> > >> > import android.app.Activity; >> > import android.view.View; >> > import android.os.Bundle; >> > import android.view.View.OnClickListener; >> > import android.widget.EditText; >> > import android.widget.TextView; >> > >> > >> > >> > public class Adder extends Activity >> > { >> > private static final String SOAP_ACTION = "AddIntegers"; >> > private static final String METHOD_NAME = "AddIntegers"; >> > private static final String NAMESPACE = "http://services.o2"; >> > private static final String URL = >> > "http://wiki.tuxpan.com:8069/axis2/services/Simple"; >> > >> > /** Called when the activity is first created. */ >> > @Override >> > public void onCreate(Bundle icicle) >> > { >> > super.onCreate(icicle); >> > >> > setContentView(R.layout.main); >> > findViewById(R.id.cmdCalculate).setOnClickListener(new >> > OnClickListener() { >> > public void onClick(View view) >> > { >> > ((TextView)findViewById(R.id.lblStatus)).setText("... >> > Invoking Web Service ..."); >> > String stA = >> > ((EditText)findViewById(R.id.numberA)).getText().toString(); >> > String stB = >> > ((EditText)findViewById(R.id.numberB)).getText().toString(); >> > Integer a = null; >> > Integer b = null; >> > try { >> > a = Integer.valueOf(stA); >> > b = Integer.valueOf(stB); >> > } catch(Exception e1) { >> > } >> > if (a == null || b == null) { >> > >> ((TextView)findViewById(R.id.lblStatus)).setText("Only >> > Integer numbers please..."); >> > } >> > SoapObject request = new SoapObject(NAMESPACE, >> METHOD_NAME); >> > SoapObject inAddIntegers = new SoapObject(NAMESPACE, >> > "InAddIntegers"); >> > inAddIntegers.addProperty("a", a); >> > inAddIntegers.addProperty("b", b); >> > request.addProperty("InAddIntegers", inAddIntegers); >> > SoapSerializationEnvelope envelope = new >> > SoapSerializationEnvelope(SoapEnvelope.VER11); >> > envelope.setOutputSoapObject(request); >> > AndroidHttpTransport androidHttpTransport = new >> > AndroidHttpTransport (URL); >> > try { >> > androidHttpTransport.call(SOAP_ACTION, envelope); >> > Object result = envelope.getResponse(); >> > >> > ((TextView)findViewById(R.id.lblStatus)).setText(result.toString()); >> > } catch(Exception E) { >> > >> > ((TextView)findViewById(R.id.lblStatus)).setText("ERROR:" + >> > E.getClass().getName() + ": " + E.getMessage()); >> > } >> > } >> > }); >> > } >> > } >> > >> > On Tue, Jun 23, 2009 at 4:42 PM, Urs Grob <grob....@gmail.com> wrote: >> >> >> >> There's a NullPointerException on line 31 in org.tuxpan.Adder ... in >> >> the method onCreate. That's the cause for the RuntimeException being >> >> thrown. >> >> >> >> -- Urs >> >> >> >> On Tue, Jun 23, 2009 at 12:54 PM, Desu Vinod Kumar< >> vinny.s...@gmail.com> >> >> wrote: >> >> > >> >> > >> >> > On Tue, Jun 23, 2009 at 4:23 PM, android.vinny <vinny.s...@gmail.com >> > >> >> > wrote: >> >> >> >> >> >> HI everyone go through the attachment i have enclosed as attachment >> i >> >> >> have captured the error what i git i need solution for this >> >> >> >> >> >> >> >> >> Thanks in advance >> >> >> >> >> > >> >> > >> >> > >> >> > -- >> >> > Regards >> >> > ------------------- >> >> > Desu Vinod Kumar >> >> > vinny.s...@gmail.com >> >> > 09916009493 >> >> > >> >> > > >> >> > >> >> >> >> >> > >> > >> > >> > -- >> > Regards >> > ------------------- >> > Desu Vinod Kumar >> > vinny.s...@gmail.com >> > 09916009493 >> > >> > > >> > >> >> >> >> > > > -- > Regards > ------------------- > Desu Vinod Kumar > vinny.s...@gmail.com > 09916009493 > -- Regards ------------------- Desu Vinod Kumar vinny.s...@gmail.com 09916009493 --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---