我有MainActivity
我
Intent mRegister = new Intent(getBaseContext(), Register.class);
startActivity(mRegister);
在Register.class
我做startActivityForResult(cameraIntent, CAMERA_RESULT);
并拥有protected void onActivityResult(int requestCode, int resultCode, Intent data).
它有效,然后我添加了一些其他活动,并通过在MainActivity
Intent mRegister = new Intent(getBaseContext(), Register.class);
稍后我编辑回调用Register.class
时,当相机运行后Android返回我的应用程序时,onActivityResult
不再被调用。我没有像android:launchMode="singleInstance"
那样添加任何内容,但是我还没有改变Register.class
。
为什么应用可以停止工作?我怀疑是一个小故障,但也许我错过了一些东西。
答案答案:
更改为MainActivity.this
或getApplicationContext()
并未调用onActivityResult。
我试图将Android Studio从1.5降级到1.4 - 没有帮助,我正在使用java 1.8。尝试使用Android 4.0和4.4。
MainActivity.this:
时所选应用程序的Logcat04-08 09:19:48.869 30528-30535/com.julius.sv D/jdwp: processIncoming
04-08 09:19:48.869 30528-30535/com.julius.sv D/jdwp: handlePacket : cmd=0x1, cmdSet=0xC7, len=0x14, id=0x400001A9, flags=0x0, dataLen=0x9
04-08 09:19:48.869 30528-30535/com.julius.sv D/jdwp: REQ: DDM.Chunk (cmd=199/1 dataLen=9 id=0x400001a9)
04-08 09:19:48.870 30528-30535/com.julius.sv D/jdwp: sendBufferedRequest : len=0x34
04-08 09:19:48.870 30528-30535/com.julius.sv D/jdwp: reply: dataLen=0 err=NONE(0)
04-08 09:19:49.370 30528-30535/com.julius.sv D/jdwp: processIncoming
04-08 09:19:49.370 30528-30535/com.julius.sv D/jdwp: handlePacket : cmd=0x1, cmdSet=0xC7, len=0x14, id=0x400001AA, flags=0x0, dataLen=0x9
04-08 09:19:49.370 30528-30535/com.julius.sv D/jdwp: REQ: DDM.Chunk (cmd=199/1 dataLen=9 id=0x400001aa)
04-08 09:19:49.371 30528-30535/com.julius.sv D/jdwp: sendBufferedRequest : len=0x34
04-08 09:19:49.371 30528-30535/com.julius.sv D/jdwp: reply: dataLen=0 err=NONE(0)
04-08 09:19:49.872 30528-30535/com.julius.sv D/jdwp: processIncoming
04-08 09:19:49.872 30528-30535/com.julius.sv D/jdwp: handlePacket : cmd=0x1, cmdSet=0xC7, len=0x14, id=0x400001AB, flags=0x0, dataLen=0x9
04-08 09:19:49.872 30528-30535/com.julius.sv D/jdwp: REQ: DDM.Chunk (cmd=199/1 dataLen=9 id=0x400001ab)
04-08 09:19:49.872 30528-30535/com.julius.sv D/jdwp: sendBufferedRequest : len=0x34
04-08 09:19:49.872 30528-30535/com.julius.sv D/jdwp: reply: dataLen=0 err=NONE(0)
04-08 09:19:50.372 30528-30535/com.julius.sv D/jdwp: processIncoming
04-08 09:19:50.372 30528-30535/com.julius.sv D/jdwp: handlePacket : cmd=0x1, cmdSet=0xC7, len=0x14, id=0x400001AC, flags=0x0, dataLen=0x9
04-08 09:19:50.372 30528-30535/com.julius.sv D/jdwp: REQ: DDM.Chunk (cmd=199/1 dataLen=9 id=0x400001ac)
04-08 09:19:50.373 30528-30535/com.julius.sv D/jdwp: sendBufferedRequest : len=0x34
04-08 09:19:50.373 30528-30535/com.julius.sv D/jdwp: reply: dataLen=0 err=NONE(0)
04-08 09:19:50.873 30528-30535/com.julius.sv D/jdwp: processIncoming
04-08 09:19:50.873 30528-30535/com.julius.sv D/jdwp: handlePacket : cmd=0x1, cmdSet=0xC7, len=0x14, id=0x400001AD, flags=0x0, dataLen=0x9
04-08 09:19:50.873 30528-30535/com.julius.sv D/jdwp: REQ: DDM.Chunk (cmd=199/1 dataLen=9 id=0x400001ad)
04-08 09:19:50.874 30528-30535/com.julius.sv D/jdwp: sendBufferedRequest : len=0x34
04-08 09:19:50.874 30528-30535/com.julius.sv D/jdwp: reply: dataLen=0 err=NONE(0)
04-08 09:19:51.374 30528-30535/com.julius.sv D/jdwp: processIncoming
04-08 09:19:51.374 30528-30535/com.julius.sv D/jdwp: handlePacket : cmd=0x1, cmdSet=0xC7, len=0x14, id=0x400001AE, flags=0x0, dataLen=0x9
04-08 09:19:51.374 30528-30535/com.julius.sv D/jdwp: REQ: DDM.Chunk (cmd=199/1 dataLen=9 id=0x400001ae)
04-08 09:19:51.374 30528-30535/com.julius.sv D/jdwp: sendBufferedRequest : len=0x34
04-08 09:19:51.374 30528-30535/com.julius.sv D/jdwp: reply: dataLen=0 err=NONE(0)
04-08 09:19:51.875 30528-30535/com.julius.sv D/jdwp: processIncoming
04-08 09:19:51.875 30528-30535/com.julius.sv D/jdwp: handlePacket : cmd=0x1, cmdSet=0xC7, len=0x14, id=0x400001AF, flags=0x0, dataLen=0x9
04-08 09:19:51.875 30528-30535/com.julius.sv D/jdwp: REQ: DDM.Chunk (cmd=199/1 dataLen=9 id=0x400001af)
04-08 09:19:51.875 30528-30535/com.julius.sv D/jdwp: sendBufferedRequest : len=0x34
04-08 09:19:51.875 30528-30535/com.julius.sv D/jdwp: reply: dataLen=0 err=NONE(0)
04-08 09:19:52.375 30528-30535/com.julius.sv D/jdwp: processIncoming
04-08 09:19:52.375 30528-30535/com.julius.sv D/jdwp: handlePacket : cmd=0x1, cmdSet=0xC7, len=0x14, id=0x400001B0, flags=0x0, dataLen=0x9
04-08 09:19:52.375 30528-30535/com.julius.sv D/jdwp: REQ: DDM.Chunk (cmd=199/1 dataLen=9 id=0x400001b0)
04-08 09:19:52.376 30528-30535/com.julius.sv D/jdwp: sendBufferedRequest : len=0x34
04-08 09:19:52.376 30528-30535/com.julius.sv D/jdwp: reply: dataLen=0 err=NONE(0)
04-08 09:19:52.425 30528-30528/com.julius.sv D/ActivityThread: ACT-AM_ON_PAUSE_CALLED ActivityRecord{417a2018 token=android.os.BinderProxy@417a1900 {com.julius.sv/com.julius.sv.Register}}
04-08 09:19:52.441 30528-30528/com.julius.sv D/ActivityThread: ACT-PAUSE_ACTIVITY handled : 1 / android.os.BinderProxy@417a1900
04-08 09:19:52.850 30528-30528/com.julius.sv D/ActivityThread: ACT-STOP_ACTIVITY_SHOW handled : 0 / android.os.BinderProxy@417a1900
04-08 09:19:52.877 30528-30535/com.julius.sv D/jdwp: processIncoming
04-08 09:19:52.877 30528-30535/com.julius.sv D/jdwp: handlePacket : cmd=0x1, cmdSet=0xC7, len=0x14, id=0x400001B1, flags=0x0, dataLen=0x9
04-08 09:19:52.877 30528-30535/com.julius.sv D/jdwp: REQ: DDM.Chunk (cmd=199/1 dataLen=9 id=0x400001b1)
04-08 09:19:52.877 30528-30535/com.julius.sv D/jdwp: sendBufferedRequest : len=0x34
04-08 09:19:52.877 30528-30535/com.julius.sv D/jdwp: reply: dataLen=0 err=NONE(0)
04-08 09:19:53.377 30528-30535/com.julius.sv D/jdwp: processIncoming
04-08 09:19:53.377 30528-30535/com.julius.sv D/jdwp: handlePacket : cmd=0x1, cmdSet=0xC7, len=0x14, id=0x400001B2, flags=0x0, dataLen=0x9
04-08 09:19:53.377 30528-30535/com.julius.sv D/jdwp: REQ: DDM.Chunk (cmd=199/1 dataLen=9 id=0x400001b2)
04-08 09:19:53.377 30528-30535/com.julius.sv D/jdwp: sendBufferedRequest : len=0x34
04-08 09:19:53.378 30528-30535/com.julius.sv D/jdwp: reply: dataLen=0 err=NONE(0)
04-08 09:19:53.879 30528-30535/com.julius.sv D/jdwp: processIncoming
04-08 09:19:53.879 30528-30535/com.julius.sv D/jdwp: handlePacket : cmd=0x1, cmdSet=0xC7, len=0x14, id=0x400001B3, flags=0x0, dataLen=0x9
04-08 09:19:53.879 30528-30535/com.julius.sv D/jdwp: REQ: DDM.Chunk (cmd=199/1 dataLen=9 id=0x400001b3)
04-08 09:19:53.879 30528-30535/com.julius.sv D/jdwp: sendBufferedRequest : len=0x34
04-08 09:19:53.879 30528-30535/com.julius.sv D/jdwp: reply: dataLen=0 err=NONE(0)
04-08 09:19:54.380 30528-30535/com.julius.sv D/jdwp: processIncoming
04-08 09:19:54.380 30528-30535/com.julius.sv D/jdwp: handlePacket : cmd=0x1, cmdSet=0xC7, len=0x14, id=0x400001B4, flags=0x0, dataLen=0x9
04-08 09:19:54.380 30528-30535/com.julius.sv D/jdwp: REQ: DDM.Chunk (cmd=199/1 dataLen=9 id=0x400001b4)
04-08 09:19:54.380 30528-30535/com.julius.sv D/jdwp: sendBufferedRequest : len=0x34
04-08 09:19:54.380 30528-30535/com.julius.sv D/jdwp: reply: dataLen=0 err=NONE(0)
04-08 09:19:54.854 30528-30528/com.julius.sv D/ActivityThread: ACT-HIDE_WINDOW handled : 0 / android.os.BinderProxy@417a1900
04-08 09:19:54.858 30528-30528/com.julius.sv D/OpenGLRenderer: Flushing caches (mode 0)
04-08 09:19:54.880 30528-30535/com.julius.sv D/jdwp: processIncoming
04-08 09:19:54.881 30528-30535/com.julius.sv D/jdwp: handlePacket : cmd=0x1, cmdSet=0xC7, len=0x14, id=0x400001B5, flags=0x0, dataLen=0x9
04-08 09:19:54.881 30528-30535/com.julius.sv D/jdwp: REQ: DDM.Chunk (cmd=199/1 dataLen=9 id=0x400001b5)
04-08 09:19:54.883 30528-30535/com.julius.sv D/jdwp: sendBufferedRequest : len=0x34
04-08 09:19:54.883 30528-30535/com.julius.sv D/jdwp: reply: dataLen=0 err=NONE(0)
04-08 09:19:54.906 30528-30528/com.julius.sv D/OpenGLRenderer: Flushing caches (mode 1)
04-08 09:19:55.382 30528-30535/com.julius.sv D/jdwp: processIncoming
04-08 09:19:55.382 30528-30535/com.julius.sv D/jdwp: handlePacket : cmd=0x1, cmdSet=0xC7, len=0x14, id=0x400001B6, flags=0x0, dataLen=0x9
04-08 09:19:55.382 30528-30535/com.julius.sv D/jdwp: REQ: DDM.Chunk (cmd=199/1 dataLen=9 id=0x400001b6)
04-08 09:19:55.383 30528-30535/com.julius.sv D/jdwp: sendBufferedRequest : len=0x34
04-08 09:19:55.383 30528-30535/com.julius.sv D/jdwp: reply: dataLen=0 err=NONE(0)
04-08 09:19:55.883 30528-30535/com.julius.sv D/jdwp: processIncoming
04-08 09:19:55.883 30528-30535/com.julius.sv D/jdwp: handlePacket : cmd=0x1, cmdSet=0xC7, len=0x14, id=0x400001B7, flags=0x0, dataLen=0x9
04-08 09:19:55.883 30528-30535/com.julius.sv D/jdwp: REQ: DDM.Chunk (cmd=199/1 dataLen=9 id=0x400001b7)
04-08 09:19:55.883 30528-30535/com.julius.sv D/jdwp: sendBufferedRequest : len=0x34
04-08 09:19:55.887 30528-30535/com.julius.sv D/jdwp: reply: dataLen=0 err=NONE(0)
04-08 09:19:56.102 30528-30528/com.julius.sv W/InputMethodManager: startInputInner : InputBindResult == null
04-08 09:19:56.103 30528-30528/com.julius.sv W/IInputConnectionWrapper: showStatusIcon on inactive InputConnection
04-08 09:19:56.361 30528-30528/com.julius.sv D/OpenGLRenderer: Flushing caches (mode 2)
04-08 09:19:56.369 30528-30528/com.julius.sv D/OpenGLRenderer: Flushing caches (mode 0)
04-08 09:19:56.370 30528-30528/com.julius.sv D/OpenGLRenderer: Flushing caches (mode 0)
04-08 09:19:56.384 30528-30535/com.julius.sv D/jdwp: processIncoming
04-08 09:19:56.384 30528-30535/com.julius.sv D/jdwp: handlePacket : cmd=0x1, cmdSet=0xC7, len=0x14, id=0x400001B8, flags=0x0, dataLen=0x9
04-08 09:19:56.384 30528-30535/com.julius.sv D/jdwp: REQ: DDM.Chunk (cmd=199/1 dataLen=9 id=0x400001b8)
04-08 09:19:56.385 30528-30535/com.julius.sv D/jdwp: sendBufferedRequest : len=0x34
04-08 09:19:56.385 30528-30535/com.julius.sv D/jdwp: reply: dataLen=0 err=NONE(0)
04-08 09:19:56.885 30528-30535/com.julius.sv D/jdwp: processIncoming
04-08 09:19:56.885 30528-30535/com.julius.sv D/jdwp: handlePacket : cmd=0x1, cmdSet=0xC7, len=0x14, id=0x400001B9, flags=0x0, dataLen=0x9
04-08 09:19:56.885 30528-30535/com.julius.sv D/jdwp: REQ: DDM.Chunk (cmd=199/1 dataLen=9 id=0x400001b9)
04-08 09:19:56.885 30528-30535/com.julius.sv D/jdwp: sendBufferedRequest : len=0x34
04-08 09:19:56.885 30528-30535/com.julius.sv D/jdwp: reply: dataLen=0 err=NONE(0)
04-08 09:19:57.386 30528-30535/com.julius.sv D/jdwp: processIncoming
04-08 09:19:57.386 30528-30535/com.julius.sv D/jdwp: handlePacket : cmd=0x1, cmdSet=0xC7, len=0x14, id=0x400001BA, flags=0x0, dataLen=0x9
04-08 09:19:57.386 30528-30535/com.julius.sv D/jdwp: REQ: DDM.Chunk (cmd=199/1 dataLen=9 id=0x400001ba)
04-08 09:19:57.386 30528-30535/com.julius.sv D/jdwp: sendBufferedRequest : len=0x34
04-08 09:19:57.386 30528-30535/com.julius.sv D/jdwp: reply: dataLen=0 err=NONE(0)
04-08 09:19:57.887 30528-30535/com.julius.sv D/jdwp: processIncoming
04-08 09:19:57.887 30528-30535/com.julius.sv D/jdwp: handlePacket : cmd=0x1, cmdSet=0xC7, len=0x14, id=0x400001BB, flags=0x0, dataLen=0x9
04-08 09:19:57.887 30528-30535/com.julius.sv D/jdwp: REQ: DDM.Chunk (cmd=199/1 dataLen=9 id=0x400001bb)
04-08 09:19:57.887 30528-30535/com.julius.sv D/jdwp: sendBufferedRequest : len=0x34
04-08 09:19:57.887 30528-30535/com.julius.sv D/jdwp: reply: dataLen=0 err=NONE(0)
04-08 09:19:58.387 30528-30535/com.julius.sv D/jdwp: processIncoming
04-08 09:19:58.387 30528-30535/com.julius.sv D/jdwp: handlePacket : cmd=0x1, cmdSet=0xC7, len=0x14, id=0x400001BC, flags=0x0, dataLen=0x9
04-08 09:19:58.387 30528-30535/com.julius.sv D/jdwp: REQ: DDM.Chunk (cmd=199/1 dataLen=9 id=0x400001bc)
04-08 09:19:58.387 30528-30535/com.julius.sv D/jdwp: sendBufferedRequest : len=0x34
04-08 09:19:58.387 30528-30535/com.julius.sv D/jdwp: reply: dataLen=0 err=NONE(0)
04-08 09:19:58.888 30528-30535/com.julius.sv D/jdwp: processIncoming
04-08 09:19:58.888 30528-30535/com.julius.sv D/jdwp: handlePacket : cmd=0x1, cmdSet=0xC7, len=0x14, id=0x400001BD, flags=0x0, dataLen=0x9
04-08 09:19:58.888 30528-30535/com.julius.sv D/jdwp: REQ: DDM.Chunk (cmd=199/1 dataLen=9 id=0x400001bd)
04-08 09:19:58.888 30528-30535/com.julius.sv D/jdwp: sendBufferedRequest : len=0x34
04-08 09:19:58.888 30528-30535/com.julius.sv D/jdwp: reply: dataLen=0 err=NONE(0)
04-08 09:19:59.389 30528-30535/com.julius.sv D/jdwp: processIncoming
04-08 09:19:59.389 30528-30535/com.julius.sv D/jdwp: handlePacket : cmd=0x1, cmdSet=0xC7, len=0x14, id=0x400001BE, flags=0x0, dataLen=0x9
04-08 09:19:59.389 30528-30535/com.julius.sv D/jdwp: REQ: DDM.Chunk (cmd=199/1 dataLen=9 id=0x400001be)
04-08 09:19:59.389 30528-30535/com.julius.sv D/jdwp: sendBufferedRequest : len=0x34
04-08 09:19:59.389 30528-30535/com.julius.sv D/jdwp: reply: dataLen=0 err=NONE(0)
04-08 09:19:59.889 30528-30535/com.julius.sv D/jdwp: processIncoming
04-08 09:19:59.889 30528-30535/com.julius.sv D/jdwp: handlePacket : cmd=0x1, cmdSet=0xC7, len=0x14, id=0x400001BF, flags=0x0, dataLen=0x9
04-08 09:19:59.889 30528-30535/com.julius.sv D/jdwp: REQ: DDM.Chunk (cmd=199/1 dataLen=9 id=0x400001bf)
04-08 09:19:59.890 30528-30535/com.julius.sv D/jdwp: sendBufferedRequest : len=0x34
04-08 09:19:59.890 30528-30535/com.julius.sv D/jdwp: reply: dataLen=0 err=NONE(0)
04-08 09:20:00.441 30528-30535/com.julius.sv D/jdwp: processIncoming
04-08 09:20:00.441 30528-30535/com.julius.sv D/jdwp: handlePacket : cmd=0x1, cmdSet=0xC7, len=0x14, id=0x400001C0, flags=0x0, dataLen=0x9
04-08 09:20:00.442 30528-30535/com.julius.sv D/jdwp: REQ: DDM.Chunk (cmd=199/1 dataLen=9 id=0x400001c0)
04-08 09:20:00.442 30528-30535/com.julius.sv D/jdwp: sendBufferedRequest : len=0x34
04-08 09:20:00.443 30528-30535/com.julius.sv D/jdwp: reply: dataLen=0 err=NONE(0)
04-08 09:20:00.892 30528-30535/com.julius.sv D/jdwp: processIncoming
04-08 09:20:00.892 30528-30535/com.julius.sv D/jdwp: handlePacket : cmd=0x1, cmdSet=0xC7, len=0x14, id=0x400001C1, flags=0x0, dataLen=0x9
04-08 09:20:00.892 30528-30535/com.julius.sv D/jdwp: REQ: DDM.Chunk (cmd=199/1 dataLen=9 id=0x400001c1)
04-08 09:20:00.892 30528-30535/com.julius.sv D/jdwp: sendBufferedRequest : len=0x34
04-08 09:20:00.892 30528-30535/com.julius.sv D/jdwp: reply: dataLen=0 err=NONE(0)
04-08 09:20:01.393 30528-30535/com.julius.sv D/jdwp: processIncoming
04-08 09:20:01.393 30528-30535/com.julius.sv D/jdwp: handlePacket : cmd=0x1, cmdSet=0xC7, len=0x14, id=0x400001C2, flags=0x0, dataLen=0x9
04-08 09:20:01.393 30528-30535/com.julius.sv D/jdwp: REQ: DDM.Chunk (cmd=199/1 dataLen=9 id=0x400001c2)
04-08 09:20:01.393 30528-30535/com.julius.sv D/jdwp: sendBufferedRequest : len=0x34
04-08 09:20:01.393 30528-30535/com.julius.sv D/jdwp: reply: dataLen=0 err=NONE(0)
04-08 09:20:01.893 30528-30535/com.julius.sv D/jdwp: processIncoming
04-08 09:20:01.893 30528-30535/com.julius.sv D/jdwp: handlePacket : cmd=0x1, cmdSet=0xC7, len=0x14, id=0x400001C3, flags=0x0, dataLen=0x9
04-08 09:20:01.893 30528-30535/com.julius.sv D/jdwp: REQ: DDM.Chunk (cmd=199/1 dataLen=9 id=0x400001c3)
04-08 09:20:01.893 30528-30535/com.julius.sv D/jdwp: sendBufferedRequest : len=0x34
04-08 09:20:01.895 30528-30535/com.julius.sv D/jdwp: reply: dataLen=0 err=NONE(0)
04-08 09:20:02.340 30528-30528/com.julius.sv D/ActivityThread: ACT-AM_ON_RESUME_CALLED ActivityRecord{417a2018 token=android.os.BinderProxy@417a1900 {com.julius.sv/com.julius.sv.Register}}
04-08 09:20:02.358 30528-30528/com.julius.sv D/ActivityThread: ACT-RESUME_ACTIVITY handled : 0 / android.os.BinderProxy@417a1900
04-08 09:20:02.394 30528-30535/com.julius.sv D/jdwp: processIncoming
04-08 09:20:02.394 30528-30535/com.julius.sv D/jdwp: handlePacket : cmd=0x1, cmdSet=0xC7, len=0x14, id=0x400001C4, flags=0x0, dataLen=0x9
04-08 09:20:02.394 30528-30535/com.julius.sv D/jdwp: REQ: DDM.Chunk (cmd=199/1 dataLen=9 id=0x400001c4)
04-08 09:20:02.394 30528-30535/com.julius.sv D/jdwp: sendBufferedRequest : len=0x34
04-08 09:20:02.394 30528-30535/com.julius.sv D/jdwp: reply: dataLen=0 err=NONE(0)
04-08 09:20:02.566 30528-30528/com.julius.sv W/IInputConnectionWrapper: showStatusIcon on inactive InputConnection
04-08 09:20:02.896 30528-30535/com.julius.sv D/jdwp: processIncoming
04-08 09:20:02.896 30528-30535/com.julius.sv D/jdwp: handlePacket : cmd=0x1, cmdSet=0xC7, len=0x14, id=0x400001C5, flags=0x0, dataLen=0x9
04-08 09:20:02.896 30528-30535/com.julius.sv D/jdwp: REQ: DDM.Chunk (cmd=199/1 dataLen=9 id=0x400001c5)
04-08 09:20:02.897 30528-30535/com.julius.sv D/jdwp: sendBufferedRequest : len=0x34
04-08 09:20:02.897 30528-30535/com.julius.sv D/jdwp: reply: dataLen=0 err=NONE(0)
04-08 09:20:03.397 30528-30535/com.julius.sv D/jdwp: processIncoming
04-08 09:20:03.397 30528-30535/com.julius.sv D/jdwp: handlePacket : cmd=0x1, cmdSet=0xC7, len=0x14, id=0x400001C6, flags=0x0, dataLen=0x9
04-08 09:20:03.397 30528-30535/com.julius.sv D/jdwp: REQ: DDM.Chunk (cmd=199/1 dataLen=9 id=0x400001c6)
04-08 09:20:03.397 30528-30535/com.julius.sv D/jdwp: sendBufferedRequest : len=0x34
04-08 09:20:03.397 30528-30535/com.julius.sv D/jdwp: reply: dataLen=0 err=NONE(0)
04-08 09:20:03.898 30528-30535/com.julius.sv D/jdwp: processIncoming
04-08 09:20:03.898 30528-30535/com.julius.sv D/jdwp: handlePacket : cmd=0x1, cmdSet=0xC7, len=0x14, id=0x400001C7, flags=0x0, dataLen=0x9
04-08 09:20:03.898 30528-30535/com.julius.sv D/jdwp: REQ: DDM.Chunk (cmd=199/1 dataLen=9 id=0x400001c7)
04-08 09:20:03.898 30528-30535/com.julius.sv D/jdwp: sendBufferedRequest : len=0x34
04-08 09:20:03.898 30528-30535/com.julius.sv D/jdwp: reply: dataLen=0 err=NONE(0)
04-08 09:20:04.399 30528-30535/com.julius.sv D/jdwp: processIncoming
04-08 09:20:04.399 30528-30535/com.julius.sv D/jdwp: handlePacket : cmd=0x1, cmdSet=0xC7, len=0x14, id=0x400001C8, flags=0x0, dataLen=0x9
04-08 09:20:04.399 30528-30535/com.julius.sv D/jdwp: REQ: DDM.Chunk (cmd=199/1 dataLen=9 id=0x400001c8)
04-08 09:20:04.399 30528-30535/com.julius.sv D/jdwp: sendBufferedRequest : len=0x34
04-08 09:20:04.399 30528-30535/com.julius.sv D/jdwp: reply: dataLen=0 err=NONE(0)
04-08 09:20:04.900 30528-30535/com.julius.sv D/jdwp: processIncoming
04-08 09:20:04.900 30528-30535/com.julius.sv D/jdwp: handlePacket : cmd=0x1, cmdSet=0xC7, len=0x14, id=0x400001C9, flags=0x0, dataLen=0x9
04-08 09:20:04.900 30528-30535/com.julius.sv D/jdwp: REQ: DDM.Chunk (cmd=199/1 dataLen=9 id=0x400001c9)
04-08 09:20:04.900 30528-30535/com.julius.sv D/jdwp: sendBufferedRequest : len=0x34
04-08 09:20:04.900 30528-30535/com.julius.sv D/jdwp: reply: dataLen=0 err=NONE(0)
04-08 09:20:05.401 30528-30535/com.julius.sv D/jdwp: processIncoming
04-08 09:20:05.401 30528-30535/com.julius.sv D/jdwp: handlePacket : cmd=0x1, cmdSet=0xC7, len=0x14, id=0x400001CA, flags=0x0, dataLen=0x9
04-08 09:20:05.401 30528-30535/com.julius.sv D/jdwp: REQ: DDM.Chunk (cmd=199/1 dataLen=9 id=0x400001ca)
04-08 09:20:05.402 30528-30535/com.julius.sv D/jdwp: sendBufferedRequest : len=0x34
04-08 09:20:05.402 30528-30535/com.julius.sv D/jdwp: reply: dataLen=0 err=NONE(0)
04-08 09:20:05.902 30528-30535/com.julius.sv D/jdwp: processIncoming
04-08 09:20:05.902 30528-30535/com.julius.sv D/jdwp: handlePacket : cmd=0x1, cmdSet=0xC7, len=0x14, id=0x400001CB, flags=0x0, dataLen=0x9
04-08 09:20:05.902 30528-30535/com.julius.sv D/jdwp: REQ: DDM.Chunk (cmd=199/1 dataLen=9 id=0x400001cb)
04-08 09:20:05.902 30528-30535/com.julius.sv D/jdwp: sendBufferedRequest : len=0x34
04-08 09:20:05.902 30528-30535/com.julius.sv D/jdwp: reply: dataLen=0 err=NONE(0)
04-08 09:20:06.403 30528-30535/com.julius.sv D/jdwp: processIncoming
04-08 09:20:06.403 30528-30535/com.julius.sv D/jdwp: handlePacket : cmd=0x1, cmdSet=0xC7, len=0x14, id=0x400001CC, flags=0x0, dataLen=0x9
04-08 09:20:06.403 30528-30535/com.julius.sv D/jdwp: REQ: DDM.Chunk (cmd=199/1 dataLen=9 id=0x400001cc)
04-08 09:20:06.403 30528-30535/com.julius.sv D/jdwp: sendBufferedRequest : len=0x34
04-08 09:20:06.403 30528-30535/com.julius.sv D/jdwp: reply: dataLen=0 err=NONE(0)
04-08 09:20:06.904 30528-30535/com.julius.sv D/jdwp: processIncoming
04-08 09:20:06.904 30528-30535/com.julius.sv D/jdwp: handlePacket : cmd=0x1, cmdSet=0xC7, len=0x14, id=0x400001CD, flags=0x0, dataLen=0x9
04-08 09:20:06.904 30528-30535/com.julius.sv D/jdwp: REQ: DDM.Chunk (cmd=199/1 dataLen=9 id=0x400001cd)
04-08 09:20:06.904 30528-30535/com.julius.sv D/jdwp: sendBufferedRequest : len=0x34
04-08 09:20:06.905 30528-30535/com.julius.sv D/jdwp: reply: dataLen=0 err=NONE(0)
04-08 09:20:07.405 30528-30535/com.julius.sv D/jdwp: processIncoming
04-08 09:20:07.405 30528-30535/com.julius.sv D/jdwp: handlePacket : cmd=0x1, cmdSet=0xC7, len=0x14, id=0x400001CE, flags=0x0, dataLen=0x9
04-08 09:20:07.405 30528-30535/com.julius.sv D/jdwp: REQ: DDM.Chunk (cmd=199/1 dataLen=9 id=0x400001ce)
04-08 09:20:07.405 30528-30535/com.julius.sv D/jdwp: sendBufferedRequest : len=0x34
04-08 09:20:07.405 30528-30535/com.julius.sv D/jdwp: reply: dataLen=0 err=NONE(0)
04-08 09:20:07.905 30528-30535/com.julius.sv D/jdwp: processIncoming
04-08 09:20:07.905 30528-30535/com.julius.sv D/jdwp: handlePacket : cmd=0x1, cmdSet=0xC7, len=0x14, id=0x400001CF, flags=0x0, dataLen=0x9
04-08 09:20:07.905 30528-30535/com.julius.sv D/jdwp: REQ: DDM.Chunk (cmd=199/1 dataLen=9 id=0x400001cf)
04-08 09:20:07.905 30528-30535/com.julius.sv D/jdwp: sendBufferedRequest : len=0x34
04-08 09:20:07.905 30528-30535/com.julius.sv D/jdwp: reply: dataLen=0 err=NONE(0)
04-08 09:20:08.406 30528-30535/com.julius.sv D/jdwp: processIncoming
04-08 09:20:08.406 30528-30535/com.julius.sv D/jdwp: handlePacket : cmd=0x1, cmdSet=0xC7, len=0x14, id=0x400001D0, flags=0x0, dataLen=0x9
04-08 09:20:08.406 30528-30535/com.julius.sv D/jdwp: REQ: DDM.Chunk (cmd=199/1 dataLen=9 id=0x400001d0)
04-08 09:20:08.406 30528-30535/com.julius.sv D/jdwp: sendBufferedRequest : len=0x34
04-08 09:20:08.407 30528-30535/com.julius.sv D/jdwp: reply: dataLen=0 err=NONE(0)
04-08 09:20:08.907 30528-30535/com.julius.sv D/jdwp: processIncoming
04-08 09:20:08.907 30528-30535/com.julius.sv D/jdwp: handlePacket : cmd=0x1, cmdSet=0xC7, len=0x14, id=0x400001D1, flags=0x0, dataLen=0x9
04-08 09:20:08.907 30528-30535/com.julius.sv D/jdwp: REQ: DDM.Chunk (cmd=199/1 dataLen=9 id=0x400001d1)
04-08 09:20:08.907 30528-30535/com.julius.sv D/jdwp: sendBufferedRequest : len=0x34
04-08 09:20:08.907 30528-30535/com.julius.sv D/jdwp: reply: dataLen=0 err=NONE(0)
04-08 09:20:09.408 30528-30535/com.julius.sv D/jdwp: processIncoming
04-08 09:20:09.408 30528-30535/com.julius.sv D/jdwp: handlePacket : cmd=0x1, cmdSet=0xC7, len=0x14, id=0x400001D2, flags=0x0, dataLen=0x9
04-08 09:20:09.408 30528-30535/com.julius.sv D/jdwp: REQ: DDM.Chunk (cmd=199/1 dataLen=9 id=0x400001d2)
04-08 09:20:09.409 30528-30535/com.julius.sv D/jdwp: sendBufferedRequest : len=0x34
04-08 09:20:09.409 30528-30535/com.julius.sv D/jdwp: reply: dataLen=0 err=NONE(0)
答案 0 :(得分:0)
尝试将getBaseContext()
替换为MainActivity.this
。
答案 1 :(得分:0)
取代 getBaseContext(),使用 MainActivity.this 或 getApplicationContext()
我希望它可以帮助你.. :)