2011-9-28 13:11:49
Android之launcher
在Android系统中,应用程序是由Launcher启动起来的,
Launcher本身也是一个应用程序,其它的应用程序安装后,就会Launcher的界面上出现一个相应的图标,点击这个图标时,Launcher就会对应的应用程序启动起来。
Launcher的源代码工程在packages/apps/Launcher2目录下.
这个launcer的也就是看到的android的桌面.
本地预览的情况下不能显示切换工作模式
退出的时候停了本地预览么?
按了回退键就退出应用程序
停止和退出的时候调用
先不做处理
2种模式下的主界面区分开来
回退的会走创建么?
端口为0是怎么回事?
开始存储和停止存储 加上
struct CameraInfo {
/**
* The direction that the camera faces to. It should be
* CAMERA_FACING_BACK or CAMERA_FACING_FRONT.
*/
int facing;
/**
* The orientation of the camera image. The value is the angle that the
* camera image needs to be rotated clockwise so it shows correctly on
* the display in its natural orientation. It should be 0, 90, 180, or 270.
*
* For example, suppose a device has a naturally tall screen. The
* back-facing camera sensor is mounted in landscape. You are looking at
* the screen. If the top side of the camera sensor is aligned with the
* right edge of the screen in natural orientation, the value should be
* 90. If the top side of a front-facing camera sensor is aligned with
* the right of the screen, the value should be 270.
*/
int orientation;
GetCameraPropery 从系统属性中获取摄像头的名字和旋转度数
HAL_getNumberOfCameras 获取最多2个摄像头