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.

1.
P.
Vogt
and
J.
Kuhn
, “
Analyzing free fall with a smartphone acceleration sensor
,”
Phys. Teach.
50
,
182
(
March
2012
).
2.
L.
Kasper
,
P.
Vogt
, and
C.
Strohmeyer
, “
Stationary waves in tubes and the speed of sound
,”
Phys. Teach.
53
,
52
(
Jan.
2015
).
3.
J.
Kuhn
,
A.
Molz
,
S.
Gröber
, and
J.
Früber
, “
iRadioactivity – Possibilities and limitations for using smartphones and tablet PCs as radioactive counters
,”
Phys. Teach.
52
,
351
(
Sept.
2014
).
4.
See the “iPhysics Labs” column in this journal for more examples.
5.
D.
Wolber
,
H.
Abelson
,
E.
Spertus
, and
L.
Looney
,
App Inventor
, O'Reilly (
2011
).
6.
MIT App Inventor 2
, http://ai2.appinventor.mit.edu.
7.
Time Dilation Calculator can be downloaded from the Google Play store at https://play.google.com/store/apps/details?id=appinventor.ai_PLUPhysicsApp.TimeDilation Calculator.
9.
M.
Resnick
,
J.
Maloney
,
A.
Monroy-Hernandez
,
N.
Rusk
,
E.
Eastmond
,
K.
Brennan
,
A.
Millner
,
E.
Rosenbaum
,
J.
Silver
,
B.
Silverman
, and
Y.
Kafai
, “
Scratch: Programming for all
,”
Comm. ACM
52
(
11
),
60
67
(
Nov.
2009
).
AAPT members receive access to The Physics Teacher and the American Journal of Physics as a member benefit. To learn more about this member benefit and becoming an AAPT member, visit the Joining AAPT page.