• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

How to put and edit image captured by camera on thumbnail in android

public class UserModule extends Activity {
protected static final int TAKE_PICTURE = 0;
ImageView imgview;

@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_user_layout);
imgview=(ImageView) findViewById(R.id.imageView1);
imgview.setOnClickListener(new OnClickListener() {

@Override
public void onClick(View arg0) {
Intent intent = new Intent(android.provider.MediaStore.ACTION_IMAGE_CAPTURE);
startActivityForResult(intent, 0);

}
});
}


@Override
public void onActivityResult(int requestcode,int resultcode,Intent data){
if(requestcode == 0){
Bitmap theImage = (Bitmap) data.getExtras().get("data");
imgview.setImageBitmap(theImage);

}

}
}


can anyone help me How to put and edit image captured by camera on thumbnail in android
 
Welcome harsha!
Forgive my ignorance, but do I understand correctly? You want an image taken by a camera, put onto your device?

Thanks for joining us today and I hope we can help you out:D
 
Back
Top Bottom