Posts

Dialogs

Image
When showing a Dialog to user, make sure the title, content, and buttons are displayed correctly. There are tips for creating Dialogs on developer.android.com.

Security with HTTPS and SSL

Image
After Let's Encrypt , the next to come is Hongkong Post Root CA . For users in HK, the impact is even larger because it is not supported by the following OS. It is affecting web browsers and app. Android 10 and below macOS iOS, iPadOS, watchOS, and tvOS Starting from Android 7.0 (API 24), developers could add a network security configuration file to  configure a custom CA .  Developer could also learn the best practices about  Security with HTTPS and SSL  from developer.android.com.

Barcode Scanning

Image
Some developer may be still using ZXing  to add barcode scanning function in their app. However, ML Kit on Android also provide barcode scanning function. And more important is, it is powered by Machine Learning. Making barcode scanning faster.

Notification

Image
Developer should always use NotificationCompat.Builder  to build a notification. Otherwise, the Notification may not be displayed property.

"Next" or "Skip" ?

Image
Think before you place any button in the UI. "Next" and "Skip" should behave differently.  

Display Cutouts

Image
Android support  Display Cutouts  since Android 9 (API 28). However, still many applications didn't consider Display Cutouts in their design, causing view components covered by the Status Bar. Display Cutouts used to be in the middle of the top edge. But there are more and more devices having the cutouts at the top corners. Developers should pay more attention when testing.

Quantity Strings

Image
Notification, Notifications, or Notification(s)? In Android, Quantity Strings could help you to display the correct singular and plural.  Why not let the system to help you? And why you are still displaying something like notification(s)?