Note that there are some explanatory texts on larger screens.

plurals
  1. POImage of imageview not remove?
    text
    copied!<p>I have an ImageView after getting id from xml.as on ImageView we set clicklistener which open gallery and camera opetion you can set image from camera as well gallery ain #2</p> <pre><code> profileimage = (ImageView) findViewById(R.id.profileimage); profileimage.setBackgroundResource(R.drawable.no_img); protected void onActivityResult(int requestCode, int resultCode, Intent intent) { super.onActivityResult(requestCode, resultCode, intent); if (resultCode == RESULT_CANCELED) { // TODO return; } Log.e("request code", "1:" + requestCode); switch (requestCode) { case CAMERA_SELECT: Log.e("in camera select", "1"); // Get the camera data cameracalling(intent); break; case Gallery_Select: ongallerycalling(intent,resultCode); } } private void cameracalling(Intent intent){ Bitmap photo = (Bitmap) intent.getExtras().get("data"); profileimage.setImageBitmap(photo); } profileimage.buildDrawingCache(); Bitmap bmap = profileimage.getDrawingCache(); ByteArrayOutputStream bao = new ByteArrayOutputStream(); bmap.compress(Bitmap.CompressFormat.JPEG, 90, bao); byte [] ba = bao.toByteArray(); bitmapString=Base64.encodeBytes(ba); Drawable draw = LoadImageFromWebOperations("" + objUserInformationSitesList.getProfileImage()); profileimage.setBackgroundDrawable(draw); </code></pre> <p>We are sending bitmap string to server image upload on server properly but when we open next time this screen that webservice call on which we upload image which will give all data (actually this user profile screen) .when we set server image then default image also set on background </p> <p><code>objUserInformationSitesList</code> this object which contains all information after parsing the web service. behind profile image ,default image also looking which set by me on number #1</p> <p>if I unable to explain properly then please tell me.</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload