• 大小: 390KB
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2021-06-13
  • 语言: 其他
  • 标签: 串口  

资源简介

串口通讯【获取串口中的数据、向串口中发送数据】

资源截图

代码片段和文件信息

package com.example.serialportdemo;

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

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2017-03-21 01:29  SerialportDemo-master\
     文件        6148  2017-03-21 01:29  SerialportDemo-master\.DS_Store
     目录           0  2017-03-21 01:29  __MACOSX\
     目录           0  2017-03-21 01:29  __MACOSX\SerialportDemo-master\
     文件         120  2017-03-21 01:29  __MACOSX\SerialportDemo-master\._.DS_Store
     文件         118  2016-11-27 04:28  SerialportDemo-master\.gitignore
     文件         226  2016-11-27 04:28  __MACOSX\SerialportDemo-master\._.gitignore
     目录           0  2017-03-17 12:00  SerialportDemo-master\.gradle\
     目录           0  2017-03-17 12:01  SerialportDemo-master\.gradle\3.3\
     目录           0  2017-03-17 12:00  SerialportDemo-master\.gradle\3.3\taskArtifacts\
     文件      261219  2017-03-17 16:05  SerialportDemo-master\.gradle\3.3\taskArtifacts\fileHashes.bin
     文件      600406  2017-03-17 16:05  SerialportDemo-master\.gradle\3.3\taskArtifacts\fileSnapshots.bin
     文件       65727  2017-03-17 16:05  SerialportDemo-master\.gradle\3.3\taskArtifacts\taskArtifacts.bin
     文件          17  2017-03-17 16:05  SerialportDemo-master\.gradle\3.3\taskArtifacts\taskArtifacts.lock
     目录           0  2017-03-17 12:01  SerialportDemo-master\.gradle\3.3\tasks\
     目录           0  2017-03-17 12:01  SerialportDemo-master\.gradle\3.3\tasks\_app_compileDebugJavaWithJavac\
     目录           0  2017-03-17 12:01  SerialportDemo-master\.gradle\3.3\tasks\_app_compileDebugJavaWithJavac\localClassSetAnalysis\
     文件       25356  2017-03-17 16:05  SerialportDemo-master\.gradle\3.3\tasks\_app_compileDebugJavaWithJavac\localClassSetAnalysis\localClassSetAnalysis.bin
     文件          17  2017-03-17 16:05  SerialportDemo-master\.gradle\3.3\tasks\_app_compileDebugJavaWithJavac\localClassSetAnalysis\localClassSetAnalysis.lock
     目录           0  2017-03-17 12:01  SerialportDemo-master\.gradle\3.3\tasks\_app_compileDebugJavaWithJavac\localJarClasspathSnapshot\
     文件       20392  2017-03-17 16:05  SerialportDemo-master\.gradle\3.3\tasks\_app_compileDebugJavaWithJavac\localJarClasspathSnapshot\localJarClasspathSnapshot.bin
     文件          17  2017-03-17 16:05  SerialportDemo-master\.gradle\3.3\tasks\_app_compileDebugJavaWithJavac\localJarClasspathSnapshot\localJarClasspathSnapshot.lock
     目录           0  2017-03-21 01:28  SerialportDemo-master\.idea\
     文件         686  2016-11-27 04:28  SerialportDemo-master\.idea\compiler.xml
     目录           0  2017-03-21 01:29  __MACOSX\SerialportDemo-master\.idea\
     文件         226  2016-11-27 04:28  __MACOSX\SerialportDemo-master\.idea\._compiler.xml
     目录           0  2016-11-27 04:28  SerialportDemo-master\.idea\copyright\
     文件          74  2016-11-27 04:28  SerialportDemo-master\.idea\copyright\profiles_settings.xml
     目录           0  2017-03-21 01:29  __MACOSX\SerialportDemo-master\.idea\copyright\
     文件         226  2016-11-27 04:28  __MACOSX\SerialportDemo-master\.idea\copyright\._profiles_settings.xml
     文件         226  2016-11-27 04:28  __MACOSX\SerialportDemo-master\.idea\._copyright
............此处省略212个文件信息

评论

共有 条评论