continuing android development
DESCRIPTION
TRANSCRIPT
![Page 1: Continuing Android development](https://reader034.vdocuments.site/reader034/viewer/2022051816/5463d7ecb4af9f3f3f8b46d0/html5/thumbnails/1.jpg)
Manifest files Resources and strings App attributes and resources Android Eclipse issues
CS/SE Individual Practical
Stephen Gilmore
October 21, 2011
School of Informatics, University of Edinburgh
1 / 40CS/SE Individual Practical
N
![Page 2: Continuing Android development](https://reader034.vdocuments.site/reader034/viewer/2022051816/5463d7ecb4af9f3f3f8b46d0/html5/thumbnails/2.jpg)
Manifest files Resources and strings App attributes and resources Android Eclipse issues
Manifest files
Manifest files
shot 2011-10-20 at 13.49.36.png
2 / 40CS/SE Individual Practical
N
![Page 3: Continuing Android development](https://reader034.vdocuments.site/reader034/viewer/2022051816/5463d7ecb4af9f3f3f8b46d0/html5/thumbnails/3.jpg)
Manifest files Resources and strings App attributes and resources Android Eclipse issues
Manifest files
The manifest editor
shot 2011-10-20 at 13.49.57.png
3 / 40CS/SE Individual Practical
N
![Page 4: Continuing Android development](https://reader034.vdocuments.site/reader034/viewer/2022051816/5463d7ecb4af9f3f3f8b46d0/html5/thumbnails/4.jpg)
Manifest files Resources and strings App attributes and resources Android Eclipse issues
Manifest files
Adding extras
shot 2011-10-20 at 13.50.09.png4 / 40
CS/SE Individual Practical
N
![Page 5: Continuing Android development](https://reader034.vdocuments.site/reader034/viewer/2022051816/5463d7ecb4af9f3f3f8b46d0/html5/thumbnails/5.jpg)
Manifest files Resources and strings App attributes and resources Android Eclipse issues
Manifest files
Labels and icons
shot 2011-10-20 at 13.50.36.png
5 / 40CS/SE Individual Practical
N
![Page 6: Continuing Android development](https://reader034.vdocuments.site/reader034/viewer/2022051816/5463d7ecb4af9f3f3f8b46d0/html5/thumbnails/6.jpg)
Manifest files Resources and strings App attributes and resources Android Eclipse issues
Manifest files
Application nodes and intents
shot 2011-10-20 at 13.50.50.png6 / 40
CS/SE Individual Practical
N
![Page 7: Continuing Android development](https://reader034.vdocuments.site/reader034/viewer/2022051816/5463d7ecb4af9f3f3f8b46d0/html5/thumbnails/7.jpg)
Manifest files Resources and strings App attributes and resources Android Eclipse issues
Manifest files
Attributes for an action
shot 2011-10-20 at 13.51.01.png
7 / 40CS/SE Individual Practical
N
![Page 8: Continuing Android development](https://reader034.vdocuments.site/reader034/viewer/2022051816/5463d7ecb4af9f3f3f8b46d0/html5/thumbnails/8.jpg)
Manifest files Resources and strings App attributes and resources Android Eclipse issues
Manifest files
Add permissions
shot 2011-10-20 at 13.51.22.png
8 / 40CS/SE Individual Practical
N
![Page 9: Continuing Android development](https://reader034.vdocuments.site/reader034/viewer/2022051816/5463d7ecb4af9f3f3f8b46d0/html5/thumbnails/9.jpg)
Manifest files Resources and strings App attributes and resources Android Eclipse issues
Manifest files
Add instrumentation
shot 2011-10-20 at 13.51.38.png
9 / 40CS/SE Individual Practical
N
![Page 10: Continuing Android development](https://reader034.vdocuments.site/reader034/viewer/2022051816/5463d7ecb4af9f3f3f8b46d0/html5/thumbnails/10.jpg)
Manifest files Resources and strings App attributes and resources Android Eclipse issues
Manifest files
Source code view
shot 2011-10-20 at 13.51.48.png
10 / 40CS/SE Individual Practical
N
![Page 11: Continuing Android development](https://reader034.vdocuments.site/reader034/viewer/2022051816/5463d7ecb4af9f3f3f8b46d0/html5/thumbnails/11.jpg)
Manifest files Resources and strings App attributes and resources Android Eclipse issues
Manifest files
Source code tab
shot 2011-10-20 at 13.51.48.2.png11 / 40
CS/SE Individual Practical
N
![Page 12: Continuing Android development](https://reader034.vdocuments.site/reader034/viewer/2022051816/5463d7ecb4af9f3f3f8b46d0/html5/thumbnails/12.jpg)
Manifest files Resources and strings App attributes and resources Android Eclipse issues
Resources and strings
Resources and strings
shot 2011-10-20 at 14.04.41.png
12 / 40CS/SE Individual Practical
N
![Page 13: Continuing Android development](https://reader034.vdocuments.site/reader034/viewer/2022051816/5463d7ecb4af9f3f3f8b46d0/html5/thumbnails/13.jpg)
Manifest files Resources and strings App attributes and resources Android Eclipse issues
Resources and strings
A String resource, app name
shot 2011-10-20 at 14.04.46.png
13 / 40CS/SE Individual Practical
N
![Page 14: Continuing Android development](https://reader034.vdocuments.site/reader034/viewer/2022051816/5463d7ecb4af9f3f3f8b46d0/html5/thumbnails/14.jpg)
Manifest files Resources and strings App attributes and resources Android Eclipse issues
Resources and strings
Managing string resources
shot 2011-10-20 at 14.05.21.png
14 / 40CS/SE Individual Practical
N
![Page 15: Continuing Android development](https://reader034.vdocuments.site/reader034/viewer/2022051816/5463d7ecb4af9f3f3f8b46d0/html5/thumbnails/15.jpg)
Manifest files Resources and strings App attributes and resources Android Eclipse issues
Resources and strings
Drawable resources
shot 2011-10-20 at 14.05.39.png
15 / 40CS/SE Individual Practical
N
![Page 16: Continuing Android development](https://reader034.vdocuments.site/reader034/viewer/2022051816/5463d7ecb4af9f3f3f8b46d0/html5/thumbnails/16.jpg)
Manifest files Resources and strings App attributes and resources Android Eclipse issues
Resources and strings
Managing drawable resources
shot 2011-10-20 at 14.05.40.png
16 / 40CS/SE Individual Practical
N
![Page 17: Continuing Android development](https://reader034.vdocuments.site/reader034/viewer/2022051816/5463d7ecb4af9f3f3f8b46d0/html5/thumbnails/17.jpg)
Manifest files Resources and strings App attributes and resources Android Eclipse issues
Resources and strings
Contents of app notes.png
shot 2011-10-20 at 14.06.46.png
17 / 40CS/SE Individual Practical
N
![Page 18: Continuing Android development](https://reader034.vdocuments.site/reader034/viewer/2022051816/5463d7ecb4af9f3f3f8b46d0/html5/thumbnails/18.jpg)
Manifest files Resources and strings App attributes and resources Android Eclipse issues
Resources and strings
The icon in the launcher view
shot 2011-10-20 at 18.55.20.png
18 / 40CS/SE Individual Practical
N
![Page 19: Continuing Android development](https://reader034.vdocuments.site/reader034/viewer/2022051816/5463d7ecb4af9f3f3f8b46d0/html5/thumbnails/19.jpg)
Manifest files Resources and strings App attributes and resources Android Eclipse issues
App attributes and resources
Application nodes
shot 2011-10-20 at 14.26.17.png
19 / 40CS/SE Individual Practical
N
![Page 20: Continuing Android development](https://reader034.vdocuments.site/reader034/viewer/2022051816/5463d7ecb4af9f3f3f8b46d0/html5/thumbnails/20.jpg)
Manifest files Resources and strings App attributes and resources Android Eclipse issues
App attributes and resources
Browsing
shot 2011-10-20 at 14.26.10.png
20 / 40CS/SE Individual Practical
N
![Page 21: Continuing Android development](https://reader034.vdocuments.site/reader034/viewer/2022051816/5463d7ecb4af9f3f3f8b46d0/html5/thumbnails/21.jpg)
Manifest files Resources and strings App attributes and resources Android Eclipse issues
App attributes and resources
Editing strings
shot 2011-10-20 at 14.27.43.png
21 / 40CS/SE Individual Practical
N
![Page 22: Continuing Android development](https://reader034.vdocuments.site/reader034/viewer/2022051816/5463d7ecb4af9f3f3f8b46d0/html5/thumbnails/22.jpg)
Manifest files Resources and strings App attributes and resources Android Eclipse issues
App attributes and resources
Updating a string
shot 2011-10-20 at 14.27.49.png
22 / 40CS/SE Individual Practical
N
![Page 23: Continuing Android development](https://reader034.vdocuments.site/reader034/viewer/2022051816/5463d7ecb4af9f3f3f8b46d0/html5/thumbnails/23.jpg)
Manifest files Resources and strings App attributes and resources Android Eclipse issues
App attributes and resources
Text in the XML view
shot 2011-10-20 at 14.29.49.png
23 / 40CS/SE Individual Practical
N
![Page 24: Continuing Android development](https://reader034.vdocuments.site/reader034/viewer/2022051816/5463d7ecb4af9f3f3f8b46d0/html5/thumbnails/24.jpg)
Manifest files Resources and strings App attributes and resources Android Eclipse issues
App attributes and resources
Updating a string in the Resources view
shot 2011-10-20 at 19.17.37.png
24 / 40CS/SE Individual Practical
N
![Page 25: Continuing Android development](https://reader034.vdocuments.site/reader034/viewer/2022051816/5463d7ecb4af9f3f3f8b46d0/html5/thumbnails/25.jpg)
Manifest files Resources and strings App attributes and resources Android Eclipse issues
App attributes and resources
The XML text is updated automatically
shot 2011-10-20 at 19.17.43.png
25 / 40CS/SE Individual Practical
N
![Page 26: Continuing Android development](https://reader034.vdocuments.site/reader034/viewer/2022051816/5463d7ecb4af9f3f3f8b46d0/html5/thumbnails/26.jpg)
Manifest files Resources and strings App attributes and resources Android Eclipse issues
App attributes and resources
Getting it wrong: editing the XML
shot 2011-10-20 at 19.27.08.png
26 / 40CS/SE Individual Practical
N
![Page 27: Continuing Android development](https://reader034.vdocuments.site/reader034/viewer/2022051816/5463d7ecb4af9f3f3f8b46d0/html5/thumbnails/27.jpg)
Manifest files Resources and strings App attributes and resources Android Eclipse issues
App attributes and resources
The bug shows up in the resources view
shot 2011-10-20 at 19.27.19.png
27 / 40CS/SE Individual Practical
N
![Page 28: Continuing Android development](https://reader034.vdocuments.site/reader034/viewer/2022051816/5463d7ecb4af9f3f3f8b46d0/html5/thumbnails/28.jpg)
Manifest files Resources and strings App attributes and resources Android Eclipse issues
App attributes and resources
Oh dear
shot 2011-10-20 at 19.27.23.png
28 / 40CS/SE Individual Practical
N
![Page 29: Continuing Android development](https://reader034.vdocuments.site/reader034/viewer/2022051816/5463d7ecb4af9f3f3f8b46d0/html5/thumbnails/29.jpg)
Manifest files Resources and strings App attributes and resources Android Eclipse issues
Android Eclipse issues
Oh no, Java problems . . .
shot 2011-10-20 at 14.32.16.png
29 / 40CS/SE Individual Practical
N
![Page 30: Continuing Android development](https://reader034.vdocuments.site/reader034/viewer/2022051816/5463d7ecb4af9f3f3f8b46d0/html5/thumbnails/30.jpg)
Manifest files Resources and strings App attributes and resources Android Eclipse issues
Android Eclipse issues
“Layout cannot be resolved . . . ”
shot 2011-10-20 at 14.32.16.png
30 / 40CS/SE Individual Practical
N
![Page 31: Continuing Android development](https://reader034.vdocuments.site/reader034/viewer/2022051816/5463d7ecb4af9f3f3f8b46d0/html5/thumbnails/31.jpg)
Manifest files Resources and strings App attributes and resources Android Eclipse issues
Android Eclipse issues
R.java is generated so clean the project?
shot 2011-10-20 at 14.32.43.png
31 / 40CS/SE Individual Practical
N
![Page 32: Continuing Android development](https://reader034.vdocuments.site/reader034/viewer/2022051816/5463d7ecb4af9f3f3f8b46d0/html5/thumbnails/32.jpg)
Manifest files Resources and strings App attributes and resources Android Eclipse issues
Android Eclipse issues
No good. Delete R.java and try again?
shot 2011-10-20 at 14.33.17.png
32 / 40CS/SE Individual Practical
N
![Page 33: Continuing Android development](https://reader034.vdocuments.site/reader034/viewer/2022051816/5463d7ecb4af9f3f3f8b46d0/html5/thumbnails/33.jpg)
Manifest files Resources and strings App attributes and resources Android Eclipse issues
Android Eclipse issues
R.java is regenerated but errors remain
shot 2011-10-20 at 14.33.27.png
33 / 40CS/SE Individual Practical
N
![Page 34: Continuing Android development](https://reader034.vdocuments.site/reader034/viewer/2022051816/5463d7ecb4af9f3f3f8b46d0/html5/thumbnails/34.jpg)
Manifest files Resources and strings App attributes and resources Android Eclipse issues
Android Eclipse issues
Refresh the view?
shot 2011-10-20 at 14.34.38.png
34 / 40CS/SE Individual Practical
N
![Page 35: Continuing Android development](https://reader034.vdocuments.site/reader034/viewer/2022051816/5463d7ecb4af9f3f3f8b46d0/html5/thumbnails/35.jpg)
Manifest files Resources and strings App attributes and resources Android Eclipse issues
Android Eclipse issues
No good. What now?
shot 2011-10-20 at 14.37.33.png
35 / 40CS/SE Individual Practical
N
![Page 36: Continuing Android development](https://reader034.vdocuments.site/reader034/viewer/2022051816/5463d7ecb4af9f3f3f8b46d0/html5/thumbnails/36.jpg)
Manifest files Resources and strings App attributes and resources Android Eclipse issues
Android Eclipse issues
Close the project and reopen it?
shot 2011-10-20 at 14.43.57.png
36 / 40CS/SE Individual Practical
N
![Page 37: Continuing Android development](https://reader034.vdocuments.site/reader034/viewer/2022051816/5463d7ecb4af9f3f3f8b46d0/html5/thumbnails/37.jpg)
Manifest files Resources and strings App attributes and resources Android Eclipse issues
Android Eclipse issues
Reopening the project. Praying . . .
shot 2011-10-20 at 14.44.05.png
37 / 40CS/SE Individual Practical
N
![Page 38: Continuing Android development](https://reader034.vdocuments.site/reader034/viewer/2022051816/5463d7ecb4af9f3f3f8b46d0/html5/thumbnails/38.jpg)
Manifest files Resources and strings App attributes and resources Android Eclipse issues
Android Eclipse issues
Didn’t work :-( but look at this . . .
shot 2011-10-20 at 15.12.05.png
38 / 40CS/SE Individual Practical
N
![Page 39: Continuing Android development](https://reader034.vdocuments.site/reader034/viewer/2022051816/5463d7ecb4af9f3f3f8b46d0/html5/thumbnails/39.jpg)
Manifest files Resources and strings App attributes and resources Android Eclipse issues
Android Eclipse issues
Moving the folder fixes the problem :-)
shot 2011-10-20 at 15.11.43.png
39 / 40CS/SE Individual Practical
N
![Page 40: Continuing Android development](https://reader034.vdocuments.site/reader034/viewer/2022051816/5463d7ecb4af9f3f3f8b46d0/html5/thumbnails/40.jpg)
Manifest files Resources and strings App attributes and resources Android Eclipse issues
Android Eclipse issues
Moving the folder fixes the problem :-)
shot 2011-10-20 at 15.12.29.png
40 / 40CS/SE Individual Practical
N