Tien TanAndroid Testing CodelabIn this codelab, you’ll learn how to get started with testing for Android. We’ll look at the testing integration in Android Studio, unit…Apr 24, 20181Apr 24, 20181
Tien TanWhat you need to know about Android app memory leaksBuilding an Android app is easy, but making a super-high-quality, memory-efficient Android app is not. Early on as an Android developer, I…Apr 24, 2018Apr 24, 2018
Tien TanUniversal way to write to external SD card on AndroidIn addition to all other nice answers, I could add a bit more to this question so it can give wider coverage for readers. In my answer…Mar 29, 2018Mar 29, 2018
Tien TanSD Card on Android 5.0 and LaterAndroid version 4.4 (KitKat) drastically limits how user installed apps can access the external SD card. You can read more about the…Mar 29, 2018Mar 29, 2018
Tien TanHow to Install Apache Tomcat 9 (on Windows, Mac OS X, Ubuntu) and Get Started with Java Servlet…This practical can be completed in a 3-hour session.Feb 24, 20181Feb 24, 20181
Tien TanIs Java “pass-by-reference” or “pass-by-value”?I thought I’d contribute this answer to add more details from the Specifications.Oct 31, 2017Oct 31, 2017
Tien TanAndroid : Passing data between main thread and worker threads.There may be situations where you want to spawn a thread from your Activity or Service to handle long running (and may be blocking) tasks…Oct 27, 2017Oct 27, 2017
Tien TannotifyDataSetChanged exampleI know this is a late response but I was facing a similar issue and I managed to solve it by using notifyDataSetChanged() in the right…Oct 6, 2017Oct 6, 2017
Tien TanIs it wrong to use Deprecated methods or classes in Java?From the official Sun glossary:Oct 5, 2017Oct 5, 2017
Tien TanAndroid target sdk vs deprecated methodsHowever, if you have compileSDK higher eg 23, then Android Studio will tell you, the code above is deprecated (and moreover removed from…Oct 5, 2017Oct 5, 2017