• 大小: 36.47M
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2021-01-25
  • 语言: Java
  • 标签:

资源简介

Android 使用百度地图定位自己的位置(位置服务与地图应用-15_139).zip

资源截图

代码片段和文件信息

package com.mingrisoft.baidulocation;

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

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     文件         127  2016-12-23 15:29  Project\BaiDuLocation\.gitignore
     文件         867  2016-12-23 15:30  Project\BaiDuLocation\BaiDuLocation.iml
     文件         521  2016-12-23 15:29  Project\BaiDuLocation\build.gradle
     文件         747  2016-12-23 15:29  Project\BaiDuLocation\gradle.properties
     文件        4971  2016-12-23 15:29  Project\BaiDuLocation\gradlew
     文件        2404  2016-12-23 15:29  Project\BaiDuLocation\gradlew.bat
     文件         459  2017-07-28 11:38  Project\BaiDuLocation\local.properties
     文件          16  2016-12-23 15:29  Project\BaiDuLocation\settings.gradle
     文件          31  2016-12-23 15:30  Project\BaiDuLocation\.gradle\2.14.1\taskArtifacts\cache.properties
     文件          17  2017-07-28 11:57  Project\BaiDuLocation\.gradle\2.14.1\taskArtifacts\cache.properties.lock
     文件      525672  2017-07-28 11:57  Project\BaiDuLocation\.gradle\2.14.1\taskArtifacts\fileHashes.bin
     文件     4350585  2017-07-28 11:57  Project\BaiDuLocation\.gradle\2.14.1\taskArtifacts\fileSnapshots.bin
     文件       29120  2017-07-28 11:57  Project\BaiDuLocation\.gradle\2.14.1\taskArtifacts\fileSnapshotsToTreeSnapshotsIndex.bin
     文件      150128  2017-07-28 11:57  Project\BaiDuLocation\.gradle\2.14.1\taskArtifacts\taskArtifacts.bin
     文件       41359  2017-07-28 11:55  Project\BaiDuLocation\.gradle\2.14.1\tasks\_app_compileDebugJavaWithJavac\localClassSetAnalysis\localClassSetAnalysis.bin
     文件          17  2017-07-28 11:55  Project\BaiDuLocation\.gradle\2.14.1\tasks\_app_compileDebugJavaWithJavac\localClassSetAnalysis\localClassSetAnalysis.lock
     文件       24211  2017-07-28 11:55  Project\BaiDuLocation\.gradle\2.14.1\tasks\_app_compileDebugJavaWithJavac\localJarClasspathSnapshot\localJarClasspathSnapshot.bin
     文件          17  2017-07-28 11:55  Project\BaiDuLocation\.gradle\2.14.1\tasks\_app_compileDebugJavaWithJavac\localJarClasspathSnapshot\localJarClasspathSnapshot.lock
     文件         686  2017-07-28 11:38  Project\BaiDuLocation\.idea\compiler.xml
     文件         699  2017-07-28 11:38  Project\BaiDuLocation\.idea\gradle.xml
     文件        2136  2017-07-28 11:45  Project\BaiDuLocation\.idea\misc.xml
     文件         363  2017-07-28 11:38  Project\BaiDuLocation\.idea\modules.xml
     文件         564  2017-07-28 11:38  Project\BaiDuLocation\.idea\runConfigurations.xml
     文件      147360  2017-07-28 13:53  Project\BaiDuLocation\.idea\workspace.xml
     文件          76  2017-07-28 11:38  Project\BaiDuLocation\.idea\copyright\profiles_settings.xml
     文件         241  2017-07-28 11:38  Project\BaiDuLocation\.idea\libraries\android_android_24.xml
     文件         645  2017-07-28 11:39  Project\BaiDuLocation\.idea\libraries\animated_vector_drawable_24_2_1.xml
     文件         761  2017-07-28 11:39  Project\BaiDuLocation\.idea\libraries\appcompat_v7_24_2_1.xml
     文件         235  2017-07-28 11:38  Project\BaiDuLocation\.idea\libraries\BaiduLBS_Android.xml
     文件         627  2017-07-28 11:39  Project\BaiDuLocation\.idea\libraries\espresso_core_2_2_2.xml
     文件         682  2017-07-28 11:39  Project\BaiDuLocation\.idea\libraries\espresso_idling_resource_2_2_2.xml
............此处省略101个文件信息

评论

共有 条评论