在EditText上多次点击时出错

时间:2015-01-22 10:02:01

标签: android

在MainActivity中,我有两个文本视图(用户名和密码) 我发现了一个奇怪的错误,在我继续点击文本字段表格之后崩溃我的应用程序。

请任何帮助将不胜感激。

错误:

01-22 11:51:53.523  29093-29093/com.myapplication
E/InputEventReceiver﹕ Exception dispatching input event.
01-22 11:51:53.523  29093-29093/ com.myapplication 
E/MessageQueue-JNI﹕ Exception in MessageQueue callback: handleReceiveCallback
01-22 11:51:53.543  29093-29093/ com.myapplication 
E/MessageQueue-JNI﹕ android.view.InflateException: Binary XML file line #17: Error inflating class <unknown>
            at android.view.LayoutInflater.createView(LayoutInflater.java:626)
            at com.android.internal.policy.impl.PhoneLayoutInflater.onCreateView(PhoneLayoutInflater.java:56)
            at android.view.LayoutInflater.onCreateView(LayoutInflater.java:675)
            at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:700)
            at android.view.LayoutInflater.inflate(LayoutInflater.java:470)
            at android.view.LayoutInflater.inflate(LayoutInflater.java:398)
            at android.view.LayoutInflater.inflate(LayoutInflater.java:354)
            at android.widget.Editor$ActionPopupWindow.initContentView(Editor.java:3513)
            at android.widget.Editor$PinnedPopupWindow.<init>(Editor.java:2693)
            at android.widget.Editor$ActionPopupWindow.<init>(Editor.java:3437)
            at android.widget.Editor$ActionPopupWindow.<init>(Editor.java:3437)
            at android.widget.Editor$HandleView.showActionPopupWindow(Editor.java:4505)
            at android.widget.Editor$InsertionHandleView.showWithActionPopup(Editor.java:4935)
            at android.widget.Editor$InsertionHandleView.onTouchEvent(Editor.java:4987)
            at android.view.View.dispatchTouchEvent(View.java:8160)
            at android.view.View.dispatchPointerEvent(View.java:8368)
            at android.view.ViewRootImpl$ViewPostImeInputStage.processPointerEvent(ViewRootImpl.java:4788)
            at android.view.ViewRootImpl$ViewPostImeInputStage.onProcess(ViewRootImpl.java:4649)
            at android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:4207)
            at android.view.ViewRootImpl$InputStage.onDeliverToNext(ViewRootImpl.java:4261)
            at android.view.ViewRootImpl$InputStage.forward(ViewRootImpl.java:4230)
            at android.view.ViewRootImpl$AsyncInputStage.forward(ViewRootImpl.java:4341)
            at android.view.ViewRootImpl$InputStage.apply(ViewRootImpl.java:4238)
            at android.view.ViewRootImpl$AsyncInputStage.apply(ViewRootImpl.java:4398)
            at android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:4207)
            at android.view.ViewRootImpl$InputStage.onDeliverToNext(ViewRootImpl.java:4261)
            at android.view.ViewRootImpl$InputStage.forward(ViewRootImpl.java:4230)
            at android.view.ViewRootImpl$InputStage.apply(ViewRootImpl.java:4238)
            at android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:4207)
            at android.view.ViewRootImpl.deliverInputEvent(ViewRootImpl.java:6584)
            at android.view.ViewRootImpl.doProcessInputEvents(ViewRootImpl.java:6501)
            at android.view.ViewRootImpl.enqueueInputEvent(ViewRootImpl.java:6472)
            at android.view.ViewRootImpl.enqueueInputEvent(ViewRootImpl.java:6437)
            at android.view.ViewRootImpl$WindowInputEventReceiver.onInputEvent(ViewRootImpl.java:6664)
            at android.view.InputEventReceiver.dispatchInputEvent(InputEventReceiver.java:185)
            at android.os.MessageQueue.nativePollOnce(Native Method)
            at android.os.MessageQueue.next(MessageQueue.java:138)
            at android.os.Looper.loop(Looper.java:131)
            at android.app.ActivityThread.main(ActivityThread.java:5653)
            at java.lang.reflect.Method.invokeNative(Native Method)
            at java.lang.reflect.Method.invoke(Method.java:515)
            at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1291)
            at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1107)
            at dalvik.system.NativeStart.main(Native Method)
     Caused by: java.lang.reflect.InvocationTargetException
            at java.lang.reflect.Constructor.constructNative(Native Method)
            at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
            at android.view.LayoutInflater.createView(LayoutInflater.java:600)
            at com.android.internal.policy.impl.PhoneLayoutInflater.onCreateView(PhoneLayoutInflater.java:56)
            at android.view.LayoutInflater.onCreateView(LayoutInflater.java:675)
            at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:700)
            at android.view.LayoutInflater.inflate(LayoutInflater.java:470)
            at android.view.LayoutInflater.inflate(LayoutInflater.java:398)
            at android.view.LayoutInflater.inflate(LayoutInflater.java:354)
            at android.widget.Editor$ActionPopupWindow.initContentView(Editor.java:3513)
            at android.widget.Editor$PinnedPopupWindow.<init>(Editor.java:2693)
            at android.widget.Editor$ActionPopupWindow.<init>(Editor.java:3437)
            at android.widget.Editor$ActionPopupWindow.<init>(Editor.java:3437)
            at android.widget.Editor$HandleView.showActionPopupWindow(Editor.java:4505)
            at android.widget.Editor$InsertionHandleView.showWithActionPopup(Editor.java:4935)
            at android.widget.Editor$InsertionHandleView.onTouchEvent(Editor.java:4987)
            at android.view.View.dispatchTouchEvent(View.java:8160)
            at android.view.View.dispatchPointerEvent(View.java:8368)
            at android.view.ViewRootImpl$ViewPostImeInputStage.processPointerEvent(ViewRootImpl.java:4788)
            at android.view.ViewRootImpl$ViewPostImeInputStage.onProcess(ViewRootImpl.java:4649)
            at android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:4207)
            at android.view.ViewRootImpl$InputStage.onDeliverToNext(ViewRootImpl.java:4261)
            at android.view.ViewRootImpl$InputStage.forward(ViewRootImpl.java:4230)
            at android.view.ViewRootImpl$AsyncInputStage.forward(ViewRootImpl.java:4341)
            at android.view.ViewRootImpl$InputStage.apply(ViewRootImpl.java:4238)
            at android.view.ViewRootImpl$AsyncInputStage.apply(ViewRootImpl.java:4398)
            at android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:4207)
            at android.view.ViewRootImpl$InputStage.onDeliverToNext(ViewRootImpl.java:4261)
            at android.view.ViewRootImpl$InputStage.forward(ViewRootImpl.java:4230)
            at android.view.ViewRootImpl$InputStage.apply(ViewRootImpl.java:4238)
            at android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:4207)
            at android.view.ViewRootImpl.deliverInputEvent(ViewRootImpl.java:6584)
            at android.view.ViewRootImpl.doProcessInputEvents(ViewRootImpl.java:6501)
            at android.view.ViewRootImpl.enqueueInputEvent(ViewRootImpl.java:6472)
            at android.view.ViewRootImpl.enqueueInputEvent(ViewRootImpl.java:6437)
            at android.view.ViewRootImpl$WindowInputEventReceiver.onInputEvent(ViewRootImpl.java:6664)
            at android.view.InputEventReceiver.dispatchInputEvent(InputEventReceiver.java:185)
            at android.os.MessageQueue.nativePollOnce(Native Method)
            at android.os.MessageQueue.next(MessageQueue.java:138)
            at android.os.Looper.loop(Looper.java:131)
            at android.app.ActivityThread.main(ActivityThread.java:5653)
            at java.lang.reflect.Method.invokeNative(Native Method)
            at java.lang.reflect.Method.invoke(Method.java:515)
            at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1291)
            at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1107)
            at dalvik.system.NativeStart.main(Native Method)
     Caused by: java.lang.ArrayIndexOutOfBoundsException: length=15; index=665
            at android.content.res.StringBlock.get(StringBlock.java:65)
            at android.content.res.XmlBlock$Parser.getPooledString(XmlBlock.java:459)
            at android.content.res.TypedArray.loadStringValueAt(TypedArray.java:721)
            at android.content.res.TypedArray.getString(TypedArray.java:125)
            at android.widget.TextView.<init>(TextView.java:1522)
            at android.widget.TextView.<init>(TextView.java:921)
            at java.lang.reflect.Constructor.constructNative(Native Method)
            at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
            at android.view.LayoutInflater.createView(LayoutInflater.java:600)
            at com.android.internal.policy.impl.PhoneLayoutInflater.onCreateView(PhoneLayoutInflater.java:56)
            at android.view.LayoutInflater.onCreateView(LayoutInflater.java:675)
            at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:700)
            at android.view.LayoutInflater.inflate(LayoutInflater.java:470)
            at android.view.LayoutInflater.inflate(LayoutInflater.java:398)
            at android.view.LayoutInflater.inflate(LayoutInflater.java:354)
            at android.widget.Editor$ActionPopupWindow.initContentView(Editor.java:3513)
            at android.widget.Editor$PinnedPopupWindow.<init>(Editor.java:2693)
            at android.widget.Editor$ActionPopupWindow.<init>(Editor.java:3437)
            at android.widget.Editor$ActionPopupWindow.<init>(Editor.java:3437)
            at android.widget.Editor$HandleView.showActionPopupWindow(Editor.java:4505)
            at android.widget.Editor$InsertionHandleView.showWithActionPopup(Editor.java:4935)
            at android.widget.Editor$InsertionHandleView.onTouchEvent(Editor.java:4987)
            at android.view.View.dispatchTouchEvent(View.java:8160)
            at android.view.View.dispatchPointerEvent(View.java:8368)
            at android.view.ViewRootImpl$ViewPostImeInputStage.processPointerEvent(ViewRootImpl.java:4788)
            at android.view.ViewRootImpl$ViewPostImeInputStage.onProcess(ViewRootImpl.java:4649)
            at android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:4207)
            at android.view.ViewRootImpl$InputStage.onDeliverToNext(ViewRootImpl.java:4261)
            at android.view.ViewRootImpl$InputStage.forward(ViewRootImpl.java:4230)
            at android.view.ViewRootImpl$AsyncInputStage.forward(ViewRootImpl.java:4341)
            at android.view.ViewRootImpl$InputStage.apply(ViewRootImpl.java:4238)
            at android.view.ViewRootImpl$AsyncInputStage.apply(ViewRootImpl.java:4398)
            at android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:4207)
            at android.view.ViewRootImpl$InputStage.onDeliverToNext(ViewRootImpl.java:4261)
            at android.view.ViewRootImpl$InputStage.forward(ViewRootImpl.java:4230)
            at android.view.ViewRootImpl$InputStage.apply(ViewRootImpl.java:4238)
            at android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:4207)
            at android.view.ViewRootImpl.deliverInputEvent(ViewRootImpl.java:6584)
            at android.view.ViewRootImpl.doProcessInputEvents(ViewRootImpl.java:6501)
            at android.view.ViewRootImpl.enqueueInputEvent(ViewRootImpl.java:6472)
            at android.view.ViewRootImpl.enqueueInputEvent(ViewRootImpl.java:6437)
            at android.view.ViewRootImpl$WindowInputEventReceiver.onInputEvent(ViewRootImpl.java:6664)
            at android.view.InputEventReceiver.dispatchInputEvent(InputEventReceiver.java:185)
            at android.os.MessageQueue.nativePollOnce(Native Method)
            at android.os.MessageQueue.next(MessageQueue.java:138)
            at android.os.Looper.loop(Looper.java:131)
            at android.app.ActivityThread.main(ActivityThread.java:5653)
            at java.lang.reflect.Method.invokeNative(Native Method)
            at java.lang.reflect.Method.invoke(Method.java:515)
            at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1291)
            at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1107)
            at dalvik.system.NativeStart.main(Native Method)
