Profile cover photo
Profile photo
Jiahao Liu
59 followers
59 followers
About
Posts

Post has attachment
Common RxJava mistakes notes
Add a comment...

Post has attachment
Basic Retrofit notes
Some notes about the Retrofit library created by Square: - It has three parts:     - An interface which specified what to call and how to call     - The retrofit instance which specifies the base url and some options     - The service that retrofit creates ...
Basic Retrofit notes
Basic Retrofit notes
jiahaoliuliu.com
Add a comment...

Post has attachment
Kotlin - Static Method at Enum
Enum allows you to create a singleton with all distinct values and the method "valueOf" allow you to loop through all the existing values, which makes it unique and values. On Kotlin, it is used by creating Companion Objects on the enum class, like the foll...
Add a comment...

Post has attachment
Lambda integration on Android
Lambda was introduced on Java 8 and it simplifies the code by removing some boilerplates. To use it. Do the follow: 1. Make sure you have Java 8 installed 2. Add the following code to your build.gradle file of the app, under the section of  "android" androi...
Add a comment...

Post has attachment
Robolectric - Figure out the error trace when the tests gets stack
Running robolectric helps to do the unit testing on Android faster, but there were several cases when it runs and it seems to get stuck on some point. To know what is happening, do the follow: 1. First try, running it on you terminal 1.1 Copy the execution ...
Add a comment...

Post has attachment
Google Maps - Get the center point
Now a day we have apps like Uber or Careem which has a fix point to the center of the map. To get the latitude and longitude of the center of the map, do the follow: // Get the center of the map and update it as the camera changes mGoogleMap.setOnCameraChan...
Add a comment...

Post has attachment
Android Alpha Table
In Android the colour could be set using the typical HEX colours, where the first two characters are the Red colour, the next two are the Green colour and the next two are the Blue colour (RGB). Beside this, optionally the user can specify the alpha value, ...
Android Alpha Table
Android Alpha Table
jiahaoliuliu.com
Add a comment...

Post has attachment
Enabling logs on HuaWei Devices
It seems that HuaWei devices have disabled the logs by default. To see the logs, you got to do the follow: 1. Open dial app 2. Enter the follow number ##2846579## There is not need to call. A hidden menu will appear as ProjectMenu 3. Click on Background...
Add a comment...

Post has attachment
Android Public Key Pinning - DroidCon Dubai 2016
Add a comment...

Post has attachment
Public Key Pinning in Android
Public Key Pinning - Jiahaoliuliu - DroidCon2016 by JiahaoLiuLiu
Add a comment...
Wait while more posts are being loaded