• 大小: 379KB
    文件类型: .7z
    金币: 1
    下载: 0 次
    发布日期: 2021-01-07
  • 语言: Java
  • 标签: android  文件管理  

资源简介

android 文件管理实现demo, 包含文件夹浏览,文件拷贝复制等功能;

资源截图

代码片段和文件信息

package com.example.yishe.filemanager;

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.example.yishe.filemanager“ appContext.getPackageName());
    }
}

评论

共有 条评论