© Liz Clark 2019
Liz ClarkPractical Tinker Boardhttps://doi.org/10.1007/978-1-4842-3826-4_6

6. Android on the Tinker Board

Liz Clark1 
(1)
Boston, MA, USA
 

In addition to TinkerOS, ASUS has another official operating system for the Tinker Board: Android. It can be easy to forget that Android is actually an open source operating system based on Linux. As a result, anyone can build their own distribution of it, just as with desktop Linux distributions such as Debian.

At the time of writing, the version of Android that ASUS has released for the Tinker Board is based on Android version 7, known as Nougat. Although an older version, it is still supported and receives security updates, making it a safe operating system to use connected to the Internet.

Installation

To prep your SD card or eMMC to install and run Android, you’ll follow the instructions outlined in Chapter 3, with the only difference being that you will download the Android .img file from the ASUS Tinker Board website rather than TinkerOS. After you’ve followed the steps, you can try booting into Android. The first boot into Android takes longer than subsequent boots before you finally reach the desktop because of the file systems being built. Subsequent boots are much faster and only take between 10 to 20 seconds.

Note

If you get any errors on the first boot, such as a disk repair error, let it repair itself and see if it boots successfully afterward. If it doesn’t, try imaging your storage again or using a different SD card.

Navigation

Once you get to the Android landing page, you’ll notice that it looks similar to an Android tablet interface, complete with the message to “swipe up” to enter the homepage. If you’re using a screen with touch capabilities, you can plug the USB from your monitor into the Tinker Board and treat it like a tablet. If you prefer to use a keyboard and mouse, though, you can still do that.

Try to think of the mouse acting as a touch input. Every time you left-click, it’s like you’ve tapped the screen; and if you need to swipe in a certain direction, you’ll hold down the left button and move the mouse in the correct direction. You may experience some glitches using this method, though, as the mouse can become very sensitive compared to the inputs that the Android system is expecting from a touch input.

You can also use a remote, whether a traditional TV-style remote or gamepad, to navigate as well, like operating a Smart TV or other similar device. Since Android is set up to be a touchscreen operating system, a remote works very well for navigation. The remote can use a wireless dongle or Bluetooth (BLE) to communicate with the Tinker Board. These remotes are sold for home theater solutions or you can get adventurous and build your own using a development board that has BLE available onboard. We’ll be discussing remote control options with the Tinker Board during the project chapters as well, including how to build a quick and easy BLE DIY remote.

The Home Screen

Now that you’ve chosen how you’re going to navigate Android, let’s look at the default home screen provided by ASUS. As shown in Figure 6-1, in the top-right corner there is a battery status icon as well as a clock, like an Android phone display. Moving toward the middle of the screen there is an icon for the Contacts app and then right below that, from left to right, are the Email, Internet Browser, Apps Menu, Music App, Photos and Camera apps. We’ll explore the functionality of some of these apps shortly.
../images/465130_1_En_6_Chapter/465130_1_En_6_Fig1_HTML.jpg
Figure 6-1

The Android landing page on the Tinker Board

At the very bottom of the screen are navigation and utility controls. From left to right they are the Lower Volume, Back, Home, Overview, and Raise Volume buttons. For those unfamiliar with Android, the Back button will bring you back one page in an app, the Home button will usually bring you back to the home screen, and the Overview button will show you which apps are currently open. You can then quickly switch between apps or close apps out.

More Apps

There are more preinstalled applications in this Android distro than appear on the home page. If you go to the Apps Menu icon, it will open a new window which reveals all the apps that are currently installed, as shown in Figure 6-2. As you can see, the apps are standard Android and utility apps that you would expect to find after a fresh installation of an operating system. A lot of these apps will function best with an Internet connection available, so let’s connect to Wi-Fi and then come back to explore.
../images/465130_1_En_6_Chapter/465130_1_En_6_Fig2_HTML.jpg
Figure 6-2

The preinstalled apps for Android on the Tinker Board

Connecting to Wi-Fi

To have the full Android experience, it’s important to get your Tinker Board online, especially considering that Android usually runs on a device with data communication enabled. Since we discussed security in the TinkerOS chapter, you may be wondering about security for this Android distro, especially since it’s an older Android version. At the time of writing, Android Nougat is still supported by Android. It still gets security patches, and if you look in the release notes from ASUS they do note when they’ve implemented a security patch, so if you don’t do anything sketchy you’ll have a secure experience. With all this in mind, let’s navigate to Settings and connect to your network.

