Code example for Camera

Methods: releasesetPreviewCallbackstopPreviewunlock

0
					bm.compress(Bitmap.CompressFormat.JPEG, 80, bos);
					bos.flush();
					bos.close();
 
					if (sCamera != null) {
						sCamera.stopPreview();
						sCamera.setPreviewCallback(null);
						sCamera.unlock();
						sCamera.release();
						sCamera = null;
					} 
 
					// 这里始终有问题,未解决. 
					// ConfigureProviderManager.configure(ProviderManager.getInstance()); 
					// new ServiceDiscoveryManager(MainService.connection); 
					// FileTransferManager FTmanager = new 
					// FileTransferManager(MainService.connection); 
					// 
					// // 这里是完整的用户ID,包括资源名 
					// OutgoingFileTransfer transfer = 
					// FTmanager.createOutgoingFileTransfer(From);