Android uploads log information to the server

Source: Internet
Author: User

 

Android applications have a large number of ANR or crash events, except for the applications you have developed, we can find a way to transmit the crashed log information to the server, then it involves how to get the error information of our application. But remember to filter the log information. You only need to retrieve the log information related to your application.

For details, refer to the official documentation here:

Dev guide-> developing-> Tools-> logcat

Dev guide-> debugging-> reading and writing logs

 

The specific implementation of this policy is more important than the implementation of this policy.

For example, you can call the log upload method every time the user logs out of your client. Maybe it's okay to secretly run a service on the background, or write a timer, it's okay to run once every 10 hours, depending on your own needs and requirements. But don't be too dark. It's terrible to let the user discover it.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.