How can I debug a seemingly hardware-dependent issue with my Android app without access to the hardware?

前端 未结 2 1337
误落风尘
误落风尘 2020-12-17 05:33

I have an open-source application on the Android market. It seems to work fine for me (with over 1,000 active installs, I have to presume that it works for most people).

2条回答
  •  無奈伤痛
    2020-12-17 06:14

    The bug turns out to be an undocumented default on (some?) Samsung phones that limits the maxLength attribute of a TextView widget to 9,000 characters. Explicitly adding an "android:maxLength" attribute with a value large enough to contain my largest text length to the TextView widget solved the problem.

    Incidentally, I believe that this same issue is what caused the LogCollector logs from the initial reporters to be truncated.

提交回复
热议问题