• 大小: 130KB
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2021-05-25
  • 语言: Java
  • 标签: Android  蓝牙  

资源简介

蓝牙 开发中的常见问题的解决 适用于5.0 以上的各种Android 平台,UUID的使用,蓝牙的扫描。蓝牙的打开,蓝牙通信socket的建立与监听

资源截图

代码片段和文件信息

package com.androidlongs.commonbluetoothapplication;

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

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2017-06-27 03:17  AndroidBluetooth-master\
     文件         118  2017-06-27 03:17  AndroidBluetooth-master\.gitignore
     目录           0  2017-06-27 03:17  AndroidBluetooth-master\.idea\
     文件         686  2017-06-27 03:17  AndroidBluetooth-master\.idea\compiler.xml
     目录           0  2017-06-27 03:17  AndroidBluetooth-master\.idea\copyright\
     文件          74  2017-06-27 03:17  AndroidBluetooth-master\.idea\copyright\profiles_settings.xml
     文件         159  2017-06-27 03:17  AndroidBluetooth-master\.idea\encodings.xml
     文件         705  2017-06-27 03:17  AndroidBluetooth-master\.idea\gradle.xml
     文件        2644  2017-06-27 03:17  AndroidBluetooth-master\.idea\misc.xml
     文件         389  2017-06-27 03:17  AndroidBluetooth-master\.idea\modules.xml
     文件         564  2017-06-27 03:17  AndroidBluetooth-master\.idea\runConfigurations.xml
     文件         180  2017-06-27 03:17  AndroidBluetooth-master\.idea\vcs.xml
     文件       23317  2017-06-27 03:17  AndroidBluetooth-master\README.md
     目录           0  2017-06-27 03:17  AndroidBluetooth-master\app\
     文件           7  2017-06-27 03:17  AndroidBluetooth-master\app\.gitignore
     文件        1767  2017-06-27 03:17  AndroidBluetooth-master\app\CMakeLists.txt
     文件        1569  2017-06-27 03:17  AndroidBluetooth-master\app\build.gradle
     文件         670  2017-06-27 03:17  AndroidBluetooth-master\app\proguard-rules.pro
     目录           0  2017-06-27 03:17  AndroidBluetooth-master\app\src\
     目录           0  2017-06-27 03:17  AndroidBluetooth-master\app\src\androidTest\
     目录           0  2017-06-27 03:17  AndroidBluetooth-master\app\src\androidTest\java\
     目录           0  2017-06-27 03:17  AndroidBluetooth-master\app\src\androidTest\java\com\
     目录           0  2017-06-27 03:17  AndroidBluetooth-master\app\src\androidTest\java\com\androidlongs\
     目录           0  2017-06-27 03:17  AndroidBluetooth-master\app\src\androidTest\java\com\androidlongs\commonbluetoothapplication\
     文件         790  2017-06-27 03:17  AndroidBluetooth-master\app\src\androidTest\java\com\androidlongs\commonbluetoothapplication\ExampleInstrumentedTest.java
     目录           0  2017-06-27 03:17  AndroidBluetooth-master\app\src\main\
     文件        1479  2017-06-27 03:17  AndroidBluetooth-master\app\src\main\AndroidManifest.xml
     目录           0  2017-06-27 03:17  AndroidBluetooth-master\app\src\main\cpp\
     文件         272  2017-06-27 03:17  AndroidBluetooth-master\app\src\main\cpp\native-lib.cpp
     目录           0  2017-06-27 03:17  AndroidBluetooth-master\app\src\main\java\
     目录           0  2017-06-27 03:17  AndroidBluetooth-master\app\src\main\java\com\
............此处省略60个文件信息

评论

共有 条评论