Recently in the call Android system camera function, will take photos in the display on the ImageView, in the simulator is normal, can go to the real machine, dead and alive display, and later through the verification of the multi-party finally debugging.
1. To reload the Onconfigurationchanged event, prevent the original activity from calling the camera back OnCreate, if re-oncreate will cause the photos on ImageView to be replaced by the original picture.
2, the photo length and width of the real machine display is the opposite. At the same time the photos must be compressed before they can be put on the ImageView.
3. If the camera is called with Intent.putextra (Mediastore.extra_output, URI), then data in the Onactivityresult will not be available. You can get the data without specifying it.
This article is from the "Andorid_camera_imageview" blog, make sure to keep this source http://0512sz.blog.51cto.com/3296937/1767859
Display problems after taking pictures on Android real machine