1
00:00:00,060 --> 00:00:01,829
各位大家好， <font color="#E5E5E5">我 </font><font color="#CCCCCC">叫 </font><font color="#E5E5E5">Gary Sims </font>

2
00:00:01,829 --> 00:00:04,110
从<font color="#E5E5E5">Android </font><font color="#CCCCCC">权威现在有 </font>

3
00:00:04,110 --> 00:00:06,000
 <font color="#E5E5E5">原因有很多 </font><font color="#CCCCCC">想要</font><font color="#E5E5E5">写一个Android </font>

4
00:00:06,000 --> 00:00:07,710
应用程序也许你<font color="#E5E5E5">什么时候有个好主意 </font>

5
00:00:07,710 --> 00:00:09,389
你想<font color="#CCCCCC">在Android上 </font><font color="#E5E5E5">接近它的类型 </font>

6
00:00:09,389 --> 00:00:12,090
 <font color="#E5E5E5">也许你知道PC编程你 </font>

7
00:00:12,090 --> 00:00:14,400
我想转移<font color="#E5E5E5">到 </font><font color="#CCCCCC">移动设备上 </font>

8
00:00:14,400 --> 00:00:16,410
 <font color="#E5E5E5">学院 </font><font color="#CCCCCC">或大学课程的一部分 </font>

9
00:00:16,410 --> 00:00:18,300
 <font color="#E5E5E5">不管 </font><font color="#CCCCCC">是 </font><font color="#E5E5E5">什么 原因是写作的Android </font>

10
00:00:18,300 --> 00:00:21,150
应用程序可以是<font color="#E5E5E5">有趣 </font><font color="#CCCCCC">和有益的，今天 </font>

11
00:00:21,150 --> 00:00:23,100
我要告诉你如何写<font color="#E5E5E5">你的 </font>

12
00:00:23,100 --> 00:00:29,670
 <font color="#CCCCCC">在 </font><font color="#E5E5E5">开始 </font><font color="#CCCCCC">之前， </font><font color="#E5E5E5">第一个 </font><font color="#CCCCCC">Android应用程序还可以 </font>

13
00:00:29,670 --> 00:00:31,109
我们<font color="#E5E5E5">需要提 </font><font color="#CCCCCC">几 </font><font color="#E5E5E5">件事 </font>

14
00:00:31,109 --> 00:00:32,940
首先， <font color="#CCCCCC">你真的需要知道一个 </font>

15
00:00:32,940 --> 00:00:35,100
 <font color="#CCCCCC">关于Java编程的一点点</font>

16
00:00:35,100 --> 00:00:37,110
语言<font color="#CCCCCC">， </font><font color="#E5E5E5">让你通过这个 </font>

17
00:00:37,110 --> 00:00:39,329
 <font color="#E5E5E5">特别教程 </font><font color="#CCCCCC">现在我已经 </font>

18
00:00:39,329 --> 00:00:42,270
 <font color="#E5E5E5">做 </font><font color="#CCCCCC">Java的基础知识 </font><font color="#E5E5E5">，你可以找到 </font><font color="#CCCCCC">一个视频 </font>

19
00:00:42,270 --> 00:00:44,399
 <font color="#E5E5E5">Android上的视频</font><font color="#CCCCCC">-  YouTube </font>

20
00:00:44,399 --> 00:00:45,719
 <font color="#E5E5E5">你也可以找到频道 </font>

21
00:00:45,719 --> 00:00:47,399
附带的文章<font color="#CCCCCC">在Android </font><font color="#E5E5E5">或 </font>

22
00:00:47,399 --> 00:00:49,680
 thority网站我建议<font color="#E5E5E5">你 </font>

23
00:00:49,680 --> 00:00:51,809
 <font color="#E5E5E5">去阅读，现在，当我提出 </font><font color="#CCCCCC">， </font>

24
00:00:51,809 --> 00:00:53,640
教程中<font color="#CCCCCC">有些人留在他们的 </font>

25
00:00:53,640 --> 00:00:55,230
 <font color="#E5E5E5">他们认为我要去的评论</font>

26
00:00:55,230 --> 00:00:57,750
 <font color="#CCCCCC">太快通过 </font><font color="#E5E5E5">材料所以 </font>

27
00:00:57,750 --> 00:00:59,280
这个视频<font color="#E5E5E5">我要说两件事 </font>

28
00:00:59,280 --> 00:01:00,809
首先<font color="#E5E5E5">，我要重复一下 </font>

29
00:01:00,809 --> 00:01:02,730
元素几次只是为了<font color="#CCCCCC">制作 </font>

30
00:01:02,730 --> 00:01:04,470
 <font color="#CCCCCC">确保你在 </font><font color="#E5E5E5">他们的时候 </font><font color="#CCCCCC">得到 </font><font color="#E5E5E5">它们 </font>

31
00:01:04,470 --> 00:01:06,420
 <font color="#E5E5E5">特别重要，其次 </font>

32
00:01:06,420 --> 00:01:08,790
请<font color="#E5E5E5">使用暂停按钮然后继续 </font>

33
00:01:08,790 --> 00:01:10,380
 <font color="#CCCCCC">如果你再回来看东西 </font>

34
00:01:10,380 --> 00:01:12,330
 <font color="#CCCCCC">第 </font><font color="#E5E5E5">一次没有得到它 </font>

35
00:01:12,330 --> 00:01:16,409
 <font color="#E5E5E5">周围 </font><font color="#CCCCCC">好了，让我们 </font><font color="#E5E5E5">开始好了，所以到 </font>

36
00:01:16,409 --> 00:01:17,549
编写一个应用程序，你<font color="#CCCCCC">会需要 </font><font color="#E5E5E5">一个 </font>

37
00:01:17,549 --> 00:01:19,409
 <font color="#E5E5E5">下载已安装的Android工作室 </font>

38
00:01:19,409 --> 00:01:21,570
这是<font color="#CCCCCC">由谷歌 </font><font color="#E5E5E5">和你提供的 </font>

39
00:01:21,570 --> 00:01:23,369
找不到<font color="#E5E5E5">它你会找到它的链接 </font>

40
00:01:23,369 --> 00:01:25,470
 <font color="#CCCCCC">在 </font><font color="#E5E5E5">这个视频的书面伴侣 </font>

41
00:01:25,470 --> 00:01:28,290
 <font color="#E5E5E5">现在 在 </font><font color="#CCCCCC">Android </font><font color="#E5E5E5">权威网站上 </font>

42
00:01:28,290 --> 00:01:30,420
包含在<font color="#CCCCCC">下载中的 </font><font color="#E5E5E5">是该软件 </font>

43
00:01:30,420 --> 00:01:32,400
 <font color="#CCCCCC">所有的Android开发</font><font color="#E5E5E5">工具包 </font>

44
00:01:32,400 --> 00:01:33,960
你需要<font color="#E5E5E5">开发一些零碎</font><font color="#CCCCCC">的东西 </font>

45
00:01:33,960 --> 00:01:36,780
应用程序以及<font color="#CCCCCC">Android模拟器等 </font>

46
00:01:36,780 --> 00:01:38,369
您最初可以测试您的应用程序

47
00:01:38,369 --> 00:01:41,070
一台PC <font color="#E5E5E5">而不需要安装它 </font>

