Create new project, do not forget to check the include UI Tests.

Create new project, do not forget to check the include UI Tests.
Screengrab is a part of Fastlane. It can help us to generate screenshot with different languages.
Before you use Screengrab, you need to write UI test with Espresso. Because Screengrab capture screenshot through Espresso.
Create simple application are text view and button with two locales English and Thai.
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.
Android system uses intent for communication. Intent can contain information (component, action, category, data, extras and more). We can send the intent to other application and can get it from other application too.
In this blog we will create the simple application can take a photo and show photo in the image view.
Espresso is Android UI testing support library. It’s small and easy to use. Here what we can do with Expresso.
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.
Setup
First, go to Firebase console, log in your account then click to create a new project, fill your project name and region.
Unit tests in Android has two types.
– The Local unit test does not have relate to Android framework, it does not need device or emulator for run the test.
– Instrumented unit test is a test that relates to Android framework, it needs device or emulator for run the test.