A (175)

(Tuis.) #1

566 CHAPTER 15: Developing for Android Wearable Devices


If you don’t find the EarthTime icon on any of the screens, simply use the Run Icon drop-down
menu, shown in Figure 15-14, to launch the application again, now that the Neptune Pine AVD
emulator is restarted. You can use the Run As ➤ Android Application menu sequence to do this.


Once Eclipse writes the APK file to the AVD, you will see the application running, as shown in pane
four in Figure 15-16. As you can see, it looks great. It is time to plug the Neptune Pine smartwatch
into your PC, mount it, and test the APK! This will show you how to copy an .APK file over to a
hardware device, so that you can do real-world Android smartwatch hardware device testing!


Attaching the Pine to the Workstation USB Port


To be able to follow along completely in this chapter, other than using the AVD emulator, you will need
to purchase a Neptune Pine smartwatch. Luckily, they are extremely affordable, especially considering
that they are a full-blown Linux computer that you can wear on your wrist! I highly recommend that
you purchase one for your Android application development as soon as you are able to do so.


Next, plug your Neptune Pine into your workstation USB port, using the USB to MicroUSB cable that
comes with the Neptune Pine. A window will pop open showing the Neptune Pine module and a folder
named Phone (I told you it was basically a smartphone on your wrist!), which is actually the internal
storage (F:) for the smartwatch. To be able to see this as an F: drive, and also see the G: drive (the SD
card), you need to go into the Settings Icon in the Neptune Pine Apps area, and select the USB Connect
section of the settings subheadings. Then select the USB Mass Storage option. See Figure 1 5-1 7.


Figure 15-17. Plug the Neptune Pine via a USB cable into your workstation

Free download pdf