When we talk about Chinese language globally, there are three major categories:
Just try to use Google AutoValue on one of my existing open source project, the steps are basically as below.
Before Apply: A simple UserBean with GitHubService.
UserBean
GitHubService
public interface GitHubService { String BASE_URL =…
My first open source Android library — repository, which uses Repository Pattern to load xml or image contents from remote server, local file cache or memory cache.It took me almost one year (commit history: Nov 22, 2015 — Dec 27, 2016) to:1) develop it as an Android library2) prepare a sample app to…
Last time when I’m using Picasso on one of my previous Android project, I use to think that the library have a bug, where it store corrupted image sometime.I try to compare the final image size that was stored is same as the HTTP response size, to make sure no corrupted image been stored. But…
It shows just one of the operations that might depend on the type of employee.
public Money calculatePay(Employee e) throws InvalidEmployeeType { switch (e.type) { case COMMISSION: return calculateCommissionPay(e); case HOURLY…
I was so stunned when I saw the above UI during one of my project development recently.One button with two actions? Round corner some more. >.<I never see such a button in any mobile app before, it totally violent the Android app design guideline.Anyway, I end up using a custom…
I use to be able to make renew token call successfully in single thread environment.