Using Google Places API, this Android app lets you select, save, edit, and retrieve a location on a map (with remarks) and store it in SQLite. Requires Google Play Services and an API key. Originally an Android Studio project (2017), ported to Kotlin.
Google Maps / Places keys must not live in source control. The build injects one key at compile time.
- Create or open a key in Google Cloud Console with Maps SDK for Android and Places API enabled.
- Restrict the key (Android apps → package
com.example.personalplacenotebook+ your debug/release SHA-1). - Put the key in
local.properties(gitignored):
GOOGLE_MAPS_API_KEY=your_key_hereOr set the GOOGLE_MAPS_API_KEY environment variable.
- See
local.properties.examplefor a template. Sync / rebuild after changing the key.
Manifest Maps metadata and Kotlin Places.initialize(...) both use the build-generated R.string.google_api_key.
If a key was ever committed publicly, rotate it in Cloud Console and update only local.properties.
Emulator setup: after wipe/cold boot, set a fix via ⋯ → Location → Set Location (or adb emu geo fix <lng> <lat>); once a fix is available the app keeps Maps’ default camera covered until it centers on device GPS.
./gradlew :app:assembleDebug




