I am changing 4 pixels of a bitmap in activity1 and in activity2 I want to obtain those particular pixel RGB values but I am getting different values for that what can be the reason? I have saved image in JPEG format from activity1 to gallery and then I got it from gallery to activiy2. After changing type to PNG just 1 of those pixel value remained same other 3 are different. bitmap in activity to I am getting by code mentioned below.
bitmapActivity2 = MediaStore.Images.Media.getBitmap(this.getContentResolver(), imageUri);
imageView.setImageBitmap(bitmapActivity2);
I have tried by taking drawable object but it was not wotking so changed it to this.
Any suggestions or guidance...