Note

You can, of course, use wired Internet via the Tinker Board’s onboard Ethernet port, but depending on your router’s location this may not be an option for you. If speed and stability are priorities for you when using Android for a project you have in mind, then of course use Ethernet.

After entering the Settings menu, you’ll see that the first section at the top of the screen is Wireless & Networks, as shown in Figure 6-3. Click on Wi-Fi, which will bring you to a new screen. You’ll see a toggle to turn Wi-Fi on or off. The default after a fresh installation is off, so make sure that you toggle it on to begin the connection process.
../images/465130_1_En_6_Chapter/465130_1_En_6_Fig3_HTML.jpg
Figure 6-3

Wireless and networks settings

After you toggle Wi-Fi on, Android will say that it is searching for available networks to connect to. After a few seconds, all of the available networks will be listed, as shown in Figure 6-4. Select your network from the list and you’ll then be prompted for a password for your network. After entering your password, Android will check your authentication and after a few moments, assuming you’ve entered your password correctly, it will say you are connected to your network. You’ll also see the Wi-Fi symbol with a strength level indicator pop-up in the upper-right corner of your screen. This will allow you to quickly see if you’re connected in the future and also check on signal strength depending on your location.
../images/465130_1_En_6_Chapter/465130_1_En_6_Fig4_HTML.jpg
Figure 6-4

List of available wireless networks that appears after you toggle Wi-Fi on

More Settings

While we’re in Settings, we might as well explore a bit. After finishing up with Wi-Fi, choose Back at the bottom of your screen to go back one page to the main Settings menu. Similar to other Android devices and iOS devices, it has settings options for Bluetooth, display, notifications, and so on. Some items here are a bit different, though, since they are set up for the Tinker Board and not for a mobile device. For example, as seen in Figure 6-3, there are additional Internet settings beyond Wi-Fi if you need them. Under the More button in Wireless & Networks there is a VPN option, which has become more common now for mainstream devices, but there are also Ethernet settings to check and configure as well.

Battery?

Moving down the Settings menu, you’ll see a Battery section. In that section, you’ll see an option to show the battery percentage. Any power source being used through the USB power port, whether it be a USB power supply or a portable battery bank, will show that the Tinker Board is “charging” and has a battery of 100% (Figure 6-5). Since this is an operating system for tablets and phones that have rechargeable batteries, and the Tinker Board does not have an onboard rechargeable battery, it will still show that the Tinker Board is “charging” and is at 100% when plugged into a wall outlet.
../images/465130_1_En_6_Chapter/465130_1_En_6_Fig5_HTML.jpg
Figure 6-5

The battery percentage screen

HDMI and Audio Source

One of the more important sections in Settings for the Tinker Board is the ability to select your audio and video inputs and outputs. If you navigate to the HDMI and Audio Source section, you’ll be able to choose your preferred options; such as audio traveling through HDMI or the headphone jack (Figure 6-6). Here you can also adjust the screen resolution, screen settings for zoom, and a timeout setting that sets a timer for when the screen will go to sleep, similar to energy settings on your laptop or desktop computer. All of these settings will be very important if you plan to use Android for media playback.
../images/465130_1_En_6_Chapter/465130_1_En_6_Fig6_HTML.jpg
Figure 6-6

Audio output choices

Turning on Developer Options

The last major setting that we’re going to walk through is turning on Developer Options. Finding it is a bit of an Android Easter egg, since it isn’t as simple as toggling something on or off. Scroll down to the very bottom of the settings page and click About Tablet. Once on that page, find the Build number section at the bottom of the screen. There you’ll see the current build number for the version of Android that you’re running on the Tinker Board. Now click the build number five times. A counter should pop up on the screen giving you a countdown to how many more clicks are required to enter developer mode. Once you’ve enabled it, it will say “You are now a developer!” on the screen, as shown in Figure 6-7.
../images/465130_1_En_6_Chapter/465130_1_En_6_Fig7_HTML.jpg
Figure 6-7

“You are now a developer!”

