2

how to enable logger in specific screen of release-build in android?

I Realeased an APK in playstore which is obfuscated apk and Logger are disabled , When customers find some issues in that apk in specific screen. So i want to Enable Logger in that specific screen of release-build. Is it possible, If Yes how can i acheive..??

Updated Question:

Apk release build - Obfuscated by DexGuard

Thanks

kgsharathkumar
  • 1,369
  • 1
  • 19
  • 36
  • you can use Crashlytics logs: http://try.crashlytics.com/ Crashlytics will show all the logs when an fetal or non fetal exception is occurred in crashlytics dashboard – Sam Nov 24 '16 at 08:54

2 Answers2

2

You could use Log.i. Information logs are always showed to users. See more.
If you used ProGuard to remove all logs from your application you should remove clearing of public static int i(...); from rules.

If it wasn't enough flexibility try Timber And setup ReleaseTree for your release versions

Community
  • 1
  • 1
Beloo
  • 9,723
  • 7
  • 40
  • 71
1

It is not possible to enable logger in release builds. Instead of that you can use this lib to print log on your screen.

Another solution you can find an example of it here. It's really simple, just add a class OnScreenLog to your project

Najeeb Idrees
  • 453
  • 6
  • 15
  • its nice.., but i dont want to print on screen, i need data in txt file format to identify issue of that application. – kgsharathkumar Nov 24 '16 at 09:05
  • So just write data on file. First create a text file on public directory and then append data on that file. You can ask client to send you file by giving him full path of file. – Najeeb Idrees Nov 24 '16 at 09:07