01-22 11:51:53.543  29093-29093/ com.myapplication 
D/AndroidRuntime﹕ Shutting down VM
01-22 11:51:53.543  29093-29093/ com.myapplication 
W/dalvikvm﹕ threadid=1: thread exiting with uncaught exception (group=0x417f2da0)
01-22 11:51:53.543  29093-29093/ com.myapplication 
E/AndroidRuntime﹕ FATAL EXCEPTION: main
    Process: com.myapplication, PID: 29093
    android.view.InflateException: Binary XML file line #17: Error inflating class <unknown>
            at android.view.LayoutInflater.createView(LayoutInflater.java:626)
            at com.android.internal.policy.impl.PhoneLayoutInflater.onCreateView(PhoneLayoutInflater.java:56)
            at android.view.LayoutInflater.onCreateView(LayoutInflater.java:675)
            at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:700)
            at android.view.LayoutInflater.inflate(LayoutInflater.java:470)
            at android.view.LayoutInflater.inflate(LayoutInflater.java:398)
            at android.view.LayoutInflater.inflate(LayoutInflater.java:354)
            at android.widget.Editor$ActionPopupWindow.initContentView(Editor.java:3513)
            at android.widget.Editor$PinnedPopupWindow.<init>(Editor.java:2693)
            at android.widget.Editor$ActionPopupWindow.<init>(Editor.java:3437)
            at android.widget.Editor$ActionPopupWindow.<init>(Editor.java:3437)
            at android.widget.Editor$HandleView.showActionPopupWindow(Editor.java:4505)
            at android.widget.Editor$InsertionHandleView.showWithActionPopup(Editor.java:4935)
            at android.widget.Editor$InsertionHandleView.onTouchEvent(Editor.java:4987)
            at android.view.View.dispatchTouchEvent(View.java:8160)
            at android.view.View.dispatchPointerEvent(View.java:8368)
            at android.view.ViewRootImpl$ViewPostImeInputStage.processPointerEvent(ViewRootImpl.java:4788)
            at android.view.ViewRootImpl$ViewPostImeInputStage.onProcess(ViewRootImpl.java:4649)
            at android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:4207)
            at android.view.ViewRootImpl$InputStage.onDeliverToNext(ViewRootImpl.java:4261)
            at android.view.ViewRootImpl$InputStage.forward(ViewRootImpl.java:4230)
            at android.view.ViewRootImpl$AsyncInputStage.forward(ViewRootImpl.java:4341)
            at android.view.ViewRootImpl$InputStage.apply(ViewRootImpl.java:4238)
            at android.view.ViewRootImpl$AsyncInputStage.apply(ViewRootImpl.java:4398)
            at android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:4207)
            at android.view.ViewRootImpl$InputStage.onDeliverToNext(ViewRootImpl.java:4261)
            at android.view.ViewRootImpl$InputStage.forward(ViewRootImpl.java:4230)
            at android.view.ViewRootImpl$InputStage.apply(ViewRootImpl.java:4238)
            at android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:4207)
            at android.view.ViewRootImpl.deliverInputEvent(ViewRootImpl.java:6584)
            at android.view.ViewRootImpl.doProcessInputEvents(ViewRootImpl.java:6501)
            at android.view.ViewRootImpl.enqueueInputEvent(ViewRootImpl.java:6472)
            at android.view.ViewRootImpl.enqueueInputEvent(ViewRootImpl.java:6437)
            at android.view.ViewRootImpl$WindowInputEventReceiver.onInputEvent(ViewRootImpl.java:6664)
            at android.view.InputEventReceiver.dispatchInputEvent(InputEventReceiver.java:185)
            at android.os.MessageQueue.nativePollOnce(Native Method)
            at android.os.MessageQueue.next(MessageQueue.java:138)
            at android.os.Looper.loop(Looper.java:131)
            at android.app.ActivityThread.main(ActivityThread.java:5653)
            at java.lang.reflect.Method.invokeNative(Native Method)
            at java.lang.reflect.Method.invoke(Method.java:515)
            at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1291)
            at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1107)
            at dalvik.system.NativeStart.main(Native Method)
     Caused by: java.lang.reflect.InvocationTargetException
            at java.lang.reflect.Constructor.constructNative(Native Method)
            at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
            at android.view.LayoutInflater.createView(LayoutInflater.java:600)
            at com.android.internal.policy.impl.PhoneLayoutInflater.onCreateView(PhoneLayoutInflater.java:56)
            at android.view.LayoutInflater.onCreateView(LayoutInflater.java:675)
            at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:700)
            at android.view.LayoutInflater.inflate(LayoutInflater.java:470)
            at android.view.LayoutInflater.inflate(LayoutInflater.java:398)
            at android.view.LayoutInflater.inflate(LayoutInflater.java:354)
            at android.widget.Editor$ActionPopupWindow.initContentView(Editor.java:3513)
            at android.widget.Editor$PinnedPopupWindow.<init>(Editor.java:2693)
            at android.widget.Editor$ActionPopupWindow.<init>(Editor.java:3437)
            at android.widget.Editor$ActionPopupWindow.<init>(Editor.java:3437)
            at android.widget.Editor$HandleView.showActionPopupWindow(Editor.java:4505)
            at android.widget.Editor$InsertionHandleView.showWithActionPopup(Editor.java:4935)
            at android.widget.Editor$InsertionHandleView.onTouchEvent(Editor.java:4987)
            at android.view.View.dispatchTouchEvent(View.java:8160)
            at android.view.View.dispatchPointerEvent(View.java:8368)
            at android.view.ViewRootImpl$ViewPostImeInputStage.processPointerEvent(ViewRootImpl.java:4788)
            at android.view.ViewRootImpl$ViewPostImeInputStage.onProcess(ViewRootImpl.java:4649)
            at android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:4207)
            at android.view.ViewRootImpl$InputStage.onDeliverToNext(ViewRootImpl.java:4261)
            at android.view.ViewRootImpl$InputStage.forward(ViewRootImpl.java:4230)
            at android.view.ViewRootImpl$AsyncInputStage.forward(ViewRootImpl.java:4341)
            at android.view.ViewRootImpl$InputStage.apply(ViewRootImpl.java:4238)
            at android.view.ViewRootImpl$AsyncInputStage.apply(ViewRootImpl.java:4398)
            at android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:4207)
            at android.view.ViewRootImpl$InputStage.onDeliverToNext(ViewRootImpl.java:4261)
            at android.view.ViewRootImpl$InputStage.forward(ViewRootImpl.java:4230)
            at android.view.ViewRootImpl$InputStage.apply(ViewRootImpl.java:4238)
            at android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:4207)
            at android.view.ViewRootImpl.deliverInputEvent(ViewRootImpl.java:6584)
            at android.view.ViewRootImpl.doProcessInputEvents(ViewRootImpl.java:6501)
            at android.view.ViewRootImpl.enqueueInputEvent(ViewRootImpl.java:6472)
            at android.view.ViewRootImpl.enqueueInputEvent(ViewRootImpl.java:6437)
            at android.view.ViewRootImpl$WindowInputEventReceiver.onInputEvent(ViewRootImpl.java:6664)
            at android.view.InputEventReceiver.dispatchInputEvent(InputEventReceiver.java:185)
            at android.os.MessageQueue.nativePollOnce(Native Method)
            at android.os.MessageQueue.next(MessageQueue.java:138)
            at android.os.Looper.loop(Looper.java:131)
            at android.app.ActivityThread.main(ActivityThread.java:5653)
            at java.lang.reflect.Method.invokeNative(Native Method)
            at java.lang.reflect.Method.invoke(Method.java:515)
            at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1291)
            at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1107)
            at dalvik.system.NativeStart.main(Native Method)
     Caused by: java.lang.ArrayIndexOutOfBoundsException: length=15; index=665
            at android.content.res.StringBlock.get(StringBlock.java:65)
            at android.content.res.XmlBlock$Parser.getPooledString(XmlBlock.java:459)
            at android.content.res.TypedArray.loadStringValueAt(TypedArray.java:721)
            at android.content.res.TypedArray.getString(TypedArray.java:125)
            at android.widget.TextView.<init>(TextView.java:1522)
            at android.widget.TextView.<init>(TextView.java:921)
            at java.lang.reflect.Constructor.constructNative(Native Method)
            at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
            at android.view.LayoutInflater.createView(LayoutInflater.java:600)
            at com.android.internal.policy.impl.PhoneLayoutInflater.onCreateView(PhoneLayoutInflater.java:56)
            at android.view.LayoutInflater.onCreateView(LayoutInflater.java:675)
            at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:700)
            at android.view.LayoutInflater.inflate(LayoutInflater.java:470)
            at android.view.LayoutInflater.inflate(LayoutInflater.java:398)
            at android.view.LayoutInflater.inflate(LayoutInflater.java:354)
            at android.widget.Editor$ActionPopupWindow.initContentView(Editor.java:3513)
            at android.widget.Editor$PinnedPopupWindow.<init>(Editor.java:2693)
            at android.widget.Editor$ActionPopupWindow.<init>(Editor.java:3437)
            at android.widget.Editor$ActionPopupWindow.<init>(Editor.java:3437)
            at android.widget.Editor$HandleView.showActionPopupWindow(Editor.java:4505)
            at android.widget.Editor$InsertionHandleView.showWithActionPopup(Editor.java:4935)
            at android.widget.Editor$InsertionHandleView.onTouchEvent(Editor.java:4987)
            at android.view.View.dispatchTouchEvent(View.java:8160)
            at android.view.View.dispatchPointerEvent(View.java:8368)
            at android.view.ViewRootImpl$ViewPostImeInputStage.processPointerEvent(ViewRootImpl.java:4788)
            at android.view.ViewRootImpl$ViewPostImeInputStage.onProcess(ViewRootImpl.java:4649)
            at android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:4207)
            at android.view.ViewRootImpl$InputStage.onDeliverToNext(ViewRootImpl.java:4261)
            at android.view.ViewRootImpl$InputStage.forward(ViewRootImpl.java:4230)
            at android.view.ViewRootImpl$AsyncInputStage.forward(ViewRootImpl.java:4341)
            at android.view.ViewRootImpl$InputStage.apply(ViewRootImpl.java:4238)
            at android.view.ViewRootImpl$AsyncInputStage.apply(ViewRootImpl.java:4398)
            at android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:4207)
            at android.view.ViewRootImpl$InputStage.onDeliverToNext(ViewRootImpl.java:4261)
            at android.view.ViewRootImpl$InputStage.forward(ViewRootImpl.java:4230)
            at android.view.ViewRootImpl$InputStage.apply(ViewRootImpl.java:4238)
            at android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:4207)
            at android.view.ViewRootImpl.deliverInputEvent(ViewRootImpl.java:6584)
            at android.view.ViewRootImpl.doProcessInputEvents(ViewRootImpl.java:6501)
            at android.view.ViewRootImpl.enqueueInputEvent(ViewRootImpl.java:6472)
            at android.view.ViewRootImpl.enqueueInputEvent(ViewRootImpl.java:6437)
            at android.view.ViewRootImpl$WindowInputEventReceiver.onInputEvent(ViewRootImpl.java:6664)
            at android.view.InputEventReceiver.dispatchInputEvent(InputEventReceiver.java:185)
            at android.os.MessageQueue.nativePollOnce(Native Method)
            at android.os.MessageQueue.next(MessageQueue.java:138)
            at android.os.Looper.loop(Looper.java:131)
            at android.app.ActivityThread.main(ActivityThread.java:5653)
            at java.lang.reflect.Method.invokeNative(Native Method)
            at java.lang.reflect.Method.invoke(Method.java:515)
            at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1291)
            at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1107)
            at dalvik.system.NativeStart.main(Native Method)

MainActivity

@Override
    protected void onCreate(Bundle savedInstanceState) {


        super.onCreate(savedInstanceState);


            setContentView(R.layout.activity_main);
       if(getResources().getConfiguration().locale.toString().equals("en_US") || getResources().getConfiguration().locale.toString().equals("en"))
        {
            lang="en";
        }
        else
        {
            lang="ar";
        }

try {
            // Instantiate the gesture detector with the application context and an implementation of GestureDetector.OnGestureListener
            mDetector = new GestureDetectorCompat(this,this);
            // Initialize gesture detector - double tap listener
            mDetector.setOnDoubleTapListener(this);
        }
        catch (Exception e) {
            Log.e(TAG, "Error in In MainActivity Gesture Error: "+e.toString());

        }
username = (EditText)findViewById(R.id.editText1);
            password = (EditText)findViewById(R.id.editText2);

ry {
            password.setOnEditorActionListener(new TextView.OnEditorActionListener() {
                @Override
                public boolean onEditorAction(TextView v, int actionId, KeyEvent event) {
                    if (actionId == EditorInfo.IME_ACTION_GO) {
                        login(findViewById(android.R.id.content));
                        return true;
                    }
                    return false;
                }
            });
        }
        catch(Exception e)
        {
            Log.e(TAG,"Error in password.setOnEditorActionListener: "+e);
        }



public void login(View view) {

        String loginUserName = username.getText().toString();
        String loginPassword = password.getText().toString();
}

注意:我只是注意到在编辑文本中写入文字并且蓝色光标被卡住时会崩溃。还有HTC ONE M8(4.4.4)没有发生错误,但三星GRUS DOUS 2(4.4.2)发生错误