I need to make app that take photo, place photo in image view and when I click button to upload to web API service.
My problem is when I try upload photo, I have next error in code.
public void makeHTTPCall() {
prgDialog.setMessage("Invoking php");
StringEntity se = null;
try{
se = new StringEntity(params.toString());
se.setContentType("application/json");
}
catch (UnsupportedEncodingException e){
e.printStackTrace();
return;
}
se.setContentType(new BasicHeader(HTTP.CONTENT_TYPE, "application/json"));
AsyncHttpClient image = new AsyncHttpClient();
image.post(uploadURL, se, new AsyncHttpResponseHandler()

This is my error. And my imports
import com.loopj.android.http.AsyncHttpClient;
import com.loopj.android.http.AsyncHttpResponseHandler;
import com.loopj.android.http.RequestParams;
import org.apache.http.Header;
import org.apache.http.HttpEntity;
import org.apache.http.HttpResponse;
import org.apache.http.HttpStatus;
import org.apache.http.client.methods.HttpGet;
import org.apache.http.entity.StringEntity;
import org.apache.http.impl.client.DefaultHttpClient;
import org.apache.http.message.BasicHeader;
import org.apache.http.protocol.HTTP;
As u can i see, I have imported .RequestParams and .StringEntity
And when I run app I have this:

Any idea what to do ?