android database design and i18n
Posted on 2011-02-24
I am new to Android app development and would like to try to develop some simple apps for self learning. One of the apps is a simple information app which has only two screens. The flow is as the following:
Home screen - Have a list view to allow users to select a list of bus routes. When clicking one of the items in the list view, it goes to info screen.
Info screen - Displays information about the selected route.
To make thing simple as I am new, I would plan for an offline application and only involves retrieval of data. No update operation is allowed. Besides, I would like to support both English and Japanese display when user selects the language of the phone.
For database design, if I am developing a web application, I would design like the following:
ROUTE (ID, ORIG_EN, ORIG_JP, DEST_EN, DEST_JP, COMPANY_EN, COMPANY_JP, JOURNEY_TIME, REMARK_EN, REMARK_JP)
SCHEDULE (ROUTE_ID, DAY_TYPE_ID, START_TIME, END_TIME, FREQ)
FARE (ROUTE_ID, DAY_TYPE_ID, FARE_TYPE_ID, AMT)
CODE_TABLE (ID, TYPE_ID, DESC_EN, DESC_JP)
CODE_TABLE will store both day_type and fare_type.
I am not sure whether this is appropriate and feasible if we port to android phone. I have read some articles about android programming, but many of them are only involving one table only. If it is feasible, how can we do this in Android?
Can someone please kindly help to resolve my enquiries? Thanks.