??Android??? - PowerPoint PPT Presentation

Loading...

PPT – ??Android??? PowerPoint presentation | free to download - id: 4c46ff-NDMzY



Loading


The Adobe Flash plugin is needed to view this content

Get the plugin now

View by Category
About This Presentation
Title:

??Android???

Description:

Android 2010/10 Eclipse workspace ... – PowerPoint PPT presentation

Number of Views:42
Avg rating:3.0/5.0
Slides: 73
Provided by: Supe2
Learn more at: http://rfid.ctu.edu.tw
Category:

less

Write a Comment
User Comments (0)
Transcript and Presenter's Notes

Title: ??Android???


1
??Android???
  • ?????? ???
  • ???
  • 2010/10

2
?????????Eclipse
  • ??1??Eclipse
  • ??2File ? New ? Project
  • ??3??????(??4?)
  • Project name
  • Application name
  • Package name
  • Create activity
  • ??4????
  • ??5????

3
?????????1??Eclipse
1
Eclipse.exe
Eclipse????
2
4
?????????1??Eclipse
??????
3
??????? ?????????????????
5
?????????1??Eclipse
4
Window?Preferences
6
?????????1??Eclipse
??Android SDK???
5
7
?????????2?????
1
File ? New ? Project
8
?????????2?????
2
??Android ? Android Project
3
9
?????????2?????
3
Project name
??target??? Android 2.x Google APIs
4
Application name
5
Package name
6
Create Activity
10
?????????2?????
  • Project name????,Eclipse???
  • Application name??????,??????????????
  • Package nameAPK(Android Package)??????(??????????
    ?,?????????????)
  • Create Activity??????,??OS?????????????????????

11
?????????2?????
  • Min SDK VersionSDK API Level??
  • 21.1?
  • 31.5?
  • 41.6?
  • 52.0?

12
?????????2?????
  • ???????
  • Project nameHello Android
  • Application nameHello Android App
  • Package namecom.android.hello
  • Create ActivityHelloAndroid

13
?????????2???????????
6
14
?????????2?????????
15
Android??????
  • Package explorer

??????????
Java????
R.java????????(????,??????)
Android.jar??Android SDK?????
???????main.xml
????strings.xml
AndroidMainfest.xml?????????????
??Android SDK?????default.properties
16
Android??????
  • ??????

17
Android??????
  • ??????

18
???????????????????
19
??5??????
  • ??????AVD,????????
  • ??APK??( com.android.hello )??????(data/app/??)??
  • ??????Application name( Hello Android App )???

20
??5??????
1
21
??5??????
2
22
??5??????
3
4
23
??5??????
5
?????
6
24
??5??????????? I
25
??5????????? II
26
??5????????? III
27
??5??????? ??
???????????,?????
28
????????
???????,??????
29
?????????data/app??(I)
  • ??????APK??( com.android.hello )??????(data/app/??
    )??
  • ??android-sdk-windows\tools\adb.exe

30
?????????data/app??(II)
  • ????????

adb shell
1
31
?????????data/app??(III)
cd /data/app
2
32
?????????data/app??(IV)
ls
3
33
main.xml?strings.xml
  • ?????????hello world?

???strings.xml?? hello????
UI???
34
main.xml?strings.xml
hello????
??????
35
???????
Package name
?????package
???Activity
Activity??
??Activity???
??Activity??
??
???class????
????????
???main.xml
36
R.java
?????res??
37
???????
38
????
1
??java???
39
???????
Package name
?????class
Activity??
??Activity???
??Activity??
????????
40
??strings.xml
?????????Android??
41
??strings.xml
?????????
42
??????
43
?main.xml
  • lt?xml version"1.0" encoding"utf-8"?gt
  • ltLinearLayout xmlnsandroid"http//schemas.androi
    d.com/apk/res/android"
  • androidorientation"vertical"
  • androidlayout_width"fill_parent"
  • androidlayout_height"fill_parent"
  • gt
  • ltTextView
  • androidlayout_width"fill_parent"
  • androidlayout_height"wrap_content"
  • androidtext"_at_string/hello"
  • /gt
  • ltTextView
  • androidlayout_width"fill_parent"
  • androidlayout_height"wrap_content"
  • androidtext"_at_string/content"
  • /gt
  • lt/LinearLayoutgt

??????
???strings.xml
44
?strings.xml
  • lt?xml version"1.0" encoding"utf-8"?gt
  • ltresourcesgt
  • ltstring name"hello"gtHello World,
    ???????Android??!lt/stringgt
  • ltstring name"content"gt???????????\n
    ?????lt/stringgt
  • ltstring name"app_name"gtHello Android
    Applt/stringgt
  • lt/resourcesgt

??????
45
???????
46
??????APK????????
47
??????APK
  • ??1adb pull?? (Android SDK tools)
  • adb pull /data/app/com.android.hello.apk .

48
com.android.hello.apk
49
??????APK
  • ??2??AndroidMainfest.xml

50
??????APK??2??AndroidMainfest.xml
  • Use the Export Wizard to export and sign an APK

51
??????APK??2??AndroidMainfest.xml
52
??????APK??2??AndroidMainfest.xml
??????
53
??????APK??2??AndroidMainfest.xml
????apk??
54
??????APK??2??AndroidMainfest.xml
55
??????APK??2??AndroidMainfest.xml
56
APK??
???Windows???setup.exe????
57
??APK?????
  • Sync????

58
(No Transcript)
59
??APK?????
60
??APK?????
61
??APK?????
62
Android????
63
?????????
64
????????
65
ddms????Android SDK tools
  • ddms.bat

66
(No Transcript)
67
???????????????
68
????
69
????
  • ???Eclipse?workspace???

70
????
  • workspace???????????????

??????
  • ?????????????

71
????
  • ??Eclipse?import????

72
????
  • ??Eclipse?import????

?????????????
About PowerShow.com