3. And the results are often a stunning improvement compared to the basic built-in camera. 4.
A new application that is currently not available on the official Android Market and that. 18.
I need your kind help, please!
A:
Below is my solution. I need your advice.
public void getimage(Bitmap imagebitmap, int progress) {
HttpGet httppost = new HttpGet("");
// Creating a new HttpClient and Posting Request
HttpClient httpclient = new DefaultHttpClient();
HttpPost httppost = new HttpPost("");
httppost.setEntity(new UrlEncodedFormEntity(nameValuePairs));
HttpResponse response = httpclient.execute(httppost);
// writing response to a file
File folder = Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_PICTURES);
File dll = new File(folder,"temp.jpg");
if(dll.exists())
{
dll.delete();
}
FileOutputStream fOut = new FileOutputStream(folder);
imagebitmap.compress(Bitmap.CompressFormat.JPEG, 100, fOut);
fOut.flush();
fOut.close();
// icon.setImageBitmap(imagebitmap);
//response.getEntity().getContent().writeTo(outputstream);
imagebitmap.recycle();
// response.get be359ba680
Related links:
Comments