About Android Studio Logcat display, do not display the log data you need to print

Source: Internet
Author: User

Logcat display is not fully reference to the following code, simple and effective

1 if(ResponseInfo.result.length () > 4000) {2LOG.V (TAG, "sb.length =" +responseInfo.result.length ());3                     intChunkcount = ResponseInfo.result.length ()/4000;//Integer Division4                      for(inti = 0; I <= Chunkcount; i++) {5                         intmax = 4000 * (i + 1);6                         if(Max >=responseInfo.result.length ()) {7LOG.V (TAG, "chunk" + i + "of" + Chunkcount + ":" + responseInfo.result.substring (4000 *i));8}Else {9LOG.V (TAG, "chunk" + i + "of" + Chunkcount + ":" + responseInfo.result.substring (4000 *I, Max));Ten                         } One                     } A}Else { - log.v (TAG, responseInfo.result.toString ()); -}

If your project contains Libra projects, you will need to manually select to no filters to see all the log information for the currently running project.

About Android Studio Logcat display, do not display the log data you need to print

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.