• 大小: 4.51M
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2020-12-22
  • 语言: Java
  • 标签:

资源简介

Android 调用系统相机获取图像(摄像头-08_066).zip

资源截图

代码片段和文件信息

package com.mingrisoft.systemcamera;

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.*;

/**
 * Instrumentation 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.mrkj.sample71“ appContext.getPackageName());
    }
}

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     文件         127  2017-06-10 09:28  Project\SystemCamera\.gitignore
     文件         600  2017-06-10 09:28  Project\SystemCamera\build.gradle
     文件         747  2017-06-10 09:28  Project\SystemCamera\gradle.properties
     文件        4971  2017-06-10 09:28  Project\SystemCamera\gradlew
     文件        2404  2017-06-10 09:28  Project\SystemCamera\gradlew.bat
     文件         526  2017-06-10 09:28  Project\SystemCamera\local.properties
     文件         887  2017-06-10 09:28  Project\SystemCamera\Sample_7.1.iml
     文件          16  2017-06-10 09:28  Project\SystemCamera\settings.gradle
     文件         866  2017-06-10 09:28  Project\SystemCamera\SystemCamera.iml
     文件          31  2017-06-10 09:28  Project\SystemCamera\.gradle\2.14.1\taskArtifacts\cache.properties
     文件          17  2017-06-10 09:28  Project\SystemCamera\.gradle\2.14.1\taskArtifacts\cache.properties.lock
     文件      516099  2017-06-10 09:28  Project\SystemCamera\.gradle\2.14.1\taskArtifacts\fileHashes.bin
     文件     5704739  2017-06-10 09:28  Project\SystemCamera\.gradle\2.14.1\taskArtifacts\fileSnapshots.bin
     文件       57102  2017-06-10 09:28  Project\SystemCamera\.gradle\2.14.1\taskArtifacts\fileSnapshotsToTreeSnapshotsIndex.bin
     文件      152754  2017-06-10 09:28  Project\SystemCamera\.gradle\2.14.1\taskArtifacts\taskArtifacts.bin
     文件       24485  2017-06-10 09:28  Project\SystemCamera\.gradle\2.14.1\tasks\_app_compileDebugJavaWithJavac\localClassSetAnalysis\localClassSetAnalysis.bin
     文件          17  2017-06-10 09:28  Project\SystemCamera\.gradle\2.14.1\tasks\_app_compileDebugJavaWithJavac\localClassSetAnalysis\localClassSetAnalysis.lock
     文件       23326  2017-06-10 09:28  Project\SystemCamera\.gradle\2.14.1\tasks\_app_compileDebugJavaWithJavac\localJarClasspathSnapshot\localJarClasspathSnapshot.bin
     文件          17  2017-06-10 09:28  Project\SystemCamera\.gradle\2.14.1\tasks\_app_compileDebugJavaWithJavac\localJarClasspathSnapshot\localJarClasspathSnapshot.lock
     文件         686  2017-06-10 09:28  Project\SystemCamera\.idea\compiler.xml
     文件         159  2017-06-10 09:28  Project\SystemCamera\.idea\encodings.xml
     文件         626  2017-06-10 09:28  Project\SystemCamera\.idea\gradle.xml
     文件        5613  2017-06-10 09:28  Project\SystemCamera\.idea\misc.xml
     文件         361  2017-06-10 09:28  Project\SystemCamera\.idea\modules.xml
     文件         564  2017-06-10 09:28  Project\SystemCamera\.idea\runConfigurations.xml
     文件      161198  2017-06-10 09:28  Project\SystemCamera\.idea\workspace.xml
     文件          76  2017-06-10 09:28  Project\SystemCamera\.idea\copyright\profiles_settings.xml
     文件         665  2017-06-10 09:28  Project\SystemCamera\.idea\libraries\animated_vector_drawable_24_2_1.xml
     文件         781  2017-06-10 09:28  Project\SystemCamera\.idea\libraries\appcompat_v7_24_2_1.xml
     文件         647  2017-06-10 09:28  Project\SystemCamera\.idea\libraries\espresso_core_2_2_2.xml
     文件         702  2017-06-10 09:28  Project\SystemCamera\.idea\libraries\espresso_idling_resource_2_2_2.xml
............此处省略66个文件信息

评论

共有 条评论