@ CheckResult @ Override public boolean shareTraces ( String fullTraces ) { try { shareTracesInternal ( fullTraces ) ; return true ; } catch ( RuntimeException exception1 ) { // Likely cause is a TransactionTooLargeException on API levels 15+. try { /* * Limit trace size to between 100kB and 400kB, since Unicode characters can be 1-4 bytes each. */ int fullTracesLength = fullTraces . length ( ) ; String truncatedTraces = fullTraces . substring ( Math . max ( 0 , fullTracesLength - 100000 ) , fullTracesLength ) ; shareTracesInternal ( truncatedTraces ) ; return true ; } catch ( RuntimeException exception2 ) { // Likely cause is a TransactionTooLargeException on API levels 15+. return false ; } } }
Uses an intent to share content and given one String with all the information related to the List of traces shares this information with other applications .