3

I'm making an app for a client, and they are experiencing bugs that no one else can reproduce. They are not close to us, so I can't physically go to them and hook their device up to my laptop.

Is there a way that they can get hold of their logcat files without having to install adb on a machine first, i.e. can they email them straight from their device? I'm not sure how tech-savvy they are, and ideally I don't want to spend too much time telling them how to install adb if I can get the files some other way.

Obviously I'm looking to do it with their permission (and I'm expecting that installing adb is going to be the only way).

Edit: I should add that I'm using Corona SDK, so will not be able to access the logs from directly inside the app. Also, all devices are 4.1+ so the various log collector apps have not worked.

2
  • There are various log-collecting solutions, some of which still work if deployed within your app even after the security lockdown which prevents them from collecting logs for other apps. If you can send them a custom version, you could even set it up with a shareduserid so you could have the log collecting running in another app running as the same userid. Commented Dec 10, 2013 at 16:15
  • Check Google Play for log collector apps if your client's device is prior to Android 4.1 (since that version, the security lockdown mentioned by Chris means these apps are no longer as effective).
    – NigelK
    Commented Dec 10, 2013 at 16:24

1 Answer 1

2

You can redirect the logcat to a file and send it by email using your app.

Check here how to save the logcat into a file.

4
  • Ah ok, I'm using Corona SDK so that won't be an option for me. I was hoping there would be some way to access it through the developer options or something like that. Commented Dec 10, 2013 at 16:35
  • Can you root the device? Commented Dec 10, 2013 at 16:46
  • I'm not sure the client would be willing to, and as I say I'm not in the same location so I can't do it for them. Commented Dec 10, 2013 at 17:12
  • The link was helpful - the accepted answer there did the trick, Thanks. And here's how to open that log file with Gmail from your app stackoverflow.com/a/22367055/2162226
    – Gene Bo
    Commented Dec 14, 2016 at 19:48

Not the answer you're looking for? Browse other questions tagged or ask your own question.