Smartphones and tablets are packed with sensors that allow us to take experimental data, essentially making them mobile physics labs. Apps exist that make it easy to capture and analyze data from these sensors, allowing users to study diverse phenomena such as free fall acceleration, the speed of sound, radioactivity, and many others. Commonly, the use of apps in the physics classroom focuses on existing apps rather than on the creation of apps themselves. This is for a good reason-writing an app usually requires advanced knowledge of programming languages and experience with app design. These skills are generally regarded as beyond the typical physics student. However, there are app development environments, such as MIT App Inventor 2 for Android, which make the process of creating an app and utilizing the sensors much more accessible to students. Putting the ability to create and configure apps within the reach of students can also help integrate computation into the curriculum. In this article, we discuss our creation of an Android app, Time Dilation Calculator, done as part of a senior undergraduate capstone project, which uses App Inventor and a mobile device's global positioning system (GPS) receiver to calculate the time dilation effect of special relativity.