Get Logs on Device - android

I need to print logs ( I have added in my application) on real devices. I am using Alogcat
but it is not showing the logs that i have added in my application. Does any one have any idea how to get logs of application. Other than crash report I need to get the logs of specific code portion to get detail info, tried many application but unable to get logs.

Try to implement DeployeeGate sdk in your project and get log report.
https://deploygate.com/docs/sdk
Download deploygate apk in your mobile phone .and install your apk through deploygate apk.

Related

How to enable logging option in android and ios devices using xamarin.forms app

In my cross-platform Xamarin Forms application I would like to have a Logging option. If it's enabled, it should generate a log file stating the errors or in which step the app is crashing (if any of these takes places while the app is running) and I should be able to pull and check this generated log file.
When I googled for this I found on many sites that we need to debug using usb and check it on android adb, but once the application goes live and user downloads it in their phone if app crashes any time then the user should be able to turn on the logging button and once the process is run it generates a log file. The user can then send the file to the developer to check what exactly is happening in the system.
How do I implement this feature in Xamarin Forms for both iPhone and Android?
What about analytics service like hokeyapp or appcenter.ms
They do what you and more.
But if you want to implements this by yourself is still possible but you need to write specific code on both plateform to handle exception and write them on files with stack traces

No report option when getting "Unfortunately 'app name' has stopped" [duplicate]

I purposely make my own application crash. I get the following dialog.
However, I wish to get the following crash dialog with report button.
May I know how I can do so? I had signed my application. (But I transfer the APK locally to my phone, not through Android market). I still can't get the Report button.
As far as I know, the Report button only shows when the app is installed via the Market (i.e. is signed and not in debug mode nor with a debug key). This data is all shown in LogCat if you are USB debugging.
Edit: Also, you can catch this information and file a report yourself if you want, using this method.
Use the acra library in your app. This basically "is a library enabling Android Application to automatically post their crash reports to a GoogleDoc form". You can modify its use to pop up a dialog like the above, and ask the user to report the issue, with an additional user-typed message, even.
Your phone may running a customized rom like CM.
If you want to report log when your app get FC,one way is catch exceptions and mail them.

Get log of Application Crash & ANR?

I found a section Crash & ANR in my Google play account
This list the crashes occurred but this is when user report the crash.
I have well managed application but some times it is being crashed as reported by one user.
What i want to get a log from device for the application crashes and save and send automatically.
Is there any Process to get the details of all or Previous Crash from android systems on Next Application Start up?
You can trap and log it manually, but this is usually solved by integrating crash handling and reporting services like TestFlight, New Relic, and other similar services. There are some self-hosted, open source tools like android-remote-stacktrace too.
The libraries are set to capture any unhandled exception your application, log the exception to a remote server so you can view it without requiring the user to send it to you manually, and will then allow the original exception to be rethrown as normal.
Android Handling the Unexpected also covers the idea in detail with some sample code if you really want to do it yourself. That post also lists several more example external services.

Getting log info from a downloaded app

I have an android app uploaded in google marketplace.
I have been reported an error from a user, which happens only in a specific device.
It is not a crash, the application just doesn't work exactly as expected. I have tried to reproduce the error using the emulator with the exact android version he's using and it works fine.
I am sure I could determine the problem If I'd have access to the Logcat entries.
I suppose the answer is negative, but it is any way the user can get these entries and send them to me? ( of course I cannot tell him to install eclipse or adb to gather the log entries ).
What is the best practice to be able to get error information from your app, once it is uploaded to the market? ( I don't mean crashes where an error report can be sent by android, just something that it is not working as expected ).
The application aLogcat can do the trick.
https://play.google.com/store/apps/details?id=org.jtb.alogcat&feature=nav_result#?t=W251bGwsMSwxLDMsIm9yZy5qdGIuYWxvZ2NhdCJd
And I tested it on my 4.1.1 device.
(I don't know how to post this as a comment instead of answer)
there are several apps on android market that allows to get logs and send them by email or upload them to dropbox... I used this one: https://play.google.com/store/apps/details?id=com.xtralogic.android.logcollector

How to get crash dialog with report button

I purposely make my own application crash. I get the following dialog.
However, I wish to get the following crash dialog with report button.
May I know how I can do so? I had signed my application. (But I transfer the APK locally to my phone, not through Android market). I still can't get the Report button.
As far as I know, the Report button only shows when the app is installed via the Market (i.e. is signed and not in debug mode nor with a debug key). This data is all shown in LogCat if you are USB debugging.
Edit: Also, you can catch this information and file a report yourself if you want, using this method.
Use the acra library in your app. This basically "is a library enabling Android Application to automatically post their crash reports to a GoogleDoc form". You can modify its use to pop up a dialog like the above, and ask the user to report the issue, with an additional user-typed message, even.
Your phone may running a customized rom like CM.
If you want to report log when your app get FC,one way is catch exceptions and mail them.

Categories

Resources