

The default database configuration currently contains two records referenced by the IDs “londonbridge” and “toweroflondon”.

Once the app is launched, the screen illustrated in Figure 82-1 below will appear:Īs currently implemented, landmarks are located using the ID for the location. Having located the folder, open it within Android Studio and run the app on a device or emulator. The project is contained within the AppLinking folder of the sample source code download archive located at the following URL: The goal of this chapter is to enhance the app to add support for app linking so that URLs can be used to display specific landmark records within the app. When a search locates a matching record, LandmarkActivity launches and displays the information for the related landmark. This activity allows the user to enter search criteria and to add additional records to the database. AppLinkingActivity is the main activity launched at app startup. The project consists of two activities named AppLinkingActivity and LandmarkActivity. In its current form, the app allows the existing records to be searched and new records to be added and deleted. In addition to the existing database entries, the app also lets the user add and delete landmark descriptions. The app is provided with an existing database containing a set of records for some popular tourist attractions in London. The app uses a SQLite database accessed through a standard Android content provider class. The project used in this chapter is named AppLinking and is a basic app designed to allow users to find out information about landmarks in London.
