To Examples
RestaurantLocator Example
Goal
- Create an app that locates restaurants on a map, drawn my onDraw
methods, with touch events.
Directions
- Create an Android project named RestaurantLocator. Use these layout and activity files:
activity_main.xml
MainActivity.java
- Create two new classes MyView and Restaurant with these source code files:
MyView.java
Restaurant.java