I get this error on my Android emulator:
Sorry The application has stopped unexpectedly. Please try again. [Force Close]
I think the code that is creating the error is this: HttpClient client = new HttpClient();
I have imported the following from JARS:
import org.apache.commons.httpclient.HttpClient;
import org.apache.commons.httpclient.HttpStatus;
import org.apache.commons.httpclient.methods.PostMethod;
Any idea? Is there a way to get more details on what the error is? The message described above isn't very helpful...
Stacktrace:
I've looked at this and I think this is the problem. (it was too long to post all on here..)
E/dalvikvm( 757): Could not find class 'org.apache.commons.httpclient.HttpClient', referenced from method com.projectNoble.androidClient.serverComms.initCommunication
W/dalvikvm( 757): VFY: unable to resolve new-instance 46 (Lorg/apache/commons/httpclient/HttpClient;) in Lcom/projectNoble/androidClient/serverComms;
W/dalvikvm( 757): VFY: rejecting opcode 0x22 at 0x0000
W/dalvikvm( 757): VFY: rejected Lcom/projectNoble/androidClient/serverComms;.initCommunication ()Ljava/lang/String;
W/dalvikvm( 757): Verifier rejected class Lcom/projectNoble/androidClient/serverComms;
D/AndroidRuntime( 757): Shutting down VM
Source Code
Can be found at bottom of this page: http://hc.apache.org/httpclient-3.x/tutorial.html