new Thread(new Runnable() {
public void run() {
HttpClient client = new DefaultHttpClient();
HttpConnection
Don't add jar files like that..follow these steps
You should try this:
Remove
all references to the JAR
in your project from Java project -> properties -> Java build path -> libraries
Create a libs
folder if not exist at the root of your project Copy the JAR
into the libs folder.
If still not running OK. Right click your project > Android Tools > Fix Project Properties
clean your project and run. it will work