48
00:01:41,070 --> 00:01:43,799
 <font color="#E5E5E5">然而， </font><font color="#CCCCCC">在 </font><font color="#E5E5E5">安装 </font><font color="#CCCCCC">之前， </font><font color="#E5E5E5">真实设备 </font>

49
00:01:43,799 --> 00:01:45,270
您需要的Android工作室

50
00:01:45,270 --> 00:01:47,130
 <font color="#CCCCCC">从中安装Java开发工具包 </font>

51
00:01:47,130 --> 00:01:49,710
 Oracle转到<font color="#E5E5E5">书面伴侣 </font>

52
00:01:49,710 --> 00:01:51,210
你会找到<font color="#E5E5E5">告诉你的链接</font>

53
00:01:51,210 --> 00:01:54,390
 <font color="#CCCCCC">现在您需要在哪里下载JDK </font>

54
00:01:54,390 --> 00:01:55,770
确保你下载<font color="#E5E5E5">权利 </font>

55
00:01:55,770 --> 00:01:58,770
版本<font color="#E5E5E5">我 </font><font color="#CCCCCC">有一个32位或64位检查 </font>

56
00:01:58,770 --> 00:02:00,240
哪个版本<font color="#CCCCCC">的Windows </font><font color="#E5E5E5">正在运行 </font>

57
00:02:00,240 --> 00:02:01,710
下载<font color="#E5E5E5">正确的，因为如果你 </font>

58
00:02:01,710 --> 00:02:03,000
 <font color="#E5E5E5">你不</font><font color="#CCCCCC">打算 </font><font color="#E5E5E5">有麻烦 </font>

59
00:02:03,000 --> 00:02:05,909
运行<font color="#E5E5E5">Android工作室安装和 </font>

60
00:02:05,909 --> 00:02:08,030
然后你可以<font color="#E5E5E5">安装Android工作室 </font>

61
00:02:08,030 --> 00:02:10,258
 <font color="#E5E5E5">在 </font><font color="#CCCCCC">安装 </font><font color="#E5E5E5">过程 </font><font color="#CCCCCC">中你需要 </font>

62
00:02:10,258 --> 00:02:12,810
 <font color="#CCCCCC">配置 </font><font color="#E5E5E5">要保留多少内存 </font>

63
00:02:12,810 --> 00:02:14,970
对于Android模拟器<font color="#E5E5E5">现在 </font>

64
00:02:14,970 --> 00:02:16,920
模拟器运行Android中<font color="#E5E5E5">的一种</font>

65
00:02:16,920 --> 00:02:19,740
 <font color="#E5E5E5">虚拟机作为Android手机用 </font>

66
00:02:19,740 --> 00:02:22,410
 <font color="#E5E5E5">英特尔处理器 </font><font color="#CCCCCC">比这更快 </font>

67
00:02:22,410 --> 00:02:25,069
在<font color="#E5E5E5">PC上模拟ARM处理器</font>

68
00:02:25,069 --> 00:02:27,540
 <font color="#E5E5E5">但要这样做虚拟机 </font>

69
00:02:27,540 --> 00:02:30,150
需要<font color="#E5E5E5">分配一些 </font><font color="#CCCCCC">内存 </font>

70
00:02:30,150 --> 00:02:32,220
安装程序<font color="#E5E5E5">会推荐如何 </font>

71
00:02:32,220 --> 00:02:34,319
要<font color="#E5E5E5">保留很多记忆，这很可能 </font>

72
00:02:34,319 --> 00:02:36,600
 <font color="#E5E5E5">但最好接受默认值 </font>

73
00:02:36,600 --> 00:02:38,640
 <font color="#CCCCCC">意识到 </font><font color="#E5E5E5">Android </font><font color="#CCCCCC">的组合 </font>

74
00:02:38,640 --> 00:02:41,610
 <font color="#CCCCCC">工作室 </font><font color="#E5E5E5">Java和模拟器都在运行 </font>

75
00:02:41,610 --> 00:02:44,250
一起<font color="#E5E5E5">可以相当内存饿了 </font><font color="#CCCCCC">， </font>

76
00:02:44,250 --> 00:02:47,670
 <font color="#CCCCCC">除非你，否则你的电脑会慢慢</font><font color="#E5E5E5">爬行 </font>

77
00:02:47,670 --> 00:02:49,950
有很多RAM <font color="#E5E5E5">谷歌 </font><font color="#CCCCCC">说你需要 </font>

78
00:02:49,950 --> 00:02:51,750
 <font color="#E5E5E5">至少 2千兆字节的RAM和 </font>

79
00:02:51,750 --> 00:02:53,280
这是<font color="#CCCCCC">4千兆字节的 </font><font color="#E5E5E5">RAM </font>

80
00:02:53,280 --> 00:02:56,070
 <font color="#E5E5E5">但是推荐</font><font color="#CCCCCC">我的主PC有8个 </font>

81
00:02:56,070 --> 00:02:58,709
数十亿字节<font color="#CCCCCC">的RAM，有时它仍然存在 </font>

82
00:02:58,709 --> 00:03:01,260
第一次运行Android时会遇到困难

83
00:03:01,260 --> 00:03:02,519
工作室它将执行一些

84
00:03:02,519 --> 00:03:04,019
初始化包括下载

85
00:03:04,019 --> 00:03:07,620
 <font color="#CCCCCC">安装最新的 </font><font color="#E5E5E5">Android SDK </font>

86
00:03:07,620 --> 00:03:09,600
可能需要<font color="#E5E5E5">几分钟，所以你会 </font>

87
00:03:09,600 --> 00:03:11,819
需要<font color="#E5E5E5">时，它终于 有点 </font><font color="#CCCCCC">耐心 </font>

88
00:03:11,819 --> 00:03:13,680
一切都<font color="#E5E5E5">启动 </font><font color="#CCCCCC">你会被 </font><font color="#E5E5E5">呈现 </font>

89
00:03:13,680 --> 00:03:15,569
有一个很好的<font color="#E5E5E5">菜单， </font><font color="#CCCCCC">可以让你 </font>

90
00:03:15,569 --> 00:03:17,519
开始<font color="#E5E5E5">一个新项目 </font><font color="#CCCCCC">开放现有 </font>

91
00:03:17,519 --> 00:03:20,280
 <font color="#E5E5E5">项目导入 </font><font color="#CCCCCC">项目等等 </font>

92
00:03:20,280 --> 00:03:22,680
你<font color="#CCCCCC">可能希望你</font><font color="#E5E5E5">点击 </font>

93
00:03:22,680 --> 00:03:25,829
 <font color="#E5E5E5">启动一个 </font><font color="#CCCCCC">新的 </font><font color="#E5E5E5">Android工作室项目 </font>

94
00:03:25,829 --> 00:03:27,120
然后<font color="#E5E5E5">需要 </font><font color="#CCCCCC">输入一个名字 </font>

95
00:03:27,120 --> 00:03:30,060
 <font color="#E5E5E5">您在应用程序名称字段 </font><font color="#CCCCCC">我 </font><font color="#E5E5E5">的应用程序 </font>

96
00:03:30,060 --> 00:03:32,370
会<font color="#CCCCCC">建议 </font><font color="#E5E5E5">像我的第一个应用程序 </font>

97
00:03:32,370 --> 00:03:35,160
在<font color="#CCCCCC">您需要 </font><font color="#E5E5E5">的公司域字段中 </font>

