Initial import of Android client source.
Initial import of Android client source.
Progress has been made on the Android client. A main menu in MainActivity is now partially implemented.
Further progress has been made. The user can now enter a stop code and submit the code and DisplayStopDataActivity will show, next task to do is to show the data for the bus stop.
Substantial work has been put in to DisplayStopActivity and now this activity displays bus stop data. The task is able to present friendly dialogs to the user if an error occurs.
The application now has a preferences activity. The user of the application can change a few selected options. The next commit is a clean up of the source code, possibly auto-refresh implemented and making a start on the bus stop data layout. A future task is to implement favourite stops.
The promised code cleanup has happened, but the creation of new code has meant another one will have to be done soon. Auto refreshing of bus stop data now works, but I had a hard time getting it to work without crashing so it's possible the application may crash, this will need to be tested. Hopefully I have it now though. Next task will be the ability to save favourite stops.
Further code cleanups and optimisations have been completed. The ability to add, delete and edit favourite stops has now been added. The client seems a lot more stable now. Next task is to change layout of the ExpandableListView in DisplayStopDataActivity to suit the application. After this has been completed, then it will be time to attempt to implement the map searching functionality.
The layout of the parent and child items in the ExpandableListView has been changed to give more detail to the user.
Fixes issue 1. Main bulk of this commit is adding Google Maps funcionality to the Android application. This is still a work in progress, but it does show stops on the map.
When a marker is clicked on in the MapView, a dialog is now displayed asking the user what they would like to do with that bus stop (view times, add as favourite or close dialog). Add as favourite has yet to be implemented but this is a small job as most of the code already exists.
Tied up a few loose ends. Added a line to the Ant build script (build-impl.xml) so that the APK file can be compiled unsigned to be signed later (for when releasing). Fixed a bug where the stop database could not be created if a database had not been created before by that application (the database directory doesn't exist), this bug was causing the map to crash the application due to an SQL exception saying that the database didn't exist. Added a menu item to the map view to allow the user to center back on to their current location. Removed the option to add a stop as a favourite stop from the dialog created in the list view, as they can add the stop as a favourite stop by viewing the stop times anyway.
Tidied a few things up and added auto-update to the client.
THIS REVISION IS THE LAST SUBMISSION FOR THE DISSERTATION. This revision makes auto-refresh of bus stop data more graceful on the device and fixes a bug when the user encounters an error getting the live bus stop data and attempts to refresh they get a different error message.
Added an About dialog for the application. Application now has an icon. Changed to using packaged menu icons instead of inbuilt system menu icons due to guidance at the Android developer guide. The map has a new and improved marker. The preferences layout was rewritten with a few added preferences. Code cleanups done here and there. Planning on rewriting DisplayStopDataActivity.
Added a new user interface to the application, thanks to Scott Straughan. Removed the checking for new app updates ability as this feature is made redundant in later versions of Android. Add delete favourite stop confirmation dialog to DisplayStopDataActivity. Changed application name to "My Bus Edinburgh". This revision is possibly the first release for the application on the Market.
Commented MainActivity.java. Added a <uses-sdk> element in to AndroidManifest.xml as required by the Android Market. Modified the HTML string in strings.xml to mention app Twitter account. Recoded DisplayStopDataActivity and it now performs a lot better, no crashing because of auto-refresh and it now handles rotation a lot better. The FetchLiveTimesTask.java class was added to assist with this.
Yet again, fixed the screen rotation crash in DisplayStopDataActivity, lets hope that is it finally fixed now. Added a new dialog menu item for the dialog displayed in BusStopMapActivity when a bus stop is selected. This new menu item allows the user to add or remove the selected bus stop as a favourite stop.
Fixes an issue which causes the application to crash upon startup if the bus stop database is corrupt. Added new menu icons. Bumped up version number. Hopefully finally fixed the rotation issue on DisplayStopDataActivity. Temporarily fixed the rotation issue in BusStopMapActivity, this needs to be revisited to fix properly. Done some code commenting.
Fixes issue 7. The user may now backup the favourite stops database and restore this backup at a later point. This feature needs more testing. The user can backup the database from the application preferences. A new Java file, GenericDialogPreference.java has had to be created to add functionality for the dialog button presses to be captured as this was not present in the Android API. Bumped up the version number for the next release. Corrected a few text snippets in strings.xml.