Description
After finishing this Activity, you shoule be able to:
- Create the “Start Screen” of the app. You will layout different UI elements on the screen.
- When you click on the “Get Picture” button you should be able to display all the available images in the sdcard, or Media Gallery, of an emulator or phone.
You will learn the following Android skills and concepts:
- An Android Activity, is an “activity” that presents a visual user interface for one focused action that the user can undertake
- How to create a Simple User Interface (UI) Screen using XML
- UI Layouts (How should I organize my stuff on theScreen?)
- Adding different resources: Strings (the text I want to display) and Drawables (the images I want to draw on the screen)
- Adding Buttons to the Screen layout
- How to inflate an XML UI in the Activity.
- How to add functionality to the Button Click callback.
- How to create an Intent.
- How to start an Activity using the Intent
Basic Steps
- Download the source code zip file for this exercise. Save it on your computer, and unzip the file.
- Visit the instructions for this activity, and perform the steps in the instructions.
- Remember to use the forum if you need any help. There is a part in the instructions that shows how to upload new pictures to the SD card, but they are untested on Windows (the developers of the instructions only had Mac systems). If you are on Windows, and having trouble with this, check the forum for help.
- When finished, submit your application as a Android Package (.apk) file. To find the application .apk, look in your Project directory, there should be a directory (folder) called bin. In the bin directory, there will be a file called ProjectName.apk. That is the file to submit. To find your Project directory, right-click on the Project in Eclipse, select Properties, and then look at the Location field on the Resource page. That is the Project directory.


