<!-- /* Font Definitions */ @font-face {font-family:"MS 明朝"; panose-1:2 2 6 9 4 2 5 8 3 4; mso-font-alt:"MS Mincho"; mso-font-charset:128; mso-generic-font-family:roman; mso-font-pitch:fixed; mso-font-signature:-536870145 1791491579 18 0 131231 0;} @font-face {font-family:SimSun; panose-1:2 1 6 0 3 1 1 1 1 1; mso-font-alt:宋体; mso-font-charset:134; mso-generic-font-family:auto; mso-font-pitch:variable; mso-font-signature:3 135135232 16 0 262145 0;} @font-face {font-family:"MS ゴシック"; panose-1:2 11 6 9 7 2 5 8 2 4; mso-font-alt:"MS Gothic"; mso-font-charset:128; mso-generic-font-family:modern; mso-font-pitch:fixed; mso-font-signature:-536870145 1791491579 18 0 131231 0;} @font-face {font-family:Century; panose-1:2 4 6 4 5 5 5 2 3 4; mso-font-charset:0; mso-generic-font-family:roman; mso-font-pitch:variable; mso-font-signature:647 0 0 0 159 0;} @font-face {font-family:"/@MS ゴシック"; panose-1:2 11 6 9 7 2 5 8 2 4; mso-font-charset:128; mso-generic-font-family:modern; mso-font-pitch:fixed; mso-font-signature:-536870145 1791491579 18 0 131231 0;} @font-face {font-family:"/@MS 明朝"; panose-1:2 2 6 9 4 2 5 8 3 4; mso-font-charset:128; mso-generic-font-family:roman; mso-font-pitch:fixed; mso-font-signature:-536870145 1791491579 18 0 131231 0;} @font-face {font-family:"/@SimSun"; panose-1:2 1 6 0 3 1 1 1 1 1; mso-font-charset:134; mso-generic-font-family:auto; mso-font-pitch:variable; mso-font-signature:3 135135232 16 0 262145 0;} /* Style Definitions */ p.MsoNormal, li.MsoNormal, div.MsoNormal {mso-style-parent:""; margin:0mm; margin-bottom:.0001pt; text-align:justify; text-justify:inter-ideograph; mso-pagination:none; font-size:10.5pt; mso-bidi-font-size:12.0pt; font-family:Century; mso-fareast-font-family:"MS 明朝"; mso-bidi-font-family:"Times New Roman"; mso-font-kerning:1.0pt;} h1 {mso-style-next:標準; margin:0mm; margin-bottom:.0001pt; text-align:justify; text-justify:inter-ideograph; mso-pagination:none; page-break-after:avoid; mso-outline-level:1; font-size:12.0pt; font-family:Arial; mso-fareast-font-family:"MS ゴシック"; mso-bidi-font-family:"Times New Roman"; mso-font-kerning:1.0pt; font-weight:normal;} /* Page Definitions */ @page {mso-page-border-surround-header:no; mso-page-border-surround-footer:no;} @page Section1 {size:612.0pt 792.0pt; margin:99.25pt 30.0mm 30.0mm 30.0mm; mso-header-margin:36.0pt; mso-footer-margin:36.0pt; mso-paper-source:0;} div.Section1 {page:Section1;} /* List Definitions */ @list l0 {mso-list-id:1874688674; mso-list-type:hybrid; mso-list-template-ids:-1604931022 160210310 67698711 67698705 67698703 67698711 67698705 67698703 67698711 67698705;} @list l0:level1 {mso-level-text:%1,; mso-level-tab-stop:18.0pt; mso-level-number-position:left; margin-left:18.0pt; text-indent:-18.0pt; mso-fareast-font-family:"MS 明朝";} ol {margin-bottom:0mm;} ul {margin-bottom:0mm;} -->
如何 导 入 SDK sample 中 的范例
方法一 :
1, 打开 Eclipse 。
2 , File -> New -> Android Project
3 ,到了 “New Android Project” 面板,勾上 “Create project from existing sample”,Browser 选择 sdk 下的 sample 中的例子
方法二 :
很多学 习 android 的朋友都想看看安装目 录 里面 sample 的效果 , 但是使用 file-->import ... 选择 了 root directory 后 下面的 project 没有 项 目 选择 . 试试这样 做 :File-->new-->android project --> 选择 create project from existing source ...--> 选择 目 录 , 如果目 录选择 后 Build target 没有 选择 , 自己勾 选 一下 -->finish,1.5 的 sdk 一般 导 入 时 会自 动 勾 选 build target 的 , 导 入后也不会有什么 问题 , 担不是 1.5 的 , 然后 build target 选择 的是 1.5 的 , 项 目 导 入 进 来后 ,src 的包里面会有一个 R.java 文件 ,gen 目 录 下面也有一个 R.java 文件 , 此 时 , 删 除掉 src 的包里面的那个 R.java 文件就可以了 ,1.0 版本的一些功能 1.5 不支持 , 比如 说 Phone,1.0 有 Phone 这 个 类 , 里面有挂掉 电话 的方法 , 但 1.0 以上的版本不支持 这 个了 , 有 这 种情况的 话 就用 1.0 的 target 喽 ...