是否有长度限制为字符串的Android? [英] Is there a length limit to String in Android?
本文介绍了是否有长度限制为字符串的Android?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我设法阅读网页为一个字符串,但是当我把它打印到LogCat中,使用Log.d(),它总是显示不到什么是真正的页面上。
I managed to read a web page into a string, but when I print it to LogCat, using Log.d(), It always displays less than what's really on that page.
这使我怀疑下面的一个(或多个)是可能的解释:
Which leads me to suspect that one (or more) of the following are possible explanations:
- 在Android上,一个字符串可以成长
动态的,但它是最终
一些硬codeD MAX_LENGTH约束。 - Log.d()是一个截断
字符串输出。
是否有长度限制在Android的一个字符串?
Is there a length limit to a String in Android?
如果不是,有什么事情可以解释截断我的字符串?
If not, what could possible explain truncating my string?
推荐答案
其logcat的,是不是能够显示整个文本,打印的logcat的输出到一个文件,我想你应该可以看到整个字符串
Its the logcat that is not able to display whole text , print the output of the logcat to a file , I think you should be able to see the whole String.
这篇关于是否有长度限制为字符串的Android?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文