Now go back to the main settings page and you’ll see a new option in System Settings, called Developer Options. Click it and you’ll see a lot of options that are a bit unusual to have access to. Most are for testing purposes for, you guessed it, Android developers. But a lot of them can be fun to play around with for more advanced users, such as enabling a Bluetooth snoop log, bug reports, and forcing GPU rendering to name a few. If you decide that you don’t want these settings enabled, you can toggle them off at the top of the page. Doing this doesn’t make the Developer Options entry in Settings disappear, though. After you enable it the first time, it will remain an option to toggle off and on in Settings going forward.

More to Explore

There are, of course, more settings available to you, but most users will more than likely find Wi-Fi and audio and video settings to be the most important, as well as Developer options for more advanced users (and hopefully you got a good chuckle out of the Battery setting’s readout). Feel free to explore and change any settings according to your preferences. We’re going to move on from Settings and go back to the apps.

Apps In-Depth

Now that you’re online and you have your other settings sorted out, let’s take a closer look at some of the applications available. We’ll look at how to use some of the more unique apps and the functionality available within them that can help you get the most out of Android on the Tinker Board.

Camera

The Camera app allows you to take photos with a ribbon cable camera module or USB webcam. The camera module can be connected to the onboard MIPI CSI camera connector, which is located next to the HDMI port. The USB webcam would of course be plugged into one of the USB ports. We’re going to explore connecting a camera module to the MIPI connector for the purpose of walking through the app’s functionality.

There are many different cameras available that will be compatible with the MIPI connector from a variety of companies. You can go the route of a basic camera module or one with special features, such as a night vision camera or one that has interchangeable lenses. The classic ribbon cable cameras from the Raspberry Pi Foundation are also compatible, so if you have been doing Raspberry Pi projects and have a camera module then you can use that hardware with the Tinker Board.

To connect the camera, first locate the plug on the Tinker Board as shown in Figure 6-8, and gently lift-up the white plastic bar. This will eventually hold the ribbon cable in place.
../images/465130_1_En_6_Chapter/465130_1_En_6_Fig8_HTML.jpg
Figure 6-8

The camera module plug. Notice the camera icon directly above it on the Tinker Board’s PCB.

Next, take your camera module and locate the exposed pins on the ribbon cable. The pins will be shiny in appearance and will need to make contact with the pins inside the plug on the board. Carefully insert the ribbon cable with the pins facing toward the HDMI port as shown in Figure 6-9. After you’re sure that the ribbon cable cannot be inserted any further, gently push down on the white lever on the plug to secure the camera’s cable in place.
../images/465130_1_En_6_Chapter/465130_1_En_6_Fig9_HTML.jpg
Figure 6-9

A camera module’s ribbon cable plugged into the Tinker Board. Notice that the cable’s contact pins are facing toward the HDMI port’s side of the camera connector.

Note

Both the ribbon cable connector and ribbon cable are fragile and need to be handled with care during installation and use. They also tend to be sensitive to static. Be aware of any strain that is placed on the ribbon cable while in use and consider a case or mount for the camera module and its cable for long term use.

After your camera is plugged into the socket, open the Camera app. You should see a message that the camera is being set up. After a few seconds it should recognize that the camera module is connected to your board and you should see what the camera is seeing displayed on screen as shown in Figure 6-10.
../images/465130_1_En_6_Chapter/465130_1_En_6_Fig10_HTML.jpg
Figure 6-10

The default Camera app GUI

Note

If it says that the Camera app has stopped or that there is an error in connecting to the camera module, then the camera is not connected correctly. Try reseating the ribbon cable or checking that the ribbon cable is plugged into the socket in the correct orientation.

Camera App Functionality

The Camera app has basic functionality with a minimalist interface. You can take a picture by clicking on the camera icon located on the right side of the screen. You can also adjust flash, bring a grid overlay onto the viewfinder for optimally framed photos, and set a timer to delay by either 3 or 10 seconds when the picture will be taken after you press the button to take the picture. All of the photos that you take will be saved in the Gallery app, as shown in Figure 6-11. In addition to the preinstalled Camera app there are more apps you can use with a connected camera that provide additional functionality and features. We’ll look at an app that does this in a little bit.
../images/465130_1_En_6_Chapter/465130_1_En_6_Fig11_HTML.jpg
Figure 6-11

The Gallery app. All photos are sorted via the application they were taken with.

Music and Video

One of the appealing features of the Android operating system on the Tinker Board is the ability to be a small, compact media player for your video and audio files. Let’s take a look at the built-in apps that come preinstalled and some others that you may enjoy.

