Tag Archives: StringBuilder

Why you should use StringBuilder instead of StringBuffer in Android for better performance?

By | January 1, 2018

StringBuffer StringBuffer is mutable means one can change the value of the object . The object created through StringBuffer is stored in the heap. StringBuffer has the same methods as the StringBuilder , but each method in StringBuffer is synchronized that is StringBuffer is thread safe.Due to this it does not allow two threads to… Read More »

How to Customize “Force Close” Dialog in Android?

By | March 13, 2013

An interesting post.. Everytime you write an app, it may or may not crash and we often see the “Force Close” Dialog. But what if we can customize the “Force Close” Dialog itself. This is done using “UncaughtExceptionHandler” class. This post explains this. here I am knowingly crashing the application like this int y =… Read More »

How to copy a file to another saved in SDCARD in Android?

By | May 9, 2013

Hello all… This tutorial explains how to copy a file contents to another in Android. The file to copy is saved in SDCARD, however you can change the path to save it in your application sandbox. if you want to save it in your sandbox, change the path to /data/data/your_packagename/your_file.extension Now we will see the… Read More »