Started programming on Android yesterday!
I know there similar apps to this. I had one which needed a txt file with data which wasn't dynamic. Since then I want to code my better solution for this kind of app (also as a practice for me)!
The user creates an xml file which contains data about the transfers he often needs, e.g:
- Code: Select all
days: 1111110 //Monday -> Saturday
days: 0000011 //Saturday,Sunday
At the start the user may select his start and destination. When no specific time/date is selected the current time/date is used. The app then looks for data which equals the users choice and shows nearest departure times.
I read the tutorial about using Android's built-in xml parser and it works very well!
- How should i structure my xml file for this task? Is there an array-like solution for the times?
- Is there a ListView or sth. like this which is suitable for displaying this data