The Music App

The preinstalled Music app is a robust player with a straightforward and well-organized GUI. There are tabs for Artists, Albums, Songs, Playlists and Now Playing. Clicking the option button (...) in the bottom-right corner brings up the options Party shuffle and Shuffle all. The difference between the two is that Party shuffle creates a playlist of songs of the same genre so that you can see what is going to be played next and add songs in or take songs out of rotation, whereas Shuffle all is completely random.

If you connect any external storage via USB that has audio files on it, the Music app will automatically find them and sort them according to the files’ metadata. As long as your metadata is correct, you will see all of your albums and artists as shown in Figure 6-12.
../images/465130_1_En_6_Chapter/465130_1_En_6_Fig12_HTML.jpg
Figure 6-12

The Music app’s GUI for artists and albums

The Video App

The preinstalled Video app is a bit barebones. Available video files appear in a list, and selecting one allows it to play. As you saw with the Music app, if you connect a flash drive with videos on it, they will appear in the queue for playback. You can also review videos that you record with the Camera app, as shown in Figure 6-13. This app gets the basic job done; but if you’re looking for a GUI to similar the Music app’s and more options in general, consider the VLC Media Player for Android.
../images/465130_1_En_6_Chapter/465130_1_En_6_Fig13_HTML.jpg
Figure 6-13

The preinstalled Video app’s playback screen

Installing VLC

You may remember that we installed VLC during the TinkerOS chapter. Again, it’s a great open source media player and it’s available for Android as a download directly from VLC.

To download the VLC APK file, open the browser and navigate to the VLC download page for Android.1 Once there, you’ll click the “download the APK package from our mirrors” link underneath the Google Play and Amazon Fire App store icons, as shown in Figure 6-14.
../images/465130_1_En_6_Chapter/465130_1_En_6_Fig14_HTML.jpg
Figure 6-14

The VLC for Android webpage. Notice the direct download link below the Google Play and Amazon Fire icons.

This brings you to a new page with versions available for different ARM architectures (Figure 6-15).
../images/465130_1_En_6_Chapter/465130_1_En_6_Fig15_HTML.jpg
Figure 6-15

The available VLC downloads for Android. Be sure to select ARMv7.

Select and download the ARMv7 version; as you may remember from Chapter 1, that is the Rockchip architecture version on the Tinker Board. A few seconds after you click, VLC should begin downloading. Once it finishes, you’ll get a notification at the top of your screen. If you click that notification, you’ll be prompted to install VLC. Before you do this, though, you’ll need to ensure that you have enabled installations for apps from unknown sources. You can toggle this option on or off by going to Settings ➤ Security ➤ Unknown Sources in the Device administration section. After that, click Install on the VLC notification and after it finishes, an option to launch VLC will pop up on your screen. Click to launch and VLC will open.

After opening it the first time you’ll be asked to allow it permission to access photos, media, and other files on your device. Click Allow, especially since it is a media player.

Using VLC

Like the default Music app, VLC can find video and audio files that are located on external storage devices. When you first attach a USB drive with VLC, you’ll be asked if you want to import the media stored on it, as shown in Figure 6-16. After a few moments, your videos and audio files will populate and be sorted according to their metadata.
../images/465130_1_En_6_Chapter/465130_1_En_6_Fig16_HTML.jpg
Figure 6-16

Attaching external storage in VLC

All videos will play full screen; and if you’re using a mouse to navigate, mouse functionality will not be available during playback. This is an idiosyncrasy that pops up from time to time when using a keyboard and mouse with Android. You can pause and resume playback by hitting the space bar on your keyboard and exit playback to the main GUI by hitting Esc. After a video ends, you will be automatically brought back to the main GUI as well.

Audio files can be sorted by artist, album, songs, genre or playlists. If you play music in an album, the entire track listing will remain on the screen, and the song that is currently playing will appear at the bottom of the screen with pause and play buttons located in the bottom-right corner as shown in Figure 6-17. The track currently playing will also remain visible if you travel to other pages in VLC.
../images/465130_1_En_6_Chapter/465130_1_En_6_Fig17_HTML.jpg
Figure 6-17

Now playing in VLC

An additional feature is that music will continue to play in the background when using other apps, as with desktop music players. With the functionality available for both video and audio, VLC can be a single solution for media playback in Android on the Tinker Board, just like it was for TinkerOS.

