Today, a problem is very painful ah, other mobile phone is not a problem, but the Samsung model of the mobile phone jump to the camera, back to the activity. This may be the relationship between Samsung's internal recovery mechanism, because the camera will be more expensive to open,
So the subsequent processes are temporarily recycled, adding android:configchanges= "orientation|keyboardhidden|screensize" three attributes, before only the first 2, the activity has disappeared, Join ScreenSize The activity is still there;
But after coming back, these variables are null, so do not use Mediastore.extra_output to open the camera directly, return to the time through Bitmap Bitmap = (Bitmap) Data.getextras (). Get ("data"); Get bitmap.
, but if you want to use Extra_output, you can try to use the Onsaveinstancestate () method, save the status of activity, but I myself useless, worry points, direct use, the front way.
Questions about activity being recycled after Samsung phone calls camera return