Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how can I send log information from my Android app to my server?

I'm developing an Android app that is currently in the Play Store. I've been getting reports of a crash on certain devices that I can't reproduce, and the Play Store's built in crash diagnostics don't contain enough information. What I really need is the Logcat information from these devices, but it seems that Android 4.1 and above don't allow the use of those "Log Collector" apps that used to be so popular for this purpose due to security concerns. Is there a library that I can add to my app that will allow it to log to a remote server on demand? I know enough about this crash that I could put a call to some mythical sendLogcatNow() function in the appropriate spot in the code, if I had such a function. Since the information I seek is not actually part of the crash (the crash occurs later), normal crash reporting tools such as Crashlytics don't seem like they will do what I need, but perhaps they have this feature and it's just not prominent in the documentation. Thanks!

like image 457
rmeador Avatar asked Aug 07 '14 15:08

rmeador


People also ask

How do you access mobile app logs?

Viewing logs An “Android monitor” bar is located in the lower part of IDE, there you can find the “logcat” tab, in which you can start tracking logs.

How do I get ADB logs from my Android?

Navigate to device settings and enable Developer Options (see section for ADB logs) Navigate to Developer Options and tap on Take/Submit Bug Report. Select Full Report when prompted to get the full device info along with the logs. The bug report takes up to 2 minutes to be generated.


1 Answers

There are few version for crash reporting..

  1. Hockey App
  2. Acra
  3. BugSense
  4. Android Remote stack trace
  5. Since your app can always read logs for it's own process, you can also implement something of your own.

Out of all these, I personally prefer Acra. as it is most efficient and give many options to app developers.

like image 147
AnkitSomani Avatar answered Oct 01 '22 09:10

AnkitSomani