资源简介

这个资源是从网上下载来的,不过经过本人改造,目前适合高版本android使用,经测试完全没有,可以直接在android studio 3.0上运行。 这个是一个非常简易的webview调用相机拍照和预览的demo,希望能帮助到需要的人。

资源截图

代码片段和文件信息

package com.houjianbo.demo.testwebview;

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.houjianbo.demo.testwebview“ appContext.getPackageName());
    }
}

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件        127  2017-06-02 16:24  TestWebView\.gitignore

     文件     136283  2017-06-02 16:59  TestWebView\.gradle\3.3\taskArtifacts\fileHashes.bin

     文件    1070228  2017-06-02 16:59  TestWebView\.gradle\3.3\taskArtifacts\fileSnapshots.bin

     文件      71825  2017-06-02 16:59  TestWebView\.gradle\3.3\taskArtifacts\taskArtifacts.bin

     文件         17  2017-06-02 16:59  TestWebView\.gradle\3.3\taskArtifacts\taskArtifacts.lock

     文件      34303  2017-06-02 16:59  TestWebView\.gradle\3.3\tasks\_app_compileDebugJavaWithJavac\localClassSetAnalysis\localClassSetAnalysis.bin

     文件         17  2017-06-02 16:59  TestWebView\.gradle\3.3\tasks\_app_compileDebugJavaWithJavac\localClassSetAnalysis\localClassSetAnalysis.lock

     文件      20029  2017-06-02 16:59  TestWebView\.gradle\3.3\tasks\_app_compileDebugJavaWithJavac\localJarClasspathSnapshot\localJarClasspathSnapshot.bin

     文件         17  2017-06-02 16:59  TestWebView\.gradle\3.3\tasks\_app_compileDebugJavaWithJavac\localJarClasspathSnapshot\localJarClasspathSnapshot.lock

     文件          1  2018-01-30 19:17  TestWebView\.gradle\4.1\fileChanges\last-build.bin

     文件         17  2018-01-30 19:17  TestWebView\.gradle\4.1\fileContent\fileContent.lock

     文件     285669  2018-01-30 19:17  TestWebView\.gradle\4.1\fileHashes\fileHashes.bin

     文件         17  2018-01-30 19:17  TestWebView\.gradle\4.1\fileHashes\fileHashes.lock

     文件      21727  2018-01-28 21:27  TestWebView\.gradle\4.1\fileHashes\resourceHashesCache.bin

     文件    2109148  2018-01-30 19:17  TestWebView\.gradle\4.1\javaCompile\classAnalysis.bin

     文件     847963  2018-01-28 21:27  TestWebView\.gradle\4.1\javaCompile\jarAnalysis.bin

     文件         17  2018-01-30 19:17  TestWebView\.gradle\4.1\javaCompile\javaCompile.lock

     文件     115017  2018-01-30 19:17  TestWebView\.gradle\4.1\javaCompile\taskHistory.bin

     文件      26698  2018-01-30 19:17  TestWebView\.gradle\4.1\javaCompile\taskJars.bin

     文件    2443961  2018-01-30 19:17  TestWebView\.gradle\4.1\taskHistory\fileSnapshots.bin

     文件      86132  2018-01-30 19:17  TestWebView\.gradle\4.1\taskHistory\taskHistory.bin

     文件         17  2018-01-30 19:17  TestWebView\.gradle\4.1\taskHistory\taskHistory.lock

     文件          0  2018-01-28 12:37  TestWebView\.gradle\buildOutputCleanup\built.bin

     文件         51  2018-01-28 12:37  TestWebView\.gradle\buildOutputCleanup\cache.properties

     文件          2  2018-01-30 19:17  TestWebView\.gradle\buildOutputCleanup\cache.properties.lock

     文件        686  2017-06-02 16:24  TestWebView\.idea\compiler.xml

     文件         76  2017-06-02 16:24  TestWebView\.idea\copyright\profiles_settings.xml

     文件        626  2017-06-02 16:25  TestWebView\.idea\gradle.xml

     文件        241  2017-06-02 16:26  TestWebView\.idea\inspectionProfiles\profiles_settings.xml

     文件       4658  2017-06-02 16:26  TestWebView\.idea\inspectionProfiles\Project_Default.xml

............此处省略123个文件信息

评论

共有 条评论