I have a lengthy (20K) text file I need to display (the terms and conditions document written by an obviously overpaid lawyer).
What’s the best/simplest way to show this to a user? I loaded the text from a raw resource and added it as the message to an AlertDialog, but the text is cut off about half way. I couldn’t find any obvious limits to the alert dialog text or the TextView it uses.
Are you using a Samsung phone? It seems like Samsung saw fit to add an undocumented limit of 9000 characters to their text fields. According to the answer below, you should be able to work around that by explicitly defining the maximum length with
android:maxLength:How can I debug a seemingly hardware-dependent issue with my Android app without access to the hardware?