Khawar Raza Khawar Raza - 1 year ago 88
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 Source

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.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download