Manifest files Resources and strings App attributes and resources Android Eclipse issues Manifest files Resources and strings App attributes and resources Android Eclipse issues Manifest files CS/SE Individual Practical Stephen Gilmore October 21, 2011 School of Informatics, University of Edinburgh CS/SE Individual Practical 1 / 40 CS/SE Individual Practical 2 / 40 Manifest files Resources and strings App attributes and resources Android Eclipse issues Manifest files Resources and strings App attributes and resources Android Eclipse issues The manifest editor Adding extras 13.50.09.png CS/SE Individual Practical 3 / 40 CS/SE Individual Practical 4 / 40 Manifest files Resources and strings App attributes and resources Android Eclipse issues Manifest files Resources and strings App attributes and resources Android Eclipse issues Labels and icons Application nodes and intents 13.50.50.png CS/SE Individual Practical 5 / 40 CS/SE Individual Practical 6 / 40
Manifest files Resources and strings App attributes and resources Android Eclipse issues Manifest files Resources and strings App attributes and resources Android Eclipse issues Attributes for an action Add permissions CS/SE Individual Practical 7 / 40 CS/SE Individual Practical 8 / 40 Manifest files Resources and strings App attributes and resources Android Eclipse issues Manifest files Resources and strings App attributes and resources Android Eclipse issues Add instrumentation Source code view CS/SE Individual Practical 9 / 40 CS/SE Individual Practical 10 / 40 Manifest files Resources and strings App attributes and resources Android Eclipse issues Manifest files Resources and strings App attributes and resources Android Eclipse issues Source code tab Resources and strings 13.51.48.2.png CS/SE Individual Practical 11 / 40 CS/SE Individual Practical 12 / 40
Manifest files Resources and strings App attributes and resources Android Eclipse issues Manifest files Resources and strings App attributes and resources Android Eclipse issues A String resource, app name Managing string resources CS/SE Individual Practical 13 / 40 CS/SE Individual Practical 14 / 40 Manifest files Resources and strings App attributes and resources Android Eclipse issues Manifest files Resources and strings App attributes and resources Android Eclipse issues Drawable resources Managing drawable resources CS/SE Individual Practical 15 / 40 CS/SE Individual Practical 16 / 40 Manifest files Resources and strings App attributes and resources Android Eclipse issues Manifest files Resources and strings App attributes and resources Android Eclipse issues Contents of app notes.png The icon in the launcher view CS/SE Individual Practical 17 / 40 CS/SE Individual Practical 18 / 40
Manifest files Resources and strings App attributes and resources Android Eclipse issues Manifest files Resources and strings App attributes and resources Android Eclipse issues Application nodes Browsing CS/SE Individual Practical 19 / 40 CS/SE Individual Practical 20 / 40 Manifest files Resources and strings App attributes and resources Android Eclipse issues Manifest files Resources and strings App attributes and resources Android Eclipse issues Editing strings Updating a string CS/SE Individual Practical 21 / 40 CS/SE Individual Practical 22 / 40 Manifest files Resources and strings App attributes and resources Android Eclipse issues Manifest files Resources and strings App attributes and resources Android Eclipse issues Text in the XML view Updating a string in the Resources view CS/SE Individual Practical 23 / 40 CS/SE Individual Practical 24 / 40
Manifest files Resources and strings App attributes and resources Android Eclipse issues Manifest files Resources and strings App attributes and resources Android Eclipse issues The XML text is updated automatically Getting it wrong: editing the XML CS/SE Individual Practical 25 / 40 CS/SE Individual Practical 26 / 40 Manifest files Resources and strings App attributes and resources Android Eclipse issues Manifest files Resources and strings App attributes and resources Android Eclipse issues The bug shows up in the resources view Oh dear CS/SE Individual Practical 27 / 40 CS/SE Individual Practical 28 / 40 Manifest files Resources and strings App attributes and resources Android Eclipse issues Manifest files Resources and strings App attributes and resources Android Eclipse issues Oh no, Java problems . . . “Layout cannot be resolved . . . ” CS/SE Individual Practical 29 / 40 CS/SE Individual Practical 30 / 40
Manifest files Resources and strings App attributes and resources Android Eclipse issues Manifest files Resources and strings App attributes and resources Android Eclipse issues R.java is generated so clean the project? No good. Delete R.java and try again? CS/SE Individual Practical 31 / 40 CS/SE Individual Practical 32 / 40 Manifest files Resources and strings App attributes and resources Android Eclipse issues Manifest files Resources and strings App attributes and resources Android Eclipse issues R.java is regenerated but errors remain Refresh the view? CS/SE Individual Practical 33 / 40 CS/SE Individual Practical 34 / 40 Manifest files Resources and strings App attributes and resources Android Eclipse issues Manifest files Resources and strings App attributes and resources Android Eclipse issues No good. What now? Close the project and reopen it? CS/SE Individual Practical 35 / 40 CS/SE Individual Practical 36 / 40
Manifest files Resources and strings App attributes and resources Android Eclipse issues Manifest files Resources and strings App attributes and resources Android Eclipse issues Reopening the project. Praying . . . Didn’t work :-( but look at this . . . CS/SE Individual Practical 37 / 40 CS/SE Individual Practical 38 / 40 Manifest files Resources and strings App attributes and resources Android Eclipse issues Manifest files Resources and strings App attributes and resources Android Eclipse issues Moving the folder fixes the problem :-) Moving the folder fixes the problem :-) CS/SE Individual Practical 39 / 40 CS/SE Individual Practical 40 / 40
Recommend
More recommend