无法从android中的feed url(JSON格式)检索整个数据

时间:2014-07-13 11:41:14

标签: android json

DATA包括TELUGU WORDS ..所以有人可以帮我这个吗?

charArray大小超过我的需要..

HttpURLConnection connection = (HttpURLConnection) blogFeedUrl.openConnection();
connection.connect();
InputStream inputStream = connection.getInputStream();
Reader reader = new InputStreamReader(inputStream);

int contentLength = connection.getContentLength();
char [] charArray = new char[400000];
reader.read(charArray);
String responseData = new String(charArray);
Log.v(TAG, responseData);

0 个答案:

没有答案