我的长久图库
程序员文章站
2024-01-25 19:44:16
...
ensordatarecord E/AndroidRuntime: FATAL EXCEPTION: main
Process: com.example.thinkpad.sensordatarecord, PID: 31374
java.lang.NullPointerException: Attempt to invoke virtual method 'int android.view.View.getLeft()' on a null object reference
at com.example.thinkpad.sensordatarecord.SoundRecordAndAnalysisActivity.onWindowFocusChanged(SoundRecordAndAnalysisActivity.java:88)
at com.android.internal.policy.DecorView.onWindowFocusChanged(DecorView.java:1856)
at android.view.View.dispatchWindowFocusChanged(View.java:11022)
at android.view.ViewGroup.dispatchWindowFocusChanged(ViewGroup.java:1193)
at android.view.ViewRootImpl$ViewRootHandler.handleMessage(ViewRootImpl.java:4138)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:154)
at android.app.ActivityThread.main(ActivityThread.java:6776)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1520)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1410)
这个页面是我的图床
使用方法:
<img src="./xxx.png" width = "360" height = "520" alt="图片名称" align=center />