• 大小: 752KB
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2021-01-08
  • 语言: Java
  • 标签: 展示图片  

资源简介

Android展示指定文件夹下面的所有的图片

资源截图

代码片段和文件信息

package com.xiaoge.openfiles;

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.xiaoge.openfiles“ appContext.getPackageName());
    }
}

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2017-01-17 16:38  OpenFiles\
     文件         127  2017-01-17 11:10  OpenFiles\.gitignore
     目录           0  2017-01-17 11:11  OpenFiles\.gradle\
     目录           0  2017-01-17 11:25  OpenFiles\.gradle\2.14.1\
     目录           0  2017-01-17 11:11  OpenFiles\.gradle\2.14.1\taskArtifacts\
     文件          31  2017-01-17 11:11  OpenFiles\.gradle\2.14.1\taskArtifacts\cache.properties
     文件          17  2017-01-17 17:19  OpenFiles\.gradle\2.14.1\taskArtifacts\cache.properties.lock
     文件      277420  2017-01-17 17:19  OpenFiles\.gradle\2.14.1\taskArtifacts\fileHashes.bin
     文件     3144732  2017-01-17 17:19  OpenFiles\.gradle\2.14.1\taskArtifacts\fileSnapshots.bin
     文件       30368  2017-01-17 17:19  OpenFiles\.gradle\2.14.1\taskArtifacts\fileSnapshotsToTreeSnapshotsIndex.bin
     文件      139955  2017-01-17 17:19  OpenFiles\.gradle\2.14.1\taskArtifacts\taskArtifacts.bin
     目录           0  2017-01-17 17:19  OpenFiles\.gradle\2.14.1\tasks\
     目录           0  2017-01-17 11:25  OpenFiles\.gradle\2.14.1\tasks\_app_compileDebugJavaWithJavac\
     目录           0  2017-01-17 11:25  OpenFiles\.gradle\2.14.1\tasks\_app_compileDebugJavaWithJavac\localClassSetAnalysis\
     文件       46595  2017-01-17 17:12  OpenFiles\.gradle\2.14.1\tasks\_app_compileDebugJavaWithJavac\localClassSetAnalysis\localClassSetAnalysis.bin
     文件          17  2017-01-17 17:12  OpenFiles\.gradle\2.14.1\tasks\_app_compileDebugJavaWithJavac\localClassSetAnalysis\localClassSetAnalysis.lock
     目录           0  2017-01-17 11:25  OpenFiles\.gradle\2.14.1\tasks\_app_compileDebugJavaWithJavac\localJarClasspathSnapshot\
     文件       20536  2017-01-17 17:12  OpenFiles\.gradle\2.14.1\tasks\_app_compileDebugJavaWithJavac\localJarClasspathSnapshot\localJarClasspathSnapshot.bin
     文件          17  2017-01-17 17:12  OpenFiles\.gradle\2.14.1\tasks\_app_compileDebugJavaWithJavac\localJarClasspathSnapshot\localJarClasspathSnapshot.lock
     目录           0  2017-01-17 17:19  OpenFiles\.gradle\2.14.1\tasks\_app_compileReleaseJavaWithJavac\
     目录           0  2017-01-17 17:19  OpenFiles\.gradle\2.14.1\tasks\_app_compileReleaseJavaWithJavac\localClassSetAnalysis\
     文件       22619  2017-01-17 17:19  OpenFiles\.gradle\2.14.1\tasks\_app_compileReleaseJavaWithJavac\localClassSetAnalysis\localClassSetAnalysis.bin
     文件          17  2017-01-17 17:19  OpenFiles\.gradle\2.14.1\tasks\_app_compileReleaseJavaWithJavac\localClassSetAnalysis\localClassSetAnalysis.lock
     目录           0  2017-01-17 17:19  OpenFiles\.gradle\2.14.1\tasks\_app_compileReleaseJavaWithJavac\localJarClasspathSnapshot\
     文件       19259  2017-01-17 17:19  OpenFiles\.gradle\2.14.1\tasks\_app_compileReleaseJavaWithJavac\localJarClasspathSnapshot\localJarClasspathSnapshot.bin
     文件          17  2017-01-17 17:19  OpenFiles\.gradle\2.14.1\tasks\_app_compileReleaseJavaWithJavac\localJarClasspathSnapshot\localJarClasspathSnapshot.lock
     目录           0  2017-01-17 17:47  OpenFiles\.idea\
     文件         686  2017-01-17 11:10  OpenFiles\.idea\compiler.xml
     目录           0  2017-01-17 11:10  OpenFiles\.idea\copyright\
     文件          76  2017-01-17 11:10  OpenFiles\.idea\copyright\profiles_settings.xml
     目录           0  2017-01-17 11:14  OpenFiles\.idea\dictionaries\
............此处省略82个文件信息

评论

共有 条评论

相关资源