December 2013
Beginner
416 pages
12h 45m
English
Currently in the routes view, a list of routes, all with the same name, is displayed. You can change this so that touching a route will display a list of trips inside that route. First, you need to create the new trips ListActivity. This activity is similar to the routes ListActivity you created earlier.
1. Create a new Activity in the com.androiddevbook.onyourbike.chapter7.activities package named TripsActivity by using the new Android Activity wizard. Give the new activity the title Trips, and click Finish. Make sure that the activity has been added the Android manifest file:
<activity android:name= "com.androiddevbook.onyourbike.chapter7.activities.TripsActivity" android:label ...
Read now
Unlock full access