Open in app

Sign In

Write

Sign In

Tam H. Doan
Tam H. Doan

317 Followers

Home

About

Published in The Startup

·Feb 18, 2021

Faster SQLite Lookup Using Without Rowid Optimization

TL;DR: A WITHOUT ROWID table can reduce DB size and perform query faster than an ordinary rowid table. A good strategy is to simply not worry about WITHOUT ROWID optimization until near the end of development, then go back and run tests to see if adding it helpul or not. SQLite rowid …

Android

5 min read

Faster SQLite Lookup Using Without Rowid Optimization
Faster SQLite Lookup Using Without Rowid Optimization
Android

5 min read


Published in ProAndroidDev

·Feb 17, 2020

Build.VERSION in Unit Testing

TL;DR: To write JVM unit test for Android build version, you can: Modify the build version field at runtime or Create a wrapper for build version checking. By the arrival of Android Q last year, Google has released 17 Android versions with many different APIs — that need to be…

Unit Testing

5 min read

Build.VERSION in Unit Testing
Build.VERSION in Unit Testing
Unit Testing

5 min read


Published in ProAndroidDev

·Feb 3, 2020

What is the difference between @+id/ and @id/?

TL;DR: The plus sign in “@+id/” tells Android build tools that you are declaring a new resource. And if it does not exist, add to R.java file. But basically, you don’t have to think, just use “@+id/” anywhere you want! In Android, when dealing with XML layouts, we come across…

Android App Development

4 min read

What is the difference between @+id/ and @id/?
What is the difference between @+id/ and @id/?
Android App Development

4 min read


Feb 1, 2020

Searching for code on Stack Overflow makes you a bad developer?

Recently, I often get questions from university students like: “My coding skill is not too bad, but I often have to search on Google for code references — even with basic functions of programming language, don’t know if it’s terrible?” “I usually go to Stack Overflow to find solutions for…

Programming

5 min read

Searching for code on Stack Overflow makes you a bad developer?
Searching for code on Stack Overflow makes you a bad developer?
Programming

5 min read


Published in ProAndroidDev

·Jan 17, 2020

Utils class in Kotlin

TL;DR: You can create utils class by putting methods inside an object, or use package-level functions. If you’re integrating with Java code and need a true static utils method, you can put this method inside an object and annotate it with @JvmStatic. For the newcomers, Kotlin is a cross-platform, statically…

Android

5 min read

Utils class in Kotlin
Utils class in Kotlin
Android

5 min read


Oct 27, 2019

Private IP and Public IP. What is the difference?

Today when preparing for the Computer Network exam, I would like to share some basic things about Private IP and Public IP.

Networking

4 min read

Private IP and Public IP? What is the difference?
Private IP and Public IP? What is the difference?
Networking

4 min read


Sep 28, 2019

Constructor and Inheritance in C#

Today I’m working on a school project of Software Design which need to use OOP, so I decide to write a small article about Constructor and Inheritance in C# When initializing new object of a subclass, constructor of the parent class will be called first, after that constructor of the…

3 min read

Constructor and Inheritance in C#
Constructor and Inheritance in C#

3 min read


Published in ProAndroidDev

·Sep 23, 2019

Split layouts into subfolders in Android Studio

TL;DR: You can manage your resources XML files (layout, drawable,..) better, by grouping them into separate subfolders corresponding to app’s features. Today when optimizing the codebase of my school project, I saw this:

Android

4 min read

Split layout into subfolder in Android Studio
Split layout into subfolder in Android Studio
Android

4 min read


Sep 22, 2019

You are privileged to be a software developer!

If you can read this: You are not starving or lack food supply. You have attended at least one year of primary school education — that’s why you can read and write. Your country is not in a war. You have access to electricity. You have at least one electronic…

Software Developer

4 min read

You are privileged to be a software developer!
You are privileged to be a software developer!
Software Developer

4 min read


Published in AndroidPub

·Aug 4, 2019

Virtual Machine in Android: Everything you need to know

Virtual Machine? A virtual machine is based on computer architectures to provide functionality of a computer. There are 2 main types of Virtual Machine (VM): System virtual machines (full virtualization VMs) provide a substitute for a real machine. Process virtual machines are designed to execute computer programs in a platform-independent environment.

Android Runtime

6 min read

Virtual Machine in Android: Everything you need to know
Virtual Machine in Android: Everything you need to know
Android Runtime

6 min read

Tam H. Doan

Tam H. Doan

317 Followers

Software Engineer, also a Runner and Guitarist.

Following
  • Jose Alcérreca

    Jose Alcérreca

  • @dantech

    @dantech

  • Enrique López-Mañas

    Enrique López-Mañas

  • Chet Haase

    Chet Haase

  • Google Developers

    Google Developers

Help

Status

Writers

Blog

Careers

Privacy

Terms

About

Text to speech