Creating our WattDroid Android application has been a constant learning experience. Each step of the development process holds something new for us to learn. Although we are familiar with Java, there are specific ways to accomplish tasks which requires us to research these tasks. Fortunately, there are many good resources available to new developers. In an earlier blog, I provided links to some books that I found helpful. Although reading those books are good, I have found it is easier to learn by example. Here is a link to the source code for the example programs in "Beginning Android 2". This is a great place to look if you are having trouble getting started because there are many examples that show you how to perform different Android tasks.
Several improvements have been made to WattDroid. We added new features and started to improve the look of the application. A preferences menu is now available to the user. This is where the user is able to specify the WattDepot server URL that they would like to query. The first time WattDroid is run, a prompt asking the user for the server URL is shown. Once a URL is entered, it is stored as a user preference and WattDroid will automatically use this URL, unless the user changes it.
Preferences Menu
Server URL Prompt
The source list was styled to have an image as the background. To accomplish this, the main.xml file for the layout of the page had to be altered. A background referencing an image in the drawable directory was set in the linear layout tag. Other applications have had issues with the image not displaying properly while scrolling. If you are having these issues, check this link which gives an explanation of why it occurs and how to fix the problem.
Styled Source List
The next step for our application is implementing unit testing and automated project building using Hudson. This is important to ensure that changes we make to the project don't adversely affect previously written code. This will be another important aspect of Android development we will have to research and learn.
Monday, April 26, 2010
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment