我有一个文本视图,里面有一个相当长的文档(约1800行,70k个字符)。为了提供格式,文档应用了许多跨距。这一切都很有效。
但是,在编辑文本时,我间歇性地出现以下错误:
E/JavaBinder: !!! FAILED BINDER TRANSACTION !!! (parcel size = 119652)
E/AccessibilityManager: Error during sending EventType: TYPE_VIEW_TEXT_SELECTION_CHANGED; EventTime: 67446779; PackageName: <package name>; MovementGranularity: 0; Action: 0; ContentChangeTypes: []; WindowChangeTypes: [] [ ClassName: android.widget.EditText; Text: [
<ENTIRE CONTENTS OF DOCUMENT>
]; ContentDescription: null; ItemCount: 78607; CurrentItemIndex: -1; Enabled: true; Password: false; Checked: false; FullScreen: false; Scrollable: false; BeforeText: null; FromIndex: 78585; ToIndex: 78585; ScrollX: 0; ScrollY: 0; MaxScrollX: 0; MaxScrollY: 0; ScrollDeltaX: -1; ScrollDeltaY: -1; AddedCount: -1; RemovedCount: -1; ParcelableData: null ]; recordCount: 0
android.os.DeadObjectException: Transaction failed on small parcel; remote process probably died
at android.os.BinderProxy.transactNative(Native Method)
at android.os.BinderProxy.transact(BinderProxy.java:540)
at android.view.accessibility.IAccessibilityManager$Stub$Proxy.sendAccessibilityEvent(IAccessibilityManager.java:580)
E/AccessibilityManager: at android.view.accessibility.AccessibilityManager.sendAccessibilityEvent(AccessibilityManager.java:606)
at android.view.ViewRootImpl.requestSendAccessibilityEvent(ViewRootImpl.java:8618)
at android.view.ViewGroup.requestSendAccessibilityEvent(ViewGroup.java:1094)
at android.view.ViewGroup.requestSendAccessibilityEvent(ViewGroup.java:1094)
at android.view.ViewGroup.requestSendAccessibilityEvent(ViewGroup.java:1094)
at android.view.ViewGroup.requestSendAccessibilityEvent(ViewGroup.java:1094)
at android.view.ViewGroup.requestSendAccessibilityEvent(ViewGroup.java:1094)
at android.view.ViewGroup.requestSendAccessibilityEvent(ViewGroup.java:1094)
at android.view.ViewGroup.requestSendAccessibilityEvent(ViewGroup.java:1094)
at android.view.ViewGroup.requestSendAccessibilityEvent(ViewGroup.java:1094)
at android.view.ViewGroup.requestSendAccessibilityEvent(ViewGroup.java:1094)
at android.view.View.requestParentSendAccessibilityEvent(View.java:8333)
at android.view.View.sendAccessibilityEventUncheckedInternal(View.java:8326)
at android.view.View.sendAccessibilityEventUnchecked(View.java:8297)
at android.widget.TextView.sendAccessibilityEventUnchecked(TextView.java:12217)
at android.view.View.sendAccessibilityEventInternal(View.java:8274)
at android.widget.TextView.sendAccessibilityEventInternal(TextView.java:12206)
at android.view.View.sendAccessibilityEvent(View.java:8238)
at android.widget.TextView.onSelectionChanged(TextView.java:10488)
这有时也会导致应用程序崩溃。
据我所知,这是由于可访问性服务代码试图作为意图的一部分发送大量数据造成的。
有人能告诉我怎样才能阻止这一切。我知道我可以阻止启动可访问性代码(即重写textview中的方法),但我更希望不要潜在地干扰依赖可访问性的用户。
暂无答案!
目前还没有任何答案,快来回答吧!