ApkInstaller

One app that comes preinstalled may be unfamiliar to you, especially if you are not an avid Android user, and that is ApkInstaller. If you have no idea what that means, you can probably at least infer that it is an application that installs something, that something being an APK. But what is an APK?

An APK is the installation file for an Android app, similar to .EXE files on desktop machines. If you’re following along with the examples, you actually just installed an APK for VLC. Traditionally, you would install an APK file, or app, through an app store; such as Google Play and as a result never even think about the fact that a file is being installed onto an operating system. ApkInstaller takes out that app store middle man and allows you to take an APK file and manually install it onto your Android operating system.

Legal Considerations

The idea of installing apps without an app store sounds very freeing and makes Android feel more like a desktop operating system. But if this is making you wonder if there are any piracy or legal concerns associated with this process, then you’re absolutely right. If you were to download an app’s APK from a third-party website, especially an app that would cost money if you were to download it from an app store, and install that APK and run it, that would certainly be considered piracy and could be subject to legal action. In general, it’s ill-advised to download an APK file from a third-party site since there are virus concerns associated with many of them. So, with all of these red flag concerns in mind, why is this application included?

An ApkInstaller doesn’t have to be used for technological evil. If you were to develop your own Android app and install its APK, that would be completely legal, and you would have every right to do this. Other scenarios could be if another developer sent you their APK to install and test, or perhaps a company were to post an APK file online, like VLC, for their app to install outside an app store environment. All of these are perfectly legal and sensible uses of the ApkInstaller, and they are why ASUS includes it. This version of Android for the Tinker Board is really intended for developers to have a high-powered test bed to play around in Android so that they don’t have to have an emulator on their desktop or a phone or tablet.

How It Works

With all the disclaimers and background out of the way, we can go over how ApkInstaller works. First navigate to the ApkInstaller icon and launch it by clicking on it. The first time you open ApkInstaller, a message from Android lets you know that the app needs you to grant access to read from and write to external storage devices. This is so that external storage can be utilized by the app in case you are loading or saving APK files via USB storage devices. Allow the app to do this by clicking OK. Next, it will ask you to allow it to access photos, media and files on your device, an agreement similar to those often seen for Android apps. Select Allow to proceed. After the permissions have been set and the app opens, you’ll see that it’s a very simple GUI with buttons for Install, Manage, and Exit (Figure 6-18).
../images/465130_1_En_6_Chapter/465130_1_En_6_Fig18_HTML.jpg
Figure 6-18

The ApkInstaller GUI

Install

If you have an APK file on your SD card, eMMC, or removable storage device that you want to install, use the Install button at the top. When you click Install, it brings you to a page that shows you the available storage devices connected to your Tinker Board, as shown in Figure 6-19. On the original Tinker Board, most apps, including ApkInstaller, consider the SD card to be the Internal Memory. It will almost never say SD card. Select your storage device and then navigate to the location of your APK file. Select the file and you’ll be prompted to proceed with the installation by clicking Install. After a few moments, you’ll receive confirmation that the file has finished installing with a pop-up window. You’ll also have the option to open the app right away from that pop-up.
../images/465130_1_En_6_Chapter/465130_1_En_6_Fig19_HTML.jpg
Figure 6-19

Attached storage devices available to install APK files from

Manage

The second option in ApkInstaller is Manage. By clicking the Manage button, you’re brought to a list of all the apps currently installed on your Tinker Board. If you click an app, you’ll be greeted by a menu with options to Launch, Export, Uninstall, or Cancel, as shown in Figure 6-20. Selecting Launch opens the app directly. Export exports the APK file for the app that you can then store for later installation. Uninstall uninstalls the app from your Tinker Board, and Cancel exits the Action menu. Another handy feature on the Manage page is the ability to see the version number for each app installed.
../images/465130_1_En_6_Chapter/465130_1_En_6_Fig20_HTML.jpg
Figure 6-20

Options available for apps when using the Manage tool

Note

If you export any APK files, please keep the legal discussion from earlier in the chapter in mind.

Exit

The last button available in ApkInstaller is Exit, and unlike its counterparts, it doesn’t have any advanced features of functionality; it simply closes out the app.

But as you can see, the ApkInstaller app is quite powerful and really opens up the Android experience for developers. It does some things with a single click that can sometimes be nearly impossible or extremely difficult otherwise. But as discussed earlier, it’s important to use this app for its intended purpose only and not to use it for malicious purposes.

