i am trying to coding an apllication to get an image from gallery then do some effects oon it, and after showing the image, i want to save it as JPG in SdCard. can any on plz thell me how to save image on sdcard, and where should i put save code? this is where i want to save, after clicking on button2:
public void onClick(View arg0) {
Bitmap yourimage;
yourimage=toGrayscale(yourSelectedImage);
ImageButton effected=(ImageButton)findViewById(R.id.imageButton2);
int width = 150;
int height =150;
Bitmap resizedbitmap=Bitmap.createScaledBitmap(yourimage, width, height, true);
effected.setImageBitmap(resizedbitmap);
}
i mean after set image as resizedbitmap i want to save it in sdcard