How to hide/show toolbar in response to scrolling on Android

The Toolbar is a new android widget, introduced in API 21 (Lollipop), designed and intended to replace the ActionBar. The ActionBar was introduced in API 11 (Honeycomb), to appear at the top of an activity’s window. The Toolbar, on the other hand is more powerful than the ActionBar. For example, the Toolbar can be placed […]
Continue reading…

 

How to create document centric apps with concurrent tasks on Android Lollipop

Android L introduced a great new feature: the ability for a single app to have multiple tasks available on the ‘Recent Apps’ list. This is called Document Centric apps (Concurrent Tasks). In fact, this feature is a rather significant change in multitasking model in Android L, where focus has been shifted from traditional app-centric multitasking […]
Continue reading…

 

How to create activity transition animations on Android Lollipop

Android KitKat introduced the transition framework, which is a very convenient set of APIs for animating between different UI states in an application. The framework is built around scenes and transitions. A scene refers to a given UI state in an application (think of a scene like a ViewGroup, so the entire layout of an […]
Continue reading…

 

How to use RecyclerView and CardView on Android Lollipop

Android Lollipop introduced a whole new design paradigm, called Material Design. It encourages the use of bolder colors, flatter UI elements, and smoother animations. Android Lollipop introduces corresponding new APIs to help developers implement the Material Design guidelines, and two of these UI widgets are RecyclerView and CardView. The RecyclerView is designed to replace the […]
Continue reading…

 

How to set up two-factor authentication for SSH login on Linux

With many high-profile password leaks nowadays, there is a lot of buzz in the industry on “multi-factor” authentication. In a multi-factor authentication system, users are required to go through two distinct authentication procedures: providing something they know (e.g., username/password), and leveraging something they have “physical” access to (e.g., one-time passcode generated by their mobile phone). […]
Continue reading…

 

How to integrate Android into KDE Linux desktop

KDE desktop has long been favored by many Linux geeks because it has every element to fulfill their appetite: customizable every bit of it, aesthetically pleasing desktop effects, openness to adopting new technologies such as semantic desktop, etc. Beyond all these bells and whistles, the KDE desktop community constantly tries to advance the state of […]
Continue reading…

 

How to configure Nagios for audio alerts and mobile notifications

In a Network Operation Centre (NOC) environment, setting up alerts is extremely important. As one of the most popular NOC monitoring systems, Nagios features powerful alerting services. Alerts generated by Nagios can be sent out in various means, so that they can be acted upon immediately. Email notification is the most commonly used option. This […]
Continue reading…

 

How to develop cross-platform mobile apps on Linux

The last few years have witnessed dramatic growth of the mobile market, mostly driven by a large selection of applications. As consumers, we all hate to see some kind of market monopoly by any one platform. The more competition, the more innovation. As developers, we have mixed feelings about cross-platform development. Cross-platform development has several […]
Continue reading…

 

How to install and run Android x86 on VirtualBox

While the Android OS was originally developed for ARM processor architecture, there exists an Android port for x86 hardware platform, which is called Android-x86. You can run Android-x86 as a virtual machine (VM) using any x86-based hypervisor or QEMU hardware emulator. In this post, I will show you how to install and run the latest […]
Continue reading…

 

How to record screen activities on Android

Suppose you want to record and replay screen activities on Android device, as part of app demonstration or app review. While there are several Android apps that can record screen natively, they have a number of drawbacks, such as software bugs, device incompatibility, or root requirement etc. If you don’t mind connecting your Android device […]
Continue reading…