Testing elapsed time with Espresso IdlingResource

The original blog is Espresso: Elapsed time.

When do you need to write the test that needs to wait, you need to use IdlingResource. Because Espresso does not wait for you.

Create simple elapsed time application, with one button and one text view. When to clicking the start button, the number will run until click stop button.



Read more  

Android Push Notification using Firebase


Firebase has tools and infrastructures to build the app. It contains a lot of features, in this blog we will take a look at how to setting up Android application for receive notification from Firebase Cloud Messaging.

If you are using Google Cloud Messaging, Google recommended to upgrading FCM, because FCM is a new version of GCM.


First, go to Firebase console, log in your account then click to create a new project, fill your project name and region.


Read more  

Development Workflow using Docker and Docker Compose

Docker Installation

First, we need to install Docker and Docker Compose.

Docker is built on top of Linux container. So, docker can’t run natively on OSX. It’s required a virtual machine for running in OSX. Thanks for Boot2Docker, it’s a Linux virtual machine made for running docker on OSX.

So, there is different between running docker on Linux and OSX.
When running docker on Linux, your machine is both the localhost and the Docker host.

dev work flow

Read more  

First Impressions of ASP.NET and Visual Studio Code on OS X


At Build 2015, Microsoft has released more tools for .NET developers who own Apple Hardware. I for one love to code in .NET but also enjoy coding Ruby On Rails. In this article, I’m trying to get my first ASP.NET project run on OS X Yosemite.

Installing Mono

The first task is to install the latest version of Mono. To do this I am using Homebrew . If you current have Mono version 3 installed, you might need to force uninstall it first.

To check the Mono version, you can run

Read more