98
00:03:35,160 --> 00:03:36,900
 <font color="#E5E5E5">输入 </font><font color="#CCCCCC">贵公司 </font><font color="#E5E5E5">的域名 </font>

99
00:03:36,900 --> 00:03:39,060
 <font color="#CCCCCC">如果 </font><font color="#E5E5E5">你是一个独立的 </font><font color="#CCCCCC">开发人员 </font><font color="#E5E5E5">或 </font>

100
00:03:39,060 --> 00:03:41,880
业余爱好者进入自己的<font color="#CCCCCC">域名 </font><font color="#E5E5E5">，如果 </font>

101
00:03:41,880 --> 00:03:43,470
你只是在试验Android 

102
00:03:43,470 --> 00:03:45,060
并且<font color="#CCCCCC">不会将您的应用发布到 </font>

103
00:03:45,060 --> 00:03:47,489
谷歌播放很快就会离开

104
00:03:47,489 --> 00:03:49,440
 <font color="#CCCCCC">域，因为它是 </font><font color="#E5E5E5">也许你 </font><font color="#CCCCCC">可以 </font><font color="#E5E5E5">只 </font>

105
00:03:49,440 --> 00:03:52,680
 <font color="#E5E5E5">将用户更改为您自己的姓名 </font>

106
00:03:52,680 --> 00:03:55,560
 <font color="#CCCCCC">下一个 </font><font color="#E5E5E5">对话框确保手机和 </font>

107
00:03:55,560 --> 00:03:57,900
片剂<font color="#E5E5E5">被选择， </font><font color="#CCCCCC">并且 </font><font color="#E5E5E5">最小 </font>

108
00:03:57,900 --> 00:04:03,299
 <font color="#E5E5E5">SDK设置为API 15 Android 4.0.3 make </font>

109
00:04:03,299 --> 00:04:06,420
确保<font color="#E5E5E5">哪里和电视没有打勾 </font>

110
00:04:06,420 --> 00:04:10,260
添加<font color="#E5E5E5">活动到移动对话框使用 </font>

111
00:04:10,260 --> 00:04:12,510
默认的空白<font color="#CCCCCC">活动然后 </font>

112
00:04:12,510 --> 00:04:14,940
 <font color="#CCCCCC">在自定义上 </font><font color="#E5E5E5">再次单击“ 下一步 </font><font color="#CCCCCC">” </font>

113
00:04:14,940 --> 00:04:17,070
活动对话框<font color="#CCCCCC">只使用默认值 </font>

114
00:04:17,070 --> 00:04:19,978
值<font color="#CCCCCC">和单击完成集成 </font>

115
00:04:19,978 --> 00:04:21,899
开发<font color="#E5E5E5">环境IDE现在 </font>

116
00:04:21,899 --> 00:04:24,060
开始这可能需要几分钟

117
00:04:24,060 --> 00:04:25,740
 <font color="#E5E5E5">特别是 </font><font color="#CCCCCC">如果它是第一个 </font>

118
00:04:25,740 --> 00:04:28,319
我们在<font color="#CCCCCC">IDE时创建了一个项目</font>

119
00:04:28,319 --> 00:04:30,449
 <font color="#E5E5E5">如果您看到错误消息，则会出现 </font>

120
00:04:30,449 --> 00:04:32,910
 <font color="#CCCCCC">渲染问题渲染失败 </font>

121
00:04:32,910 --> 00:04:35,460
一个已知的bug然后只需单击<font color="#E5E5E5">重建 </font>

122
00:04:35,460 --> 00:04:39,090
链接如错误旁边所示

123
00:04:39,090 --> 00:04:41,250
 <font color="#E5E5E5">IDE的默认</font><font color="#CCCCCC">工作空间 </font><font color="#E5E5E5">已拆分 </font>

124
00:04:41,250 --> 00:04:43,169
分为<font color="#E5E5E5">三个部分， </font><font color="#CCCCCC">不包括 </font><font color="#E5E5E5">工具栏 </font>

125
00:04:43,169 --> 00:04:46,169
 <font color="#CCCCCC">在左上角 </font><font color="#E5E5E5">是一个 </font><font color="#CCCCCC">项目树 </font>

126
00:04:46,169 --> 00:04:47,669
它的权利是代码编辑器<font color="#CCCCCC">和 </font>

127
00:04:47,669 --> 00:04:50,099
设计师<font color="#CCCCCC">和 </font><font color="#E5E5E5">他们下面都是 </font><font color="#CCCCCC">在哪里 </font>

128
00:04:50,099 --> 00:04:51,810
你会看到<font color="#E5E5E5">来自的各种消息 </font>

129
00:04:51,810 --> 00:04:54,630
编译器<font color="#E5E5E5">等等， </font><font color="#CCCCCC">你可以 </font>

130
00:04:54,630 --> 00:04:56,039
 <font color="#CCCCCC">实际上编译并运行auto </font>

131
00:04:56,039 --> 00:04:58,380
 <font color="#CCCCCC">生成的代码， </font><font color="#E5E5E5">但它不是很好 </font>

132
00:04:58,380 --> 00:05:00,509
 <font color="#E5E5E5">有趣的是我们 </font><font color="#CCCCCC">要做的是 </font>

133
00:05:00,509 --> 00:05:02,400
我们<font color="#E5E5E5">要 十分 添加一些东西 </font><font color="#CCCCCC">不 </font>

134
00:05:02,400 --> 00:05:04,259
很多，但<font color="#E5E5E5">足以 </font><font color="#CCCCCC">让你有品位 </font>

135
00:05:04,259 --> 00:05:09,449
 <font color="#E5E5E5">Android应用程序开发项目 </font>

136
00:05:09,449 --> 00:05:11,099
树拥有不同的文件<font color="#E5E5E5">和 </font>

137
00:05:11,099 --> 00:05:12,840
 <font color="#CCCCCC">你需要建立自己的资源 </font>

138
00:05:12,840 --> 00:05:15,539
 <font color="#E5E5E5">Android应用程序节点下的Android应用程序 </font>

139
00:05:15,539 --> 00:05:17,460
项目<font color="#E5E5E5">树你会看到其他几个 </font>

140
00:05:17,460 --> 00:05:20,520
 <font color="#CCCCCC">你 </font><font color="#E5E5E5">喜欢的文件夹子文件夹之类的节点</font>

141
00:05:20,520 --> 00:05:22,830
可以扩展<font color="#E5E5E5">顶级节点 </font>

142
00:05:22,830 --> 00:05:26,460
表现出Java <font color="#E5E5E5">和res和res的立场 </font>

143
00:05:26,460 --> 00:05:29,940
对于<font color="#E5E5E5">清单下的资源，你会 </font>

144
00:05:29,940 --> 00:05:32,900
找到<font color="#CCCCCC">Android清单或XML文件</font>

145
00:05:32,900 --> 00:05:35,789
每个应用程序<font color="#E5E5E5">必须具有其中之一 </font>

146
00:05:35,789 --> 00:05:39,330
将文件<font color="#E5E5E5">作为 </font><font color="#CCCCCC">包含 </font><font color="#E5E5E5">信息 的XML文件 </font>

147
00:05:39,330 --> 00:05:42,210
关于<font color="#CCCCCC">应用程序， </font><font color="#E5E5E5">包括其名称之一 </font>

