Monthly Archives: May 2012

Extend SQLiteOpenHelper as a singleton class in Android

Update: 2012-07-27 Today I wanted to keep my DatabaseHelper class unique and public in all my activities. Till now I kept creating and destroying a DatabaseHelper object for each Activity I was bringing in foreground. Thanks to Konstantinos Vaggelakos post … Continue reading

Posted in Android, Databases | Tagged , , , , | 5 Comments

Launch Logcat programmatically in Android

Today I wanted to write logcat output to a file while my application is running. To do so I executed the following code: To execute logcat process we are obliged to add uses permission in AndroidManifest.xml file. WARNING!! 1. This … Continue reading

Posted in Android, Java | Tagged , , , | Leave a comment

Android pre-populated Database

Today I am going to show you how to create an android application which comes with a pre-populated database. The database file has to be stored in assets directory. Every file that is stored in Assets directory is compressed. Prior … Continue reading

Posted in Android, Databases | Tagged , , , , | Leave a comment

Bluetooth adapter device name and MAC address in Android

Today I am going to show you how to get the bluetooth adapter deviceĀ  name (if exists) and MAC address programmatically in Android. Note that this code will not work in emulator as it does not support bluetooth. To avoid … Continue reading

Posted in Android, Java | Tagged , , , , , , , | 1 Comment

Install Jboss 5.1.0.GA to Windows 7

Today I am going to show you how to install Jboss 5.1.0.GA onĀ  a Windows 7 machine. 1. First of all download the binaries from http://www.jboss.org/jbossas/downloads/ 2. The downloaded file is a zip is named jboss-5.1.0.GA-jdk6.zip. As you can see … Continue reading

Posted in Application Server, JBoss | Tagged , , , | 18 Comments

Android Custom Dialogs Part 1: Set value

Posted in Uncategorized | Tagged , | Leave a comment