android 第一行代码2 源码,《第一行代码 第2版》源码

package com.example.helloworld;

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

}

}

属性            大小     日期    时间   名称

----------- ---------  ---------- -----  ----

目录           0  2018-01-15 05:37  booksource-master\

文件         270  2018-01-15 05:37  booksource-master\README.md

目录           0  2018-01-15 05:37  booksource-master\chapter1\

目录           0  2018-01-15 05:37  booksource-master\chapter1\HelloWorld\

文件          97  2018-01-15 05:37  booksource-master\chapter1\HelloWorld\.gitignore

目录           0  2018-01-15 05:37  booksource-master\chapter1\HelloWorld\app\

文件           7  2018-01-15 05:37  booksource-master\chapter1\HelloWorld\app\.gitignore

文件         622  2018-01-15 05:37  booksource-master\chapter1\HelloWorld\app\build.gradle

文件         679  2018-01-15 05:37  booksource-master\chapter1\HelloWorld\app\proguard-rules.pro

目录           0  2018-01-15 05:37  booksource-master\chapter1\HelloWorld\app\src\

目录           0  2018-01-15 05:37  booksource-master\chapter1\HelloWorld\app\src\androidTest\

目录           0  2018-01-15 05:37  booksource-master\chapter1\HelloWorld\app\src\androidTest\java\

目录           0  2018-01-15 05:37  booksource-master\chapter1\HelloWorld\app\src\androidTest\java\com\

目录           0  2018-01-15 05:37  booksource-master\chapter1\HelloWorld\app\src\androidTest\java\com\example\

目录           0  2018-01-15 05:37  booksource-master\chapter1\HelloWorld\app\src\androidTest\java\com\example\helloworld\

文件         748  2018-01-15 05:37  booksource-master\chapter1\HelloWorld\app\src\androidTest\java\com\example\helloworld\ExampleInstrumentedTest.java

目录           0  2018-01-15 05:37  booksource-master\chapter1\HelloWorld\app\src\main\

文件         667  2018-01-15 05:37  booksource-master\chapter1\HelloWorld\app\src\main\AndroidManifest.xml

目录           0  2018-01-15 05:37  booksource-master\chapter1\HelloWorld\app\src\main\java\

目录           0  2018-01-15 05:37  booksource-master\chapter1\HelloWorld\app\src\main\java\com\

目录           0  2018-01-15 05:37  booksource-master\chapter1\HelloWorld\app\src\main\java\com\example\

目录           0  2018-01-15 05:37  booksource-master\chapter1\HelloWorld\app\src\main\java\com\example\helloworld\

文件         473  2018-01-15 05:37  booksource-master\chapter1\HelloWorld\app\src\main\java\com\example\helloworld\HelloWorldActivity.java

目录           0  2018-01-15 05:37  booksource-master\chapter1\HelloWorld\app\src\main\res\

目录           0  2018-01-15 05:37  booksource-master\chapter1\HelloWorld\app\src\main\res\layout\

文件         749  2018-01-15 05:37  booksource-master\chapter1\HelloWorld\app\src\main\res\layout\hello_world_layout.xml

目录           0  2018-01-15 05:37  booksource-master\chapter1\HelloWorld\app\src\main\res\mipmap-hdpi\

文件        3418  2018-01-15 05:37  booksource-master\chapter1\HelloWorld\app\src\main\res\mipmap-hdpi\ic_launcher.png

目录           0  2018-01-15 05:37  booksource-master\chapter1\HelloWorld\app\src\main\res\mipmap-mdpi\

文件        2206  2018-01-15 05:37  booksource-master\chapter1\HelloWorld\app\src\main\res\mipmap-mdpi\ic_launcher.png

目录           0  2018-01-15 05:37  booksource-master\chapter1\HelloWorld\app\src\main\res\mipmap-xhdpi\

............此处省略2103个文件信息

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值