40
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 / 40 CS/SE Individual Practical N

Continuing Android development

Embed Size (px)

DESCRIPTION

 

Citation preview

Page 1: Continuing Android development

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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