【核心代码】 public interface CameraSource { static final String LOG_TAG = "camera"; /** * Open the camera source for subsequent use via calls to capture(). * * @return true if the camera source was successfully opened. */ boolean open(); /** * Close the camera source. Calling close on a closed CameraSource is * permitted but has no effect. The camera source may be reopened after * being closed. */ void close(); /** * The width of the captured image. * * @return the width of the capture in pixels */ int getWidth(); /** * The height of the captured image. * * @return the height of the capture in pixels */ int getHeight(); /** * Attempts to render the current camera view onto the supplied canvas. * The capture will be rendered into the rectangle (0,0,width,height). * Outstanding transformations on the canvas may alter this. * * @param canvas the canvas to which the captured pixel data will be written * @return true iff a frame was successfully written to the canvas */ boolean capture(Canvas canvas); boolean saveImage(String savePath, String fileName); }
本项目是一个仓库管理的安卓毕业设计项目源码,已升级到 andriod studio 3.5 只是初步了实现了单机的仓库管理操作,可以对商品、客户、供应商信息进行简单的增删改查,也可以简单的进行库存管理,在实用性方面做的比较差强人意,不过可以修改一下作为自己的毕业设计。本项目包括安卓客户端源码、一个26页的毕设报告、一个开题报告,本项目是一个简单的安卓仓库管理系统模型,不要指望有多高的实际应用性。不过应付一般的本科专科水平的毕业设计完全没有问题。编译版本2.3.3编码GBK,源码有简单的注释。也可以作为安卓新手练习SQLite使用的例子。管理员默认用户名密码都是javaapk