148
00:05:42,210 --> 00:05:43,740
 <font color="#CCCCCC">你要添加的最常见的东西 </font>

149
00:05:43,740 --> 00:05:45,810
到此文件是<font color="#E5E5E5">权限列表</font>

150
00:05:45,810 --> 00:05:48,930
 <font color="#E5E5E5">您的应用程序需要进行此简单测试 </font>

151
00:05:48,930 --> 00:05:51,949
 <font color="#E5E5E5">我们不需要在 这里 </font><font color="#CCCCCC">改变 </font><font color="#E5E5E5">任何东西 </font>

152
00:05:51,949 --> 00:05:54,840
 <font color="#E5E5E5">在Java文件夹下你会找到 </font>

153
00:05:54,840 --> 00:05:57,300
 <font color="#E5E5E5">实际上 </font><font color="#CCCCCC">你 </font><font color="#E5E5E5">的应用程序的Java代码 </font>

154
00:05:57,300 --> 00:05:59,159
 <font color="#CCCCCC">在一个 </font><font color="#E5E5E5">叫做 </font><font color="#CCCCCC">的子文件夹下找到它 </font>

155
00:05:59,159 --> 00:06:01,650
像<font color="#CCCCCC">condor示例点用户 </font>

156
00:06:01,650 --> 00:06:04,349
点我的第一个应用程序或<font color="#E5E5E5">任何是 </font>

157
00:06:04,349 --> 00:06:06,330
 <font color="#E5E5E5">您之前输入的域名</font>

158
00:06:06,330 --> 00:06:08,909
当我们<font color="#E5E5E5">下启动该项目</font>

159
00:06:08,909 --> 00:06:10,770
 <font color="#CCCCCC">你会找到一个名为 </font><font color="#E5E5E5">main </font><font color="#CCCCCC">的文件夹 </font>

160
00:06:10,770 --> 00:06:13,530
活动<font color="#E5E5E5">Java这是切入点 </font>

161
00:06:13,530 --> 00:06:15,780
 <font color="#CCCCCC">为您的 </font><font color="#E5E5E5">应用程序和我们的示例应用程序 </font>

162
00:06:15,780 --> 00:06:17,430
 <font color="#E5E5E5">这 </font><font color="#CCCCCC">是 </font><font color="#E5E5E5">我们唯一的Java文件 </font>

163
00:06:17,430 --> 00:06:19,620
 <font color="#CCCCCC">需要但我们 </font><font color="#E5E5E5">需要添加 </font>

164
00:06:19,620 --> 00:06:23,580
一些Java <font color="#CCCCCC">再次 进入 </font><font color="#E5E5E5">这个文件 </font>

165
00:06:23,580 --> 00:06:25,560
所以<font color="#E5E5E5">你得到 </font><font color="#CCCCCC">了 </font><font color="#E5E5E5">Java 下 </font><font color="#CCCCCC">的 </font>

166
00:06:25,560 --> 00:06:27,840
文件夹你要<font color="#CCCCCC">找到一个 </font><font color="#E5E5E5">子文件夹 </font>

167
00:06:27,840 --> 00:06:30,509
 <font color="#CCCCCC">与 </font><font color="#E5E5E5">贵公司 </font><font color="#CCCCCC">的一个域名 </font>

168
00:06:30,509 --> 00:06:33,449
追加到<font color="#CCCCCC">它 </font><font color="#E5E5E5">，并在应用程序名称</font>

169
00:06:33,449 --> 00:06:34,400
 <font color="#E5E5E5">你会发现的 </font>

170
00:06:34,400 --> 00:06:37,020
 mainactivity.java <font color="#CCCCCC">，这是主要的 </font>

171
00:06:37,020 --> 00:06:38,729
入口点

172
00:06:38,729 --> 00:06:41,339
 <font color="#E5E5E5">资源非常简单</font>

173
00:06:41,339 --> 00:06:43,800
 <font color="#E5E5E5">文件 </font><font color="#CCCCCC">夹你要去 </font><font color="#E5E5E5">的res </font><font color="#CCCCCC">文件夹 </font>

174
00:06:43,800 --> 00:06:46,319
 <font color="#E5E5E5">现在找到很多其他子文件夹 </font>

175
00:06:46,319 --> 00:06:48,180
是不同的<font color="#E5E5E5">资源 </font><font color="#CCCCCC">所在 </font>

176
00:06:48,180 --> 00:06:50,699
 <font color="#CCCCCC">项目保持意味着图形 </font>

177
00:06:50,699 --> 00:06:54,659
 <font color="#E5E5E5">字符串值菜单，最重要的是 </font>

178
00:06:54,659 --> 00:06:56,849
在定义<font color="#E5E5E5">用户 </font>

179
00:06:56,849 --> 00:07:00,659
界面<font color="#CCCCCC">现在存储 </font><font color="#E5E5E5">了两个 </font>

180
00:07:00,659 --> 00:07:02,699
 <font color="#E5E5E5">这个示例 </font><font color="#CCCCCC">应用程序 </font><font color="#E5E5E5">对我们感兴趣</font>

181
00:07:02,699 --> 00:07:06,330
 <font color="#CCCCCC">是布局 </font><font color="#E5E5E5">下的 </font><font color="#CCCCCC">布局 </font><font color="#E5E5E5">和值 </font>

182
00:07:06,330 --> 00:07:08,330
你会找到一个名为<font color="#E5E5E5">activity的文件</font>

183
00:07:08,330 --> 00:07:12,749
 <font color="#E5E5E5">underbar main.xml </font><font color="#CCCCCC">它是一个XML文件 </font>

184
00:07:12,749 --> 00:07:15,360
说明<font color="#E5E5E5">用户界面 </font><font color="#CCCCCC">有 </font>

185
00:07:15,360 --> 00:07:17,699
 <font color="#CCCCCC">编辑 </font><font color="#E5E5E5">此文件 </font><font color="#CCCCCC">的两种方法是第 </font><font color="#E5E5E5">一种 </font>

186
00:07:17,699 --> 00:07:20,669
 <font color="#E5E5E5">直接编辑XML代码和 </font>

187
00:07:20,669 --> 00:07:22,800
二是<font color="#CCCCCC">使用 内置</font><font color="#E5E5E5">的</font><font color="#CCCCCC"> UI </font>

188
00:07:22,800 --> 00:07:27,240
设计师<font color="#E5E5E5">如此在res布局下你会发现 </font>

189
00:07:27,240 --> 00:07:30,629
一个名为<font color="#CCCCCC">activity main.xml的文件</font>

190
00:07:30,629 --> 00:07:32,759
是<font color="#CCCCCC">描述 </font><font color="#E5E5E5">用户的文件</font>

191
00:07:32,759 --> 00:07:36,240
 <font color="#E5E5E5">现在，您的Android应用程序界面一次 </font>

192
00:07:36,240 --> 00:07:38,129
你变得精通<font color="#E5E5E5">和 </font><font color="#CCCCCC">专家 </font>

193
00:07:38,129 --> 00:07:40,770
 <font color="#E5E5E5">您可能会发现 Android应用开发 </font>

194
00:07:40,770 --> 00:07:43,139
你自己经常<font color="#E5E5E5">编辑XML文件 </font>

