Anyone knows why Logcat doesn't show full message? I try to print xml response from my site but I only can get some of it..
Because your logcat has reached its max size, see What is the size limit for Logcat and how to change its capacity? Try using this code to write your result into a text file in sdcard, then use DDMS to get it.
public static void appendLog(String text) { File logFile = new File("sdcard/log.txt"); if (!logFile.exists()) { try { logFile.createNewFile(); } catch (IOException e) { e.printStackTrace(); } } try { // BufferedWriter for performance, true to set append to file flag BufferedWriter buf = new BufferedWriter(new FileWriter(logFile, true)); buf.append(text); buf.newLine(); buf.close(); } catch (IOException e) { e.printStackTrace(); } }
2.1m questions
2.1m answers
60 comments
57.0k users