i try to pass bitmap from first activity to second activity
it works correctly , but when i try to change bitmap size , app closes suddenly
Bundle bundle = new Bundle();
double heightD = bitmap.getHeight() / 4.5;
double widthD = bitmap.getWidth() / 4.5;
int height = (int) heightD;
int width = (int) widthD;
bitmap = scaleDownBitmapImage(bitmap, width, height);
bundle.putParcelable("key", bitmap);
Intent intent = new Intent(getActivity(), CheckTokenImage.class);
intent.putExtras(bundle);
startActivity(intent);
it works , but if i change 4.5 to 4.4 or lower app crash and it stop suddenly!!
any help , please ?
Update : the "Unfortunately, MyApp has stopped" doesn't show , just it jump out, and i can open it from recently app list