195
00:07:43,139 --> 00:07:45,959
 <font color="#E5E5E5">直接但谢天谢地Android工作室 </font>

196
00:07:45,959 --> 00:07:48,749
有一个内置的UI设计师<font color="#E5E5E5">和你一样 </font>

197
00:07:48,749 --> 00:07:51,569
使用。更改<font color="#CCCCCC">UI上的元素 </font>

198
00:07:51,569 --> 00:07:53,699
设计师<font color="#E5E5E5">会自动</font><font color="#CCCCCC">创建 </font>

199
00:07:53,699 --> 00:07:56,339
相应的XML文件<font color="#E5E5E5">就是这样 </font>

200
00:07:56,339 --> 00:07:58,680
我们<font color="#E5E5E5">将在我们的示例应用程序中执行 </font>

201
00:07:58,680 --> 00:08:02,310
 values <font color="#CCCCCC">文件夹包含的片刻</font>

202
00:08:02,310 --> 00:08:04,499
几个<font color="#E5E5E5">不同的XML文件 </font><font color="#CCCCCC">和最多 </font>

203
00:08:04,499 --> 00:08:06,360
 <font color="#CCCCCC">这个 </font><font color="#E5E5E5">示例应用程序的重要之一是 </font>

204
00:08:06,360 --> 00:08:09,719
字符串点XML而不是硬编码

205
00:08:09,719 --> 00:08:12,689
字符串<font color="#CCCCCC">值为Java代码 </font><font color="#E5E5E5">值 </font>

206
00:08:12,689 --> 00:08:15,120
 <font color="#E5E5E5">然后放入字符串点XML </font>

207
00:08:15,120 --> 00:08:18,059
 <font color="#CCCCCC">它们 </font><font color="#E5E5E5">现在 </font><font color="#CCCCCC">正在使用的ID中引用 </font>

208
00:08:18,059 --> 00:08:20,069
这个<font color="#E5E5E5">系统的优点如果是一个字符串 </font>

209
00:08:20,069 --> 00:08:22,620
需要<font color="#E5E5E5">在多个 </font><font color="#CCCCCC">地方 </font><font color="#E5E5E5">进行更改 </font>

210
00:08:22,620 --> 00:08:25,199
 <font color="#CCCCCC">你所要做的就是改变 </font><font color="#E5E5E5">一次 </font>

211
00:08:25,199 --> 00:08:27,389
 <font color="#E5E5E5">字符串点XML，它将被更改 </font>

212
00:08:27,389 --> 00:08:30,059
在<font color="#E5E5E5">它所做的 所有 </font><font color="#CCCCCC">代码中 </font>

213
00:08:30,059 --> 00:08:32,370
 <font color="#CCCCCC">在 </font><font color="#E5E5E5">应用程序中支持</font><font color="#CCCCCC">多种语言 </font>

214
00:08:32,370 --> 00:08:35,639
 <font color="#E5E5E5">这整个更容易，只是重复 </font>

215
00:08:35,639 --> 00:08:38,549
字符串点XML是字符串的位置

216
00:08:38,549 --> 00:08:40,828
值<font color="#E5E5E5">存储在Java代码中 </font>

217
00:08:40,828 --> 00:08:43,919
并<font color="#E5E5E5">在XML文件中进行布局 </font>

218
00:08:43,919 --> 00:08:46,440
只需<font color="#E5E5E5">使用ID引用字符串 </font>

219
00:08:46,440 --> 00:08:48,180
我们会看到这一点

220
00:08:48,180 --> 00:08:49,980
在几分钟<font color="#E5E5E5">内 </font>

221
00:08:49,980 --> 00:08:51,900
所以只是总结然后创建<font color="#E5E5E5">这个 </font>

222
00:08:51,900 --> 00:08:53,280
 <font color="#CCCCCC">那我们 今天</font><font color="#E5E5E5">要做的示例应用程序</font>

223
00:08:53,280 --> 00:08:57,000
 <font color="#CCCCCC">您需要修改 </font><font color="#E5E5E5">mainactivity.java </font><font color="#CCCCCC">到 </font>

224
00:08:57,000 --> 00:08:59,130
添加一些<font color="#E5E5E5">我们 </font><font color="#CCCCCC">需要的 </font><font color="#E5E5E5">Java代码 </font>

225
00:08:59,130 --> 00:09:02,490
修改活动underbar <font color="#E5E5E5">main dot </font><font color="#CCCCCC">xml </font>

226
00:09:02,490 --> 00:09:04,710
 <font color="#E5E5E5">因为我们要改变UI和 </font>

227
00:09:04,710 --> 00:09:06,690
我们<font color="#E5E5E5">需要修改字符串或 </font>

228
00:09:06,690 --> 00:09:08,520
 <font color="#E5E5E5">xml因为我们想 </font><font color="#CCCCCC">添加 </font><font color="#E5E5E5">一些 </font>

229
00:09:08,520 --> 00:09:12,290
硬编码的字符串，如<font color="#CCCCCC">ok或点击我 </font>

230
00:09:12,290 --> 00:09:18,930
进入该文件<font color="#E5E5E5">所以让我们开始吧 </font>

231
00:09:18,930 --> 00:09:20,700
改变标签的文本<font color="#E5E5E5">和 </font>

232
00:09:20,700 --> 00:09:23,550
改变它的排列<font color="#E5E5E5">首先找到 </font>

233
00:09:23,550 --> 00:09:26,460
活动underbar主要点<font color="#CCCCCC">xml文件 </font>

234
00:09:26,460 --> 00:09:28,350
项目<font color="#CCCCCC">树并 </font><font color="#E5E5E5">双击 </font>

235
00:09:28,350 --> 00:09:31,530
记得<font color="#CCCCCC">活动main.xml是 </font>

236
00:09:31,530 --> 00:09:33,450
保存用户界面的文件

237
00:09:33,450 --> 00:09:36,060
 <font color="#E5E5E5">定义 </font><font color="#CCCCCC">的</font><font color="#E5E5E5">代码</font><font color="#CCCCCC">的</font><font color="#E5E5E5">底部 </font>

238
00:09:36,060 --> 00:09:38,190
窗口<font color="#E5E5E5">有两个标签设计和 </font>

239
00:09:38,190 --> 00:09:40,680
文字确保您<font color="#CCCCCC">使用的 </font><font color="#E5E5E5">是设计 </font>

240
00:09:40,680 --> 00:09:43,530
选项卡<font color="#E5E5E5">现在单击文本 </font><font color="#CCCCCC">hello world </font>

241
00:09:43,530 --> 00:09:46,320
 <font color="#CCCCCC">这是在渲染上显示 </font><font color="#E5E5E5">的 </font>

242
00:09:46,320 --> 00:09:48,990
 <font color="#E5E5E5">手机，如果它</font><font color="#CCCCCC">太小</font><font color="#E5E5E5"> ， 用户放大 </font>

243
00:09:48,990 --> 00:09:51,060
按钮加号放大

244
00:09:51,060 --> 00:09:53,130
玻璃<font color="#E5E5E5">放大</font><font color="#CCCCCC"> </font><font color="#E5E5E5">的</font><font color="#CCCCCC">渲染 </font>

245
00:09:53,130 --> 00:09:56,580
 <font color="#E5E5E5">在物业窗口的电话只是为了 </font>

