Example analysis of Android development method to realize photographing function
This paper describes the method of developing and realizing the photographing function on Android. Share with you for your reference, as follows:
Resolution:
1) Judge whether there is camera checkcamerahardware (this) 2) obtain camera camera = camera.open (0); 3) Add the camera to mpreview = new surfacepreview (this, mcamera); 4) To take pictures, mcamera.autofocus 5) use mcamera.takepicture (null, null, mpimage) after taking pictures; Method to save the picture to sdcard
Code implementation:
Layout:
More readers interested in Android related content can view the special topics of this site: summary of Android photographing and image processing skills, introduction and advanced tutorial of Android development, summary of Android debugging skills and common problem solving methods, summary of Android basic component usage, summary of Android view skills, summary of Android layout skills, and Android control usage summary
I hope this article will help you in Android programming.