Android -- Camera源碼簡析,啟動流程
boolean recordLocation = RecordLocationPreference.get(
mPreferences, getContentResolver());
mLocationManager.recordLocation(recordLocation);
//設(shè)置SD卡廣播
installIntentFilter();
mImageSaver = new ImageSaver();
//初始化Zoom
initializeZoom();
//mMediaProviderClient=媒體Provider對象
keepMediaProviderInstance();
//檢查硬盤
checkStorage();
//淡出retake和done的Button
hidePostCaptureAlert();
if (!mIsImageCaptureIntent) {
//如果不是第三方開啟,則更新縮略圖
updateThumbnailButton();
mModePicker.setCurrentMode(ModePicker.MODE_CAMERA);
}
}
復(fù)制代碼
4、surfaceDestroyed
stopPreview();
mSurfaceHolder = null;
評論