Android: logging of published application - android

My application is going to be published in the market. I want to know if is there any standard lib or procedure we can follow for collecting logs of published apps.It should not only collect the crash logs but also have to log apps critical events and send to a predefined backend server. And my source code is obsucated using proguard.
Please suggest an efficient way if anyone has done it.

If you're after free and open source check out the following lib: ACRA.
What is ACRA?
ACRA is a library enabling Android Application to automatically post their crash reports to a GoogleDoc form(now deprecated, but they instead use Acralyzer, which is much better). It is targetted to android applications developers to help them get data from their applications when they crash or behave erroneously.
Here you can find their GitHub page which lists all the features of ACRA if you want to decide if this is for you.

I want to know if is there any standard lib or procedure we can follow for collecting
logs of published apps.It should not only collect the crash logs but also have to log apps
critical events and send to a predefined backend server.
There is an open Source Library called Apache log4j. So by using this Api you can store the all kind of Log into a Text or .Xml file and will be stored in your given path.
You can find the document Log4j
You can download jar from Here
And if you released your application then you can get the Crash log on Google Play Developer Console.
Or else you can use Android Crash report using ACRA to get the Crash log in terms of Excel
Hope this will help you.

You can use Hockey App for retrieving crash reports from users. You can use this link also

Related

log stacktrace from another user with error: Unfortunately, Application has stopped

This is an information question rather than a technical question. I have an app in Google Market. I need to know stracktrace of errors happens in other phones.
I have investigated but I have not seen anything about it. Does anyone know if Google offers some service to look at the errors that your application is giving in the market and thus to be able to reproduce it?
Thanks in advance!
Well google offers one really powerful tool "Firebase" it provides great analytics and crash reporting. In addition to analytics and crashes it provides others utilities like Cloud-Testing, Push Notifications and many others.
Other popular solution is Crashlytics offered by twitter.
Open your app at the developer console and select "disruptions and ANR". Here you can select on of disruptions you have, then you can see error stack trace!
Or you can use appmetrica from yandex. Link to yandex.metrica It's very simple to integrate yandex.metrica to your app and get all data about crashes and statistic (country, city, android version and so on).
Link to console

How to fix the issue if app is crashed in android?

I have developed and put an android application in Google Play store.
Someone inform me that the app is crashing while doing something in application.
As a application developer,
How to find the problem and fix it in android?
Is there any tool or framework to debug the crashed app in android?
There are many sdks out there which can be incorporated in your app.
You can use
1. crashlytics
2. localytics
3. crittercism
Its always a best practice to include some analytics tools in your android application to know where users are spending a lot of their time. I personally like flurry Analytics.
Since you have already uploaded the apk you should check it out in the google play developer console. Even google will provide the crash data, and it is the only resource you have.
As far as fixing the application goes you can do it only by uploading a new apk and asking the users to update the app.
ACRA is a right choice for you to analyze the crash report. Please refer the following link to implement in your project.
https://github.com/ACRA/acra
And also, You can find the crash report in your developer console if the the user has sent the crash report while force closing of the application.
Please ensure that you have not enabled the proguard. if you have enabled proguard, try decode the lines using the following link
http://developer.android.com/tools/help/proguard.html#decoding

ACRA integration and Google Drive

Few days back I successfully integrated ACRA in project to get crash log, but due lots of entries I just deleted entire form but when I was trying to create new one, I am not able to get option to create new legacy form within Tools.
I followed same steps which I followed before but don't know what happen now, why I am not able to get option to create Legacy form within Tools inside spreadsheet.
your suggestion are appreciable.
using Google Drive Forms as the ACRA reporting endpoint will not be supported anymore with the next releases.
I Suggest you to connect BugSense as your back-end for ACRA reports.
that what I set and it works great.
To get your crash report in BugSense you should:
1. Create an account.
2. place this line:
#ReportsCrashes(formUri = "http://www.bugsense.com/api/acra?api_key=key_received_from_bugsense", formKey="")
before declaration of your Application class:
http://blog.bugsense.com/post/8083993853/using-acra-and-bugsense
Looks like it's been axed. Google did not take well to this usage by ACRA anyway, so I suggest you look for an alternative. Once these forms become large enough they lose data too. Write your own custom POST action and link it up with ACRA or use a third party provider.

Building Report Column in Force Close?

How to build an Report column in Force close. Anyone having samples for this method? How can i done like this? Anyone knows this mean reply me.
You get a Report button automatically when your published application crashes. It's a default feature of all applications published on the Android Market.
For developing, I would suggest BugSense. Just grab their library, insert one line of code into your application's entry point and you get error reports with stack traces and cool graphs on the website.
Use ACRA then. Its easy to use and convenient
ACRA is a library enabling Android Application to automatically post their crash reports to a GoogleDoc form. It is targetted to android applications developers to help them get data from their applications when they crash or behave erroneously.

Android Save Log Or Bug Tracking

I have developed application in Android and submit to client for testing feature now at that time error are generated now I want to track that error. I have use android Log.e(string,string) method for logging. Is it save any where in android device I can check that bug. Or have any bug tracking solution for android that give me log of application.
You could use acra for that : http://code.google.com/p/acra/
It's really easy to use and you can include almost anything you want in your crash reports.

Categories

Resources