246
00:09:56,580 --> 00:09:58,950
 <font color="#CCCCCC">手机图像 </font><font color="#E5E5E5">滚动 </font><font color="#CCCCCC">的 降 </font><font color="#E5E5E5">权 </font>

247
00:09:58,950 --> 00:10:03,620
直到<font color="#E5E5E5">找到布局：父级中心 </font>

248
00:10:03,620 --> 00:10:06,630
单击旁边的空格<font color="#E5E5E5">并选择 </font>

249
00:10:06,630 --> 00:10:09,660
水平<font color="#E5E5E5">的你好世界文本现在 </font>

250
00:10:09,660 --> 00:10:13,770
 <font color="#E5E5E5">现在 跳到 </font><font color="#CCCCCC">水平中心 </font>

251
00:10:13,770 --> 00:10:16,350
 <font color="#E5E5E5">将文本改为字符串hello world </font>

252
00:10:16,350 --> 00:10:18,540
 <font color="#E5E5E5">在我们提到的那个文件中 </font>

253
00:10:18,540 --> 00:10:22,080
早期的字符串点在<font color="#E5E5E5">资源下的XML </font>

254
00:10:22,080 --> 00:10:24,720
值<font color="#E5E5E5">如果你 </font><font color="#CCCCCC">双击该文件 </font>

255
00:10:24,720 --> 00:10:27,000
你会看到<font color="#CCCCCC">XML的几</font><font color="#E5E5E5">行 </font>

256
00:10:27,000 --> 00:10:29,180
定义应用程序使用的一些字符串

257
00:10:29,180 --> 00:10:32,400
找到<font color="#CCCCCC">说明字符串的静止行 </font>

258
00:10:32,400 --> 00:10:34,950
等于<font color="#E5E5E5">尖括号中的 hello </font><font color="#CCCCCC">world </font>

259
00:10:34,950 --> 00:10:38,190
 <font color="#CCCCCC">然后 </font><font color="#E5E5E5">你好世界然后关闭 </font>

260
00:10:38,190 --> 00:10:41,340
字符串选项卡并更改<font color="#CCCCCC">hello世界 </font>

261
00:10:41,340 --> 00:10:45,290
 <font color="#E5E5E5">如果你敢的话 ， 感谢我的感叹号</font>

262
00:10:45,290 --> 00:10:48,600
现在<font color="#CCCCCC">在设计上添加按钮 </font>

263
00:10:48,600 --> 00:10:51,330
活动标签<font color="#CCCCCC">主窗口 </font><font color="#E5E5E5">XML </font>

264
00:10:51,330 --> 00:10:53,660
罚款并<font color="#CCCCCC">点击该按钮</font>

265
00:10:53,660 --> 00:10:56,820
 <font color="#CCCCCC">托盘列表 </font><font color="#E5E5E5">在左侧 </font>

266
00:10:56,820 --> 00:10:59,400
手机渲染现在点击<font color="#E5E5E5">某处 </font>

267
00:10:59,400 --> 00:11:02,100
 <font color="#CCCCCC">如果你敢的话， </font><font color="#E5E5E5">在文本下方</font><font color="#CCCCCC">点按我 </font>

268
00:11:02,100 --> 00:11:03,510
手机图片

269
00:11:03,510 --> 00:11:06,780
 <font color="#E5E5E5">所以它现在在中间的某个地方 </font>

270
00:11:06,780 --> 00:11:08,550
 <font color="#CCCCCC">双击 </font><font color="#E5E5E5">按钮 </font><font color="#CCCCCC">以便 </font><font color="#E5E5E5">您 </font>

271
00:11:08,550 --> 00:11:11,130
可以改变<font color="#E5E5E5">快速和 </font><font color="#CCCCCC">脏 </font><font color="#E5E5E5">的文本 </font>

272
00:11:11,130 --> 00:11:13,230
 <font color="#E5E5E5">方式只是改变文本并离开 </font>

273
00:11:13,230 --> 00:11:16,380
它硬编码到Java文件中<font color="#E5E5E5">却 </font>

274
00:11:16,380 --> 00:11:19,020
 <font color="#E5E5E5">因为我们已经习惯了 </font>

275
00:11:19,020 --> 00:11:21,420
 <font color="#E5E5E5">strings dot XML我们最好 </font><font color="#CCCCCC">携带 </font>

276
00:11:21,420 --> 00:11:24,420
在<font color="#CCCCCC">文本字段的末尾使用它 </font>

277
00:11:24,420 --> 00:11:27,480
 <font color="#E5E5E5">是一个点击三个点的按钮 </font>

278
00:11:27,480 --> 00:11:29,550
在<font color="#CCCCCC">出现的</font><font color="#E5E5E5">资源 </font><font color="#CCCCCC">窗口中 </font>

279
00:11:29,550 --> 00:11:32,190
点击<font color="#CCCCCC">新资源，然后点击新资源 </font>

280
00:11:32,190 --> 00:11:35,670
 <font color="#E5E5E5">输入资源名称中的字符串值</font>

281
00:11:35,670 --> 00:11:39,090
点击我并在资源值中输入

282
00:11:39,090 --> 00:11:43,500
 <font color="#CCCCCC">点按“ </font><font color="#E5E5E5">感叹号”， </font><font color="#CCCCCC">然后点击“ </font><font color="#E5E5E5">确定” </font>

283
00:11:43,500 --> 00:11:45,750
你<font color="#E5E5E5">现在会注意到这个按钮 </font>

284
00:11:45,750 --> 00:11:49,320
点击我说最后一步是<font color="#E5E5E5">添加 </font>

285
00:11:49,320 --> 00:11:51,720
一些<font color="#CCCCCC">反应的 Java代码</font>

286
00:11:51,720 --> 00:11:53,940
按钮被<font color="#E5E5E5">点击其中一个UI </font>

287
00:11:53,940 --> 00:11:56,520
 <font color="#E5E5E5">Android的 </font><font color="#CCCCCC">元素 </font><font color="#E5E5E5">称为toast a </font>

288
00:11:56,520 --> 00:11:58,590
 toast提供简单的<font color="#CCCCCC">反馈 </font>

289
00:11:58,590 --> 00:12:00,480
 <font color="#E5E5E5">出现一些小弹出窗口</font>

290
00:12:00,480 --> 00:12:02,220
时刻<font color="#CCCCCC">然后消失了 </font>

291
00:12:02,220 --> 00:12:03,780
 <font color="#CCCCCC">你去过的时候一定见过它 </font>

292
00:12:03,780 --> 00:12:06,120
 <font color="#E5E5E5">例如在Gmail中使用Android </font>

293
00:12:06,120 --> 00:12:08,220
 <font color="#E5E5E5">从 </font><font color="#CCCCCC">电子邮件导航离开你之前 </font>

294
00:12:08,220 --> 00:12:10,590
发送它会触发保存为的消息

295
00:12:10,590 --> 00:12:13,680
草稿吐司吐司<font color="#E5E5E5">自动出现 </font>

296
00:12:13,680 --> 00:12:16,380
然后在预定义后消失

297
00:12:16,380 --> 00:12:19,590
 <font color="#E5E5E5">我们需要的示例应用程序 </font><font color="#CCCCCC">超时 </font>

298
00:12:19,590 --> 00:12:20,970
显示<font color="#E5E5E5">祝酒词 </font>