Power

One of the most valuable functions in the apps menu is the Power button. Although not an app, it allows you to safely shut down and reboot the Tinker Board while in the Android operating system (Figure 6-21). Without it, there would be a risk of data corruption to your storage from unexpected shutdowns.
../images/465130_1_En_6_Chapter/465130_1_En_6_Fig21_HTML.jpg
Figure 6-21

The options for shutdown and reboot

Where Is the App Store?

With all this talk about apps, you may have noticed that there is no app store preinstalled on this Android distro. Traditionally the app store that you would find on most Android phones or tablets is the Google Play store; so why isn’t it on the Tinker Board? Again, this distro is meant for developers, but another reason is that in order for Google Play to run and be used on an Android device, it needs to be a certified Google Android device.

The Tinker Board is not a certified Google Android device, but there are other app stores available for Android that can be installed and used on the Tinker Board. The one that we’re going to look at is F-Droid, which features free and open source applications to install. They also have automatic updates and security patches for their apps similar to what you may be familiar with on your smart phone or tablet’s app store.

Note

There have been some success stories on the forums of getting the Google Play store running on the Tinker Board. However, the process has not worked consistently, and it is a bit of a hack. Additionally, since the Tinker Board is not a certified Google Android device at this time, this would be a violation of the Google Play terms of service. As a result, the process could not be showcased in this book. Therefore, we are instead looking at the open source option F-Droid.

Installing F-Droid

The installation process for F-Droid is a lot like what we did for VLC media player. First, we’re going to navigate to F-Droid’s web site.2 Toward the middle of the F-Droid homepage (Figure 6-22), there is a Download F-Droid button. Clicking here will begin to download the APK file to your Tinker Board. After the download completes, a notification will appear at the top of your screen and prompt you to install the APK file. Click Install and after a minute or two the installation will finish, and a pop-up window will let you know that F-Droid has finished installing. From there you can click to open F-Droid.
../images/465130_1_En_6_Chapter/465130_1_En_6_Fig22_HTML.jpg
Figure 6-22

The F-Droid web page. Notice the download option toward the middle of the page.

Exploring F-Droid

After opening F-Droid, you’ll notice that the layout is very similar to other app stores with a landing page showcasing featured apps of different genres, as shown in Figure 6-23. The focus of F-Droid is to offer open source apps that appeal to the open source community, so there are many developer tools available here as well as apps featuring Tux as their icon mascot.
../images/465130_1_En_6_Chapter/465130_1_En_6_Fig23_HTML.jpg
Figure 6-23

The F-Droid app store’s Categories view

Almost every app genre is featured here, though, from audio players to Internet security to games. We’re going to look at a couple of apps from F-Droid to fill in some gaps left by the absence of the Google Play store that some avid Android fans may be feeling.

Installing an app from F-Droid is very simple. Navigate to an app that you wish to install, and you’ll see a button for Install (Figure 6-24). Click that, and the download process will begin. After the app has downloaded, you’ll be asked if you want to install the app. Agree to the installation by clicking Install, and after a few seconds your app will be ready to use. A pop-up will ask if you’d like to launch the app. You can click Launch to go directly into the app or Cancel to continue browsing F-Droid.
../images/465130_1_En_6_Chapter/465130_1_En_6_Fig24_HTML.jpg
Figure 6-24

How apps appear for installation in F-Droid

As you can see, there are a wide variety of apps to choose from and try out in the F-Droid store. A few that many people may find particularly interesting are Newpipe, 2048, and Open Camera.

The Newpipe app is a YouTube player that pulls from YouTube in close to real time by showing you trending videos and having a search option that seems to be on par with what you would expect from the desktop site or an official app. You can also view videos in their full resolution and adjust video settings as needed as shown in Figure 6-25. Of course, you can view YouTube videos in the included Internet browser, but having a standalone app option can sometimes offer a better experience, especially on a mobile OS such as Android.
../images/465130_1_En_6_Chapter/465130_1_En_6_Fig25_HTML.jpg
Figure 6-25

The Newpipe video settings

It really wouldn’t be a mobile OS experience without games. 2048 is a game that has been very popular on smart phones, and it has an open source port to F-Droid (Figure 6-26). It’s a numbers-based game and although you can play it with a mouse, serious players may want to hook up a touch screen for the full experience.
../images/465130_1_En_6_Chapter/465130_1_En_6_Fig26_HTML.jpg
Figure 6-26

