I have wrote an app with 2 activities. One activity took a picture and the second one use it with some filters.
Activity 1:
Intent FilterSelectionIntent = new Intent(getActivity(), PulsFiltersActivity.class);
FilterSelectionIntent.putExtra("PicTaken", currentBitmap);
startActivity(FilterSelectionIntent);
Acitivity 2:
Bundle bd = intent.getExtras();
mBitmap = bd.getParcelable("PicTaken");
I have put some breakpoints in the Activity 2 and it never stop at. As soon as I comment the "putExtra" in comment, I can reach the breakpoints. In my case, the activity is not started, I think the intent is wrong.
I know that one solution is to use Bitmap.compress and forward the result in the Output stream. but in my case, it take too much time. My android device is a very basic one and it takes 2s to save the bmp. this why I try to use the intent to pass argument but it seems not working.
I'm also open to save the bmp as tmp file but I can lose 2 sec.
Any idea .