1 minute read
8.4. Building and Running the App
8.4. Building and Running the App
If we try to run the app in an emulator, the compass will constantly show the north and the azimuth angle as 0 degrees. We need to try this app on a real device with a magnetometer and accelerometer inside (most Android devices have). Please build the app in Android Studio and install it on a real device. I tried this app on Asus Zenfone and it works as expected:
Advertisement
Figure 8.10. Compass app running on a real device
Now, let‟s take a break and get a strong coffee. In the next chapter, we‟ll learn using GPS and maps in our app.