You can make use of an Shared Prefrence to maintain the number the times the app has been launched. So now if the app has been launched for the first time you can execute your code, if not you can just skip it.Here is a perfect demo for it.
http://marakana.com/forums/android/examples/63.html