August 2025
Intermediate to advanced
270 pages
6h 16m
English
Android uses packages to modularize and namespace code. When we created our app, we set the default package to com.masilotti.hikingjournal. Each package mirrors a directory on the file system, similar to how folders work in Xcode.
In Android Studio, create a new package by right-clicking com.masilotti.hikingjournal and selecting New and then Package.

To match our naming conventions of the iOS app, inspired by Rails, name the package com.masilotti.hikingjournal.activities. Then drag MainActivity.kt inside the new package. Click OK in the dialog to automatically update any references to the file’s new location.
Read now
Unlock full access