[Hello World 천안아산] 안드로이드 입문

62
안드로이드 개발 시작하기 Hello, World! 천안아산 2014. 03. 29 김태호 (커니)

description

2014년 3월 29일 Hello,World! 천안아산 에서 진행된 '안드로이드 입문' 강의자료입니다.

Transcript of [Hello World 천안아산] 안드로이드 입문

  • 1. Hello,
  • 2. World!
  • 3.
  • 4. 2014.
  • 5. 03.
  • 6. 29
  • 7.
  • 8. ()
  • 9. () ()
  • 10.
  • 11.
  • 12. ()
  • 13.
  • 14. S/W
  • 15. ()
  • 16. ()
  • 17.
  • 18.
  • 19.
  • 20.
  • 21. (http://androidhuman.com)
  • 22. ? http://goo.gl/gE5pgw
  • 23. Questions? -http://goo.gl/gE5pgw
  • 24.
  • 25.
  • 26. /
  • 27.
  • 28.
  • 29.
  • 30.
  • 31.
  • 32.
  • 33.
  • 34.
  • 35.
  • 36.
  • 37.
  • 38. -
  • 39.
  • 40.
  • 41.
  • 42.
  • 43. Agenda
  • 44.
  • 45.
  • 46. Reveal
  • 47. yourself,
  • 48. Android!
  • 49. /
  • 50. Questions? -http://goo.gl/gE5pgw ? Architecture
  • 51. Questions? -http://goo.gl/gE5pgw Java
  • 52.
  • 53.
  • 54. Dalvik
  • 55. VM
  • 56.
  • 57. (ART
  • 58. in
  • 59. future)
  • 60. C/C++
  • 61.
  • 62.
  • 63.
  • 64.
  • 65.
  • 66.
  • 67.
  • 68.
  • 69.
  • 70.
  • 71.
  • 72. JNI(Java
  • 73. Native
  • 74. Interface)
  • 75. ?
  • 76.
  • 77. Questions? -http://goo.gl/gE5pgw Eclipse
  • 78. +
  • 79. ADT
  • 80. (Android
  • 81. Development
  • 82. Tools)
  • 83. ()
  • 84.
  • 85.
  • 86.
  • 87.
  • 88.
  • 89. ADT
  • 90.
  • 91.
  • 92.
  • 93.
  • 94. GUI
  • 95.
  • 96. Android
  • 97. Studio
  • 98. Early
  • 99. Access
  • 100. Preview
  • 101. ,
  • 102. IntelliJ
  • 103.
  • 104. gradle
  • 105.
  • 106.
  • 107. Android
  • 108. SDK
  • 109. Tools
  • 110. adb,
  • 111. emulator,
  • 112. uiautomator,
  • 113. monitor,
  • 114. etc.
  • 115. ?
  • 116.
  • 117. Questions? -http://goo.gl/gE5pgw ?
  • 118.
  • 119. -
  • 120. Eclipse+ADT
  • 121. Questions? -http://goo.gl/gE5pgw ?
  • 122.
  • 123. -
  • 124. Android
  • 125. Studio
  • 126. Questions? -http://goo.gl/gE5pgw ?
  • 127.
  • 128. -
  • 129. Android
  • 130. SDK
  • 131. Tools
  • 132. /
  • 133. SDK
  • 134. Manager
  • 135. SDK
  • 136.
  • 137.
  • 138.
  • 139.
  • 140.
  • 141. Questions? -http://goo.gl/gE5pgw ?
  • 142.
  • 143. -
  • 144. Android
  • 145. SDK
  • 146. Tools
  • 147. /
  • 148. ADB(Android
  • 149. Debug
  • 150. Bridge)
  • 151.
  • 152.
  • 153.
  • 154.
  • 155.
  • 156. //,
  • 157.
  • 158. ,
  • 159.
  • 160.
  • 161.
  • 162.
  • 163. SDK
  • 164.
  • 165.
  • 166. SDK
  • 167. Manager
  • 168.
  • 169.
  • 170.
  • 171.
  • 172. Questions? -http://goo.gl/gE5pgw ?
  • 173.
  • 174. -
  • 175. Android
  • 176. SDK
  • 177. Tools
  • 178. /
  • 179. PATH
  • 180.
  • 181. /
  • 182.
  • 183.
  • 184.
  • 185. PATH
  • 186.
  • 187.
  • 188. http://androidhuman.com/161
  • 189. (Windows)
  • 190. http://androidhuman.com/409
  • 191. (OSX)
  • 192. tools
  • 193. android,
  • 194. monitor,
  • 195. emulator,
  • 196. draw9patch,
  • 197. etc.
  • 198. platform-tools
  • 199. adb,
  • 200. fastboot
  • 201.
  • 202. Questions? -http://goo.gl/gE5pgw
  • 203.
  • 204.
  • 205.
  • 206.
  • 207. :
  • 208. (Activity)
  • 209.
  • 210.
  • 211.
  • 212.
  • 213.
  • 214.
  • 215.
  • 216.
  • 217.
  • 218.
  • 219.
  • 220.
  • 221.
  • 222.
  • 223.
  • 224.
  • 225.
  • 226.
  • 227. ?
  • 228.
  • 229.
  • 230. Questions? - http://goo.gl/gE5pgw - Gmail Documents
  • 231. Questions? -http://goo.gl/gE5pgw
  • 232.
  • 233.
  • 234.
  • 235.
  • 236.
  • 237. /
  • 238. dp(density
  • 239. independent
  • 240. pixel)
  • 241.
  • 242.
  • 243.
  • 244.
  • 245.
  • 246.
  • 247.
  • 248. :
  • 249.
  • 250.
  • 251.
  • 252.
  • 253.
  • 254. 9-patch ?
  • 255.
  • 256.
  • 257. - Density-independent pixel (dp), from d.android.com A
  • 258. virtual
  • 259. pixel
  • 260. unit
  • 261. that
  • 262. you
  • 263. should
  • 264. use
  • 265. when
  • 266. defining
  • 267. UI
  • 268. layout,
  • 269. to
  • 270. express
  • 271. layout
  • 272. dimensions
  • 273. or
  • 274. position
  • 275. in
  • 276. a
  • 277. density-independent
  • 278. way.
  • 279. The
  • 280. density-independent
  • 281. pixel
  • 282. is
  • 283. equivalent
  • 284. to
  • 285. one
  • 286. physical
  • 287. pixel
  • 288. on
  • 289. a
  • 290. 160
  • 291. dpi
  • 292. screen,
  • 293. which
  • 294. is
  • 295. the
  • 296. baseline
  • 297. density
  • 298. assumed
  • 299. by
  • 300. the
  • 301. system
  • 302. for
  • 303. a
  • 304. "medium"
  • 305. density
  • 306. screen.
  • 307. At
  • 308. runtime,
  • 309. the
  • 310. system
  • 311. transparently
  • 312. handles
  • 313. any
  • 314. scaling
  • 315. of
  • 316. the
  • 317. dp
  • 318. units,
  • 319. as
  • 320. necessary,
  • 321. based
  • 322. on
  • 323. the
  • 324. actual
  • 325. density
  • 326. of
  • 327. the
  • 328. screen
  • 329. in
  • 330. use.
  • 331. The
  • 332. conversion
  • 333. of
  • 334. dp
  • 335. units
  • 336. to
  • 337. screen
  • 338. pixels
  • 339. is
  • 340. simple:
  • 341. px
  • 342. =
  • 343. dp
  • 344. *
  • 345. (dpi
  • 346. /
  • 347. 160).
  • 348. For
  • 349. example,
  • 350. on
  • 351. a
  • 352. 240
  • 353. dpi
  • 354. screen,
  • 355. 1
  • 356. dp
  • 357. equals
  • 358. 1.5
  • 359. physical
  • 360. pixels.
  • 361. You
  • 362. should
  • 363. always
  • 364. use
  • 365. dp
  • 366. units
  • 367. when
  • 368. defining
  • 369. your
  • 370. application's
  • 371. UI,
  • 372. to
  • 373. ensure
  • 374. proper
  • 375. display
  • 376. of
  • 377. your
  • 378. UI
  • 379. on
  • 380. screens
  • 381. with
  • 382. different
  • 383. densities.
  • 384. - Density-independent pixel (dp), from d.android.com A
  • 385. virtual
  • 386. pixel
  • 387. unit
  • 388. that
  • 389. you
  • 390. should
  • 391. use
  • 392. when
  • 393. defining
  • 394. UI
  • 395. layout,
  • 396. to
  • 397. express
  • 398. layout
  • 399. dimensions
  • 400. or
  • 401. position
  • 402. in
  • 403. a
  • 404. density-independent
  • 405. way.
  • 406. The
  • 407. density-independent
  • 408. pixel
  • 409. is
  • 410. equivalent
  • 411. to
  • 412. one
  • 413. physical
  • 414. pixel
  • 415. on
  • 416. a
  • 417. 160
  • 418. dpi
  • 419. screen,
  • 420. which
  • 421. is
  • 422. the
  • 423. baseline
  • 424. density
  • 425. assumed
  • 426. by
  • 427. the
  • 428. system
  • 429. for
  • 430. a
  • 431. "medium"
  • 432. density
  • 433. screen.
  • 434. At
  • 435. runtime,
  • 436. the
  • 437. system
  • 438. transparently
  • 439. handles
  • 440. any
  • 441. scaling
  • 442. of
  • 443. the
  • 444. dp
  • 445. units,
  • 446. as
  • 447. necessary,
  • 448. based
  • 449. on
  • 450. the
  • 451. actual
  • 452. density
  • 453. of
  • 454. the
  • 455. screen
  • 456. in
  • 457. use.
  • 458. The
  • 459. conversion
  • 460. of
  • 461. dp
  • 462. units
  • 463. to
  • 464. screen
  • 465. pixels
  • 466. is
  • 467. simple:
  • 468. px
  • 469. =
  • 470. dp
  • 471. *
  • 472. (dpi
  • 473. /
  • 474. 160).
  • 475. For
  • 476. example,
  • 477. on
  • 478. a
  • 479. 240
  • 480. dpi
  • 481. screen,
  • 482. 1
  • 483. dp
  • 484. equals
  • 485. 1.5
  • 486. physical
  • 487. pixels.
  • 488. You
  • 489. should
  • 490. always
  • 491. use
  • 492. dp
  • 493. units
  • 494. when
  • 495. defining
  • 496. your
  • 497. application's
  • 498. UI,
  • 499. to
  • 500. ensure
  • 501. proper
  • 502. display
  • 503. of
  • 504. your
  • 505. UI
  • 506. on
  • 507. screens
  • 508. with
  • 509. different
  • 510. densities.
  • 511. Questions? -http://goo.gl/gE5pgw
  • 512.
  • 513.
  • 514.
  • 515. ldpi,
  • 516. mdpi,
  • 517. hdpi,
  • 518. xhdpi,
  • 519. xxhdpi,
  • 520. xxxhdpi(?!)
  • 521.
  • 522.
  • 523.
  • 524.
  • 525.
  • 526. small,
  • 527. normal,
  • 528. large,
  • 529. xlarge,
  • 530. xxlarge(?!)
  • 531.
  • 532. +
  • 533.
  • 534.
  • 535.
  • 536.
  • 537. (Do
  • 538. not
  • 539. use
  • 540. actual
  • 541. pixels) ?
  • 542.
  • 543.
  • 544. -
  • 545. dp(dip) Source : http://developer.android.com/guide/practices/screens_support.html
  • 546. Questions? -http://goo.gl/gE5pgw
  • 547.
  • 548.
  • 549.
  • 550.
  • 551. ?
  • 552.
  • 553.
  • 554. -
  • 555. dp(dip)
  • 556. Questions? - http://goo.gl/gE5pgw ?