299
00:12:20,970 --> 00:12:23,520
每一个按钮<font color="#E5E5E5">被点击的时间</font>

300
00:12:23,520 --> 00:12:26,480
第一步是添加一些Java代码<font color="#E5E5E5">查找 </font>

301
00:12:26,480 --> 00:12:29,370
 mainactivity.java <font color="#CCCCCC">并添加以下内容 </font>

302
00:12:29,370 --> 00:12:33,810
下面的代码<font color="#E5E5E5">创建单词视图为 </font>

303
00:12:33,810 --> 00:12:37,080
在视图<font color="#E5E5E5">v中可能是红色的 </font>

304
00:12:37,080 --> 00:12:39,420
 <font color="#E5E5E5">这附近显示的消息泡泡</font>

305
00:12:39,420 --> 00:12:41,130
 Android工作室告诉<font color="#E5E5E5">你使用过 </font>

306
00:12:41,130 --> 00:12:44,100
新构造视图而不<font color="#E5E5E5">导入它 </font>

307
00:12:44,100 --> 00:12:45,960
在<font color="#CCCCCC">顶部的导入部分</font>

308
00:12:45,960 --> 00:12:48,390
 <font color="#CCCCCC">Java代码 </font><font color="#E5E5E5">其实这是很 容易 </font>

309
00:12:48,390 --> 00:12:51,030
修复<font color="#E5E5E5">单击单词视图并按alt </font>

310
00:12:51,030 --> 00:12:54,630
进入<font color="#E5E5E5">Android工作室 </font><font color="#CCCCCC">将为 </font><font color="#E5E5E5">您 </font><font color="#CCCCCC">修复它 </font>

311
00:12:54,630 --> 00:12:57,210
 <font color="#CCCCCC">如果吐司这个词是 </font><font color="#E5E5E5">红色的，那么就做 </font>

312
00:12:57,210 --> 00:12:59,490
 <font color="#CCCCCC">完全相同的事情点击这个词 </font>

313
00:12:59,490 --> 00:13:03,060
烤面包<font color="#E5E5E5">然后按alt现在回来 </font>

314
00:13:03,060 --> 00:13:05,670
在设计师<font color="#E5E5E5">的活动下吧 </font>

315
00:13:05,670 --> 00:13:08,430
主门XML点击按钮和

316
00:13:08,430 --> 00:13:10,140
 <font color="#CCCCCC">通过</font><font color="#E5E5E5">属性列表中 </font><font color="#CCCCCC">向下滚动</font>

317
00:13:10,140 --> 00:13:13,330
直到你找到<font color="#E5E5E5">点击 </font>

318
00:13:13,330 --> 00:13:15,550
点击组合框<font color="#E5E5E5">右边 </font>

319
00:13:15,550 --> 00:13:18,040
它<font color="#E5E5E5">会看到一系列功能 </font>

320
00:13:18,040 --> 00:13:21,070
 <font color="#E5E5E5">点击按钮点击即可 </font>

321
00:13:21,070 --> 00:13:23,880
我们刚刚<font color="#CCCCCC">添加到Java代码中的函数</font>

322
00:13:23,880 --> 00:13:27,730
 <font color="#E5E5E5">所以现在按钮 </font><font color="#CCCCCC">点击功能会 </font>

323
00:13:27,730 --> 00:13:30,510
 <font color="#E5E5E5">每当按下按钮时都会被呼叫 </font>

324
00:13:30,510 --> 00:13:32,980
 <font color="#CCCCCC">当它被调用时，它会创建一个吐司 </font>

325
00:13:32,980 --> 00:13:35,440
叫<font color="#E5E5E5">我的吐司将显示 </font>

326
00:13:35,440 --> 00:13:36,579
消息<font color="#E5E5E5">ouch </font>

327
00:13:36,579 --> 00:13:40,269
为了表示吐司<font color="#E5E5E5">我们只是叫我的吐司 </font>

328
00:13:40,269 --> 00:13:44,500
 <font color="#E5E5E5">点秀，这就是它 </font>

329
00:13:44,500 --> 00:13:47,050
 <font color="#E5E5E5">现在编写应用程序是时候测试它了 </font>

330
00:13:47,050 --> 00:13:52,529
在<font color="#E5E5E5">“工具”菜单下的模拟器中 </font>

331
00:13:52,529 --> 00:13:57,040
导航<font color="#CCCCCC">到 </font><font color="#E5E5E5">Android AVD管理器 </font>

332
00:13:57,040 --> 00:13:59,529
工具显示当前列表

333
00:13:59,529 --> 00:14:02,560
配置<font color="#CCCCCC">你的 </font><font color="#E5E5E5">Android虚拟 </font><font color="#CCCCCC">设备 </font>

334
00:14:02,560 --> 00:14:04,600
将<font color="#E5E5E5">配置一个设备 </font>

335
00:14:04,600 --> 00:14:05,200
默认

336
00:14:05,200 --> 00:14:07,930
 <font color="#E5E5E5">可能是一个 </font><font color="#CCCCCC">nexus 5 </font><font color="#E5E5E5">点击 </font><font color="#CCCCCC">该剧 </font>

337
00:14:07,930 --> 00:14:10,600
 <font color="#E5E5E5">图标 </font><font color="#CCCCCC">操作下的三角形 </font>

338
00:14:10,600 --> 00:14:13,350
列，这将启动<font color="#E5E5E5">模拟器 </font>

339
00:14:13,350 --> 00:14:15,700
 <font color="#E5E5E5">现在取决于 </font><font color="#CCCCCC">你 </font><font color="#E5E5E5">的表现 </font>

340
00:14:15,700 --> 00:14:18,700
 <font color="#CCCCCC">PC和多少RAM你</font><font color="#E5E5E5">有 </font>

341
00:14:18,700 --> 00:14:21,100
模拟器可能需要几分钟<font color="#E5E5E5">时间 </font>

342
00:14:21,100 --> 00:14:25,060
 <font color="#CCCCCC">启动一旦模拟器 </font><font color="#E5E5E5">启动并 </font>

343
00:14:25,060 --> 00:14:27,250
运行转到工具并<font color="#CCCCCC">单击运行应用程序 </font>

344
00:14:27,250 --> 00:14:29,649
这将编译您的应用程序<font color="#E5E5E5">并发送它 </font>

345
00:14:29,649 --> 00:14:31,930
 <font color="#E5E5E5">在此过程中到模拟器 </font>

346
00:14:31,930 --> 00:14:33,940
 <font color="#E5E5E5">Android工作室会问你哪个 </font>

347
00:14:33,940 --> 00:14:36,370
模拟器使用你<font color="#E5E5E5">会看到你的 </font>

348
00:14:36,370 --> 00:14:38,170
 <font color="#CCCCCC">它应该是列表中的模拟器 </font>

349
00:14:38,170 --> 00:14:41,950
默认<font color="#E5E5E5">选项，所以只需单击确定应用程序 </font>

350
00:14:41,950 --> 00:14:44,350
 <font color="#E5E5E5">最终将出现在模拟器中 </font>

351
00:14:44,350 --> 00:14:47,529
你<font color="#E5E5E5">现在可以点击 </font><font color="#CCCCCC">点按 </font><font color="#E5E5E5">我按钮 </font>