2048 gameplay in action

Media playback and games are great, but let’s wrap this up with a look at a more functional app: Open Camera. Open Camera is a camera app that utilizes a camera attached to the Tinker Board just like the included Camera app in the Android distro. Open Camera is a much more robust camera app though, featuring many advanced controls, such as zoom, bitrate, and framerate controls for video and a customizable GUI.

Using Open Camera for Time-Lapses

One feature that really stands out for Open Camera is the timer. This allows you to set up a time-lapse camera with very little effort. Time-lapse camera projects with single-board computers are quite popular because of their size, processing power, and storage capabilities. Often this is done in a Linux operating system, like TinkerOS, but that requires programming and can be complicated depending on your needs. Using Open Camera with this Android distro, though, makes things simple and allows you to adjust settings easily if you need to through the GUI.

To access the timer settings, click the Settings icon in the top-right corner of the app, which resembles a machine cog, as shown in Figure 6-27. After getting to the Settings page, you’ll find the timer settings conveniently located at the top under Camera Controls.
../images/465130_1_En_6_Chapter/465130_1_En_6_Fig27_HTML.jpg
Figure 6-27

The Open Camera GUI

To set up a continuous time-lapse we’ll first need to select how often we want a picture to be taken. Click the Timer option at the top of the page, which will have a menu with different time intervals, as shown in Figure 6-28. Select the option that makes the most sense for your time-lapse subject. Longer intervals are great for longer time-lapses, such as sunsets. Shorter intervals are ideal for things like project builds or 3D prints. After you’ve made your selection, this menu will minimize.
../images/465130_1_En_6_Chapter/465130_1_En_6_Fig28_HTML.jpg
Figure 6-28

The Timer options for time intervals

Next, select how long your time-lapse will last by clicking the Repeat option. You’ll see that there aren’t as many options here, as shown in Figure 6-29. If you want to capture a quick time-lapse, then any of the 2X to 10X options will work well for you, but for anything longer than ten photos you’ll want to select Unlimited. This means that the time-lapse will continue running until you stop it manually.
../images/465130_1_En_6_Chapter/465130_1_En_6_Fig29_HTML.jpg
Figure 6-29

The Repeat options. Unlimited will allow your time-lapses to go for as long as you want them to.

The final step is to go to the Repeat mode interval option, as shown in Figure 6-30. You’ll want this setting to match your Timer setting. For example, if you’ve selected 5 seconds for your Timer, then you’ll choose 5 seconds for your Repeat mode interval. Otherwise, you may find that you’re taking too many or too few photos in most cases. However, feel free to experiment for different effects and results.
../images/465130_1_En_6_Chapter/465130_1_En_6_Fig30_HTML.jpg
Figure 6-30

Options available for the repeat mode interval

After your settings are set up, return to the main Open Camera GUI, where you’ll see your camera preview screen. To begin your time-lapse, you’ll click the camera icon on the right side of the screen. Your time-lapse will begin and you’ll see a countdown that matches your Timer interval that was set up in the previous steps, as shown in Figure 6-31. Now your time-lapse is running until you end it by clicking the camera icon again. After you end it, a small message will appear briefly on the screen that says “Cancelled timer.” As you can see, this makes time lapses very simple to set up and configure to your needs. There are many more features within Open Camera, too many to go over in this chapter, but hopefully you now have an idea of what it has to offer when used on the Tinker Board and the possibilities of many of the apps available from F-Droid.
../images/465130_1_En_6_Chapter/465130_1_En_6_Fig31_HTML.jpg
Figure 6-31

The Open Camera GUI while a time-lapse is in progress. Notice the 3 over the preview window, which lets you know that a photo will be taken in 3 seconds.

Note

If you want to take a single photo with the app, then you’ll have to reset your timer settings that were set up in the previous steps.

Conclusion

When we typically think of Android, we think of smart phones or tablets, usually with Google integration. Android for the Tinker Board is a departure from that and instead goes the open source route to give you an idea of what this OS architecture is capable of outside its branded smart phone and tablet form. At this time there aren’t many single-board computers that have a dedicated Android operating system distributed by the manufacturer, so the Tinker Board provides a great opportunity to explore Android from a different perspective.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
13.58.121.131