Khawar Raza Khawar Raza - 5 months ago 10
Android Question

Android Removal of Log.d and e.printStackTrace instructions before uploading to market

My question is simple. Should I remove Log.d/e/i/v and e.printStackTrace instructions before uploading my app to Android market?

Answer

If possible yes, Its a good application development practice, But proper handle of e.printStack is necessary to prevent your application force close from un necessary exception. For this you can use Log.e(TAG, e.toString()); in all catch block. This will be keep some necessary information about your application behavior and you can also easily get information about any force-close or exception for your application.

Comments