352
00:14:47,529 --> 00:14:49,510
 <font color="#E5E5E5">留意出现</font><font color="#CCCCCC">对</font><font color="#E5E5E5">敬酒 </font>

353
00:14:49,510 --> 00:14:51,959
 <font color="#E5E5E5">仿真</font><font color="#CCCCCC">设备 </font><font color="#E5E5E5">的底部</font>

354
00:14:51,959 --> 00:14:54,850
恭喜它实际上是可能的

355
00:14:54,850 --> 00:14:57,550
 <font color="#CCCCCC">一个</font><font color="#E5E5E5">真正的Android设备上运行你的应用程序 </font>

356
00:14:57,550 --> 00:14:58,990
 <font color="#E5E5E5">最简单的方法是 </font>

357
00:14:58,990 --> 00:15:01,690
 <font color="#CCCCCC">在手机上启用USB调试 </font>

358
00:15:01,690 --> 00:15:05,260
它连接<font color="#CCCCCC">到 </font><font color="#E5E5E5">PC的USB调试 </font>

359
00:15:05,260 --> 00:15:07,089
 <font color="#E5E5E5">选项可以在设置下找到 </font>

360
00:15:07,089 --> 00:15:09,250
 <font color="#E5E5E5">开发人员，如果你没有 </font>

361
00:15:09,250 --> 00:15:11,260
 <font color="#E5E5E5">设置菜单中的开发人员选项 </font>

362
00:15:11,260 --> 00:15:14,290
然后去<font color="#CCCCCC">设置 </font><font color="#E5E5E5">，然后点击 </font>

363
00:15:14,290 --> 00:15:17,440
 <font color="#CCCCCC">使用该设备构建7次 </font>

364
00:15:17,440 --> 00:15:19,540
连接点击下面的用完了

365
00:15:19,540 --> 00:15:21,940
 <font color="#E5E5E5">工具菜单，但这次不发送 </font>

366
00:15:21,940 --> 00:15:23,920
应用程序到虚拟<font color="#CCCCCC">设备发送到 </font>

367
00:15:23,920 --> 00:15:26,889
 <font color="#CCCCCC">如果您的设备 </font><font color="#E5E5E5">未列出， </font><font color="#CCCCCC">则为真实设备</font>

368
00:15:26,889 --> 00:15:28,480
 <font color="#E5E5E5">要么意味着你没有启用 </font>

369
00:15:28,480 --> 00:15:31,209
 USB调试<font color="#E5E5E5">或者你需要安装 </font>

370
00:15:31,209 --> 00:15:33,339
 <font color="#CCCCCC">适当的USB开发驱动程序 </font>

371
00:15:33,339 --> 00:15:35,290
你的<font color="#E5E5E5">设备 </font><font color="#CCCCCC">谷歌有一些 </font>

372
00:15:35,290 --> 00:15:37,359
 <font color="#E5E5E5">关于 </font><font color="#CCCCCC">这方面的文档，你会发现 </font>

373
00:15:37,359 --> 00:15:39,819
 <font color="#E5E5E5">在书面伴侣中链接到它 </font>

374
00:15:39,819 --> 00:15:41,559
很明显，这<font color="#CCCCCC">只是 </font>

375
00:15:41,559 --> 00:15:43,299
 <font color="#E5E5E5">开始，但是</font><font color="#CCCCCC">你 </font><font color="#E5E5E5">今天写 </font>

376
00:15:43,299 --> 00:15:45,939
你自己<font color="#CCCCCC">的第一个Android应用程序 </font>

377
00:15:45,939 --> 00:15:48,339
一点点<font color="#E5E5E5">用户互动 </font><font color="#CCCCCC">和什么 </font>

378
00:15:48,339 --> 00:15:49,809
你现在要做的就是写下<font color="#CCCCCC">你的第二个 </font>

379
00:15:49,809 --> 00:15:51,699
应用程序，然后你的第三个应用程序继

380
00:15:51,699 --> 00:15:54,100
它继续学习<font color="#CCCCCC">谷歌 </font><font color="#E5E5E5">有很多 </font>

381
00:15:54,100 --> 00:15:56,379
很多培训材料很多

382
00:15:56,379 --> 00:15:58,269
文档中<font color="#CCCCCC">有很多样本 </font>

383
00:15:58,269 --> 00:16:00,339
代码，但要<font color="#E5E5E5">记住的事情</font><font color="#CCCCCC">就是 </font>

384
00:16:00,339 --> 00:16:02,499
保持<font color="#E5E5E5">乐趣 </font><font color="#CCCCCC">继续尝试和 </font>

385
00:16:02,499 --> 00:16:04,119
保持<font color="#E5E5E5">乐趣，你会发现它 </font>

386
00:16:04,119 --> 00:16:06,819
 <font color="#E5E5E5">奖励 </font><font color="#CCCCCC">现在继续回到 </font><font color="#E5E5E5">和 </font>

387
00:16:06,819 --> 00:16:08,589
 <font color="#CCCCCC">皇家闷闷不乐，因为 </font><font color="#E5E5E5">我们要去 </font>

388
00:16:08,589 --> 00:16:10,359
 <font color="#E5E5E5">继续 </font><font color="#CCCCCC">发布 </font><font color="#E5E5E5">开发者相关 </font>

389
00:16:10,359 --> 00:16:13,179
内容为您提供新教程<font color="#E5E5E5">新内容 </font>

390
00:16:13,179 --> 00:16:15,399
在<font color="#E5E5E5">将来所以不断调整你 </font>

391
00:16:15,399 --> 00:16:17,470
 <font color="#CCCCCC">也许应该也签署 </font><font color="#E5E5E5">该 </font>

392
00:16:17,470 --> 00:16:19,329
 <font color="#CCCCCC">android </font><font color="#E5E5E5">权威周刊开发者 </font>

393
00:16:19,329 --> 00:16:21,519
通讯你会<font color="#CCCCCC">发现 </font><font color="#E5E5E5">每周开发 </font>

394
00:16:21,519 --> 00:16:24,129
 Android或thority <font color="#E5E5E5">com </font><font color="#CCCCCC">如果你喜欢 </font>

395
00:16:24,129 --> 00:16:26,350
 <font color="#E5E5E5">视频请 </font><font color="#CCCCCC">竖起大拇指 </font>

396
00:16:26,350 --> 00:16:28,179
 <font color="#E5E5E5">也别忘 </font><font color="#CCCCCC">了 </font><font color="#E5E5E5">订阅 </font><font color="#CCCCCC">我们的 </font>

397
00:16:28,179 --> 00:16:30,399
 Android权威<font color="#CCCCCC">youtube频道if </font>

398
00:16:30,399 --> 00:16:31,869
你有任何<font color="#CCCCCC">问题请使用 </font>

399
00:16:31,869 --> 00:16:33,579
以下评论<font color="#E5E5E5">，我们会看看是否可以 </font>

400
00:16:33,579 --> 00:16:35,169
 <font color="#E5E5E5">如果您有任何问题，请帮助您 </font>

401
00:16:35,169 --> 00:16:37,869
开发<font color="#E5E5E5">这个第一个应用程序和我一样 </font>

402
00:16:37,869 --> 00:00:00,000
我会<font color="#CCCCCC">看到你 </font><font color="#E5E5E5">在我的 </font><font color="#CCCCCC">下一个视频 </font>


