• 大小: 211KB
    文件类型: .zip
    金币: 2
    下载: 1 次
    发布日期: 2021-06-17
  • 语言: Java
  • 标签:

资源简介

Camera2 api实现点击拍照,长按录制

资源截图

代码片段和文件信息

package com.cktim.camera2library;

import android.content.Context;
import android.support.test.InstrumentationRegistry;
import android.support.test.runner.AndroidJUnit4;

import org.junit.Test;
import org.junit.runner.RunWith;

import static org.junit.Assert.*;

/**
 * Instrumented test which will execute on an Android device.
 *
 * @see Testing documentation
 */
@RunWith(AndroidJUnit4.class)
public class ExampleInstrumentedTest {
    @Test
    public void useAppContext() throws Exception {
        // Context of the app under test.
        Context appContext = InstrumentationRegistry.getTargetContext();

        assertEquals(“com.cktim.camera2library.test“ appContext.getPackageName());
    }
}

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2017-12-09 09:23  CKTim-Camera2Record-4fa6978\
     文件         118  2017-12-09 09:23  CKTim-Camera2Record-4fa6978\.gitignore
     目录           0  2017-12-09 09:23  CKTim-Camera2Record-4fa6978\.idea\
     文件         687  2017-12-09 09:23  CKTim-Camera2Record-4fa6978\.idea\gradle.xml
     文件        1615  2017-12-09 09:23  CKTim-Camera2Record-4fa6978\.idea\misc.xml
     文件         490  2017-12-09 09:23  CKTim-Camera2Record-4fa6978\.idea\modules.xml
     文件         564  2017-12-09 09:23  CKTim-Camera2Record-4fa6978\.idea\runConfigurations.xml
     文件         167  2017-12-09 09:23  CKTim-Camera2Record-4fa6978\.idea\vcs.xml
     目录           0  2017-12-09 09:23  CKTim-Camera2Record-4fa6978\Demo\
     文件           7  2017-12-09 09:23  CKTim-Camera2Record-4fa6978\Demo\.gitignore
     文件         974  2017-12-09 09:23  CKTim-Camera2Record-4fa6978\Demo\build.gradle
     文件         751  2017-12-09 09:23  CKTim-Camera2Record-4fa6978\Demo\proguard-rules.pro
     目录           0  2017-12-09 09:23  CKTim-Camera2Record-4fa6978\Demo\src\
     目录           0  2017-12-09 09:23  CKTim-Camera2Record-4fa6978\Demo\src\androidTest\
     目录           0  2017-12-09 09:23  CKTim-Camera2Record-4fa6978\Demo\src\androidTest\java\
     目录           0  2017-12-09 09:23  CKTim-Camera2Record-4fa6978\Demo\src\androidTest\java\com\
     目录           0  2017-12-09 09:23  CKTim-Camera2Record-4fa6978\Demo\src\androidTest\java\com\cktim\
     目录           0  2017-12-09 09:23  CKTim-Camera2Record-4fa6978\Demo\src\androidTest\java\com\cktim\camera2record\
     文件         747  2017-12-09 09:23  CKTim-Camera2Record-4fa6978\Demo\src\androidTest\java\com\cktim\camera2record\ExampleInstrumentedTest.java
     目录           0  2017-12-09 09:23  CKTim-Camera2Record-4fa6978\Demo\src\main\
     文件        1090  2017-12-09 09:23  CKTim-Camera2Record-4fa6978\Demo\src\main\AndroidManifest.xml
     目录           0  2017-12-09 09:23  CKTim-Camera2Record-4fa6978\Demo\src\main\java\
     目录           0  2017-12-09 09:23  CKTim-Camera2Record-4fa6978\Demo\src\main\java\com\
     目录           0  2017-12-09 09:23  CKTim-Camera2Record-4fa6978\Demo\src\main\java\com\cktim\
     目录           0  2017-12-09 09:23  CKTim-Camera2Record-4fa6978\Demo\src\main\java\com\cktim\camera2record\
     文件        1834  2017-12-09 09:23  CKTim-Camera2Record-4fa6978\Demo\src\main\java\com\cktim\camera2record\Camera2RecordFinishActivity.java
     文件        1517  2017-12-09 09:23  CKTim-Camera2Record-4fa6978\Demo\src\main\java\com\cktim\camera2record\MainActivity.java
     目录           0  2017-12-09 09:23  CKTim-Camera2Record-4fa6978\Demo\src\main\res\
     目录           0  2017-12-09 09:23  CKTim-Camera2Record-4fa6978\Demo\src\main\res\drawable-v24\
     文件        1880  2017-12-09 09:23  CKTim-Camera2Record-4fa6978\Demo\src\main\res\drawable-v24\ic_launcher_foreground.xml
     目录           0  2017-12-09 09:23  CKTim-Camera2Record-4fa6978\Demo\src\main\res\drawable\
............此处省略84个文件信息

评论

共有 条评论