Due Date: Mon 17 Sep
- Ensure you have a functioning development environment.
- First steps in Android development
ADT Plugin Installation
Verification of ADT Plugin
To verify that you have a functioning ADT plugin, perform the following steps. (You might want to try first with hello-java
, which requires no changes to run the tests.)
- If you have an actual Android device, find out the Android version of your device: Settings > About ... > Android version. Else simply use the latest available version in the remainder of this project.
- To ensure your Eclipse ADT plugin installation supports the same version as your device: Windows > Android SDK Manager, then find your version and install the corresponding SDK Platform and Samples for SDK
- Open your IDE (Eclipse) and ensure you are in the Java perspective.
- Create an Android Virtual Device (AVD) of the correct version from above.
- Create a new Android sample project: New > Other > Android > Android Sample Project.
- Choose the correct Android version from above and click Next.
- Choose SkeletonApp.
- Open res/values/strings.xml, switch to the source view by clicking the strings.xml tab below, and change main_label to a value of your choice.
- Run the application: right-click on the project root node, then Run As > Android Application. Now the emulator will take some time to boot up. Then you should see your application running with your changed message. Play around a bit with the emulator, and you should see an icon for launching the app etc. Leave the emulator running.
- Now create another Android sample project: SkeletonApp > test
- Rename the newly created project tests to SkeletonApp tests by right-clicking on the project root node, then Refactor > Rename.
- Tie this test project to the main project: right-click on the test project node, then Build Path > Configure ... > Projects > Add and choose SkeletonApp. Now the syntax errors (red xs) should go away.
- Run the tests: right-click on the test project root node, then Run As > Android JUnit Test.
It is crucial that you resolve any problems you have by the end of this week with the help of the TA or the instructor.
Please create three screenshots:
- Java perspective after successful build
- Emulator with the running application
- JUnit view after running unit tests
- Create a private Git repository on Bitbucket called project0d. You must use exactly this name.
- Add the main and test project folders to the repository.
- Commit and push your code to the repository.
- Share the repository with the instructor (laufer) and the TA (ejburns) through admin > access management. Notification will occur automatically.
- 1 submission via Bitbucket repo
- 1 modify initial message in app
- 1 for each of the three screenshots showing that the corresponding step was successful
- 5 points total