main E/AndroidRuntime(29923): java.lang.NullPointerException E/AndroidRuntime(29923): at android.app.FragmentManagerImpl.saveFragmentBasicState...(29923): at android.os.Looper.loop(Looper.java:156) E/AndroidRuntime(29923): at android.app.ActivityThread.main...AndroidRuntime(29923): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:551) E/AndroidRuntime...16 15:43:22.026: E/AndroidRuntime(605): at android.app.ActivityThread.main(ActivityThread.java:4424)...(ZygoteInit.java:784) 07-16 15:43:22.026: E/AndroidRuntime(605): at com.android.internal.os.ZygoteInit.main
四、android的性能优化 04-29 02:53:44.654: E/AndroidRuntime(326): FATAL EXCEPTION: main 04-29 02:53:44.654: E...AndroidRuntime(1498): FATAL EXCEPTION: main 03-20 08:19:23.593: E/AndroidRuntime(1498): android.content.ActivityNotFoundException...137) 03-20 08:19:23.593: E/AndroidRuntime(1498): at android.app.ActivityThread.main(ActivityThread.java...(ZygoteInit.java:786) 03-20 08:19:23.593: E/AndroidRuntime(1498): at com.android.internal.os.ZygoteInit.main...(ZygoteInit.java:553) 03-20 08:19:23.593: E/AndroidRuntime(1498): at dalvik.system.NativeStart.main(
:617) 06-28 11:24:40.359: E/AndroidRuntime(7397): at android.content.ContextWrapper.startActivity...(View.java:8816) 06-28 11:24:40.359: E/AndroidRuntime(7397): at android.os.Handler.handleCallback...:123) 06-28 11:24:40.359: E/AndroidRuntime(7397): at android.app.ActivityThread.main(ActivityThread.java...(ZygoteInit.java:868) 06-28 11:24:40.359: E/AndroidRuntime(7397): at com.android.internal.os.ZygoteInit.main...(ZygoteInit.java:626) 06-28 11:24:40.359: E/AndroidRuntime(7397): at dalvik.system.NativeStart.main
3780 3817 E AndroidRuntime: at android.view.ViewRootImpl.requestLayout(ViewRootImpl.java:1104) 02-28...22:36:48.550 3780 3817 E AndroidRuntime: at android.view.View.requestLayout(View.java:19807) 02-28...22:36:48.550 3780 3817 E AndroidRuntime: at android.view.View.requestLayout(View.java:19807) 02-28 22...:36:48.550 3780 3817 E AndroidRuntime: at android.view.View.requestLayout(View.java:19807) 02-28 22:...36:48.550 3780 3817 E AndroidRuntime: at android.view.View.requestLayout(View.java:19807) 02-28 22:36
09-24 12:56:16.471: E/AndroidRuntime(10696): FATAL EXCEPTION: main...12:56:16.471: E/AndroidRuntime(10696): at android.app.ActivityThread.main(ActivityThread.java:5348)...(ZygoteInit.java:829) 09-24 12:56:16.471: E/AndroidRuntime(10696): at com.android.internal.os.ZygoteInit.main...(ZygoteInit.java:645) 09-24 12:56:16.471: E/AndroidRuntime(10696): at dalvik.system.NativeStart.main...: FATAL EXCEPTION: main 09-24 13:19:06.850: E/AndroidRuntime(12237): Process: com.example.nongmin, PID
31360016-byte allocation. 09-29 13:35:46.862: E/AndroidRuntime(20098): FATAL EXCEPTION: main 09-29...android.graphics.BitmapFactory.nativeDecodeAsset(Native Method) 09-29 13:35:46.862: E/AndroidRuntime...:193) 09-29 13:35:46.862: E/AndroidRuntime(20098): at android.app.ActivityThread.main(ActivityThread.java...(ZygoteInit.java:829) 09-29 13:35:46.862: E/AndroidRuntime(20098): at com.android.internal.os.ZygoteInit.main...(ZygoteInit.java:645) 09-29 13:35:46.862: E/AndroidRuntime(20098): at dalvik.system.NativeStart.main
AndroidRuntime: at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2988) E AndroidRuntime...:1631) E AndroidRuntime: at android.os.Handler.dispatchMessage(Handler.java:102) E AndroidRuntime...: at android.os.Looper.loop(Looper.java:154) E AndroidRuntime: at android.app.ActivityThread.main...) E AndroidRuntime: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1410) E AndroidRuntime...(Unknown Source) E AndroidRuntime: at android.app.Activity.performCreate(Activity.java:6942) E
: main 01-04 15:54:29.614 3743 3743 E AndroidRuntime: Process: com.qiyi.video.pad, PID: 3743 01-04...(ActivityThread.java:2726) 01-04 15:54:29.614 3743 3743 E AndroidRuntime: at android.app.ActivityThread...(Handler.java:102) 01-04 15:54:29.614 3743 3743 E AndroidRuntime: at android.os.Looper.loop(Looper.java...:154) 01-04 15:54:29.614 3743 3743 E AndroidRuntime: at android.app.ActivityThread.main(ActivityThread.java...(ZygoteInit.java:900) 01-04 15:54:29.614 3743 3743 E AndroidRuntime: at com.android.internal.os.ZygoteInit.main
奇怪的空指针异常 今天出现一个奇怪的错误, 很简单空指针异常, 我只负责编码, 不管编译, 然后上传到SVN上, 结果出了下面的错误 , 看了半天 , 木有看懂 : 11-13 10:39:53.337...:137) 08-12 12:48:52.993: E/AndroidRuntime(15260): at android.app.ActivityThread.main(ActivityThread.java...(ZygoteInit.java:1038) 08-12 12:48:52.993: E/AndroidRuntime(15260): at com.android.internal.os.ZygoteInit.main...:123) 05-08 07:44:44.442: E/AndroidRuntime(386): at android.app.ActivityThread.main(ActivityThread.java...(ZygoteInit.java:839) 05-08 07:44:44.442: E/AndroidRuntime(386): at com.android.internal.os.ZygoteInit.main
在 AndroidRuntime.cpp的JNINativeMethod数组中我们得知它对应的函数是com_android_internal_os_RuntimeInit_nativeZygoteInit...在Android系统启动流程(二)解析Zygote进程这篇文章我们得知AppRuntime继承AndroidRuntime,AppRuntime创建时就会调用AndroidRuntime的构造函数,gCurRuntime...处会将调用IPCThreadState的joinThreadPool函数,将当前线程注册到Binder驱动程序中,这样我们创建的线程就加入了Binder线程池中,这样新创建的应用程序进程就支持Binder进程间通信了...invokeStaticMain函数在上篇已经讲过,这里不再赘述,主要是看最后一行,会抛出一个MethodAndArgsCaller异常,这个异常会被ZygoteInit的main函数捕获,如下所示。...在注释1处调用ActivityThread的main函数,代码如下所示。 frameworks/base/core/java/android/app/ActivityThread.java ?
:193) 09-20 17:55:38.457: E/AndroidRuntime(14963): at android.app.ActivityThread.main(ActivityThread.java...11:46:26.129: E/AndroidRuntime(22180): at android.app.ActivityThread.main(ActivityThread.java:5348)...17:42:44.865: E/AndroidRuntime(25391): at android.app.ActivityThread.main(ActivityThread.java:5348)...17:48:55.777: E/AndroidRuntime(25604): at android.app.ActivityThread.main(ActivityThread.java:5348)...17:52:12.724: E/AndroidRuntime(25781): at android.app.ActivityThread.main(ActivityThread.java:5348)
1 进程启动过程 Android应用程序框架层创建的应用程序进程具有两个特点,一是进程的入口函数是ActivityThread.main,二是进程天然支持Binder进程间通信机制;这两个特点都是在进程的初始化过程中实现的...= cl.getMethod("main", new Class[] { String[].class}); 函数最后并没有直接调用这个静态成员函数main,而是通过抛出一个异常ZygoteInit.MethodAndArgsCaller...,然后让ZygoteInit.main函数在捕获这个异常的时候再调用android.app.ActivityThread类的main函数。...我们看看ZygoteInit.main函数在捕获到这个异常的时候做了什么事: public class ZygoteInit { .........,由此可见,Binder进程间通信机制在Android系统中是何等的重要,而且是无处不在,想进一步学习Android系统的Binder进程间通信机制,请参考Android进程间通信(IPC)机制Binder
(Unknown Source) E AndroidRuntime: at android.app.Activity.performCreate(Activity.java:6237) E AndroidRuntime...:1344) E AndroidRuntime: at android.os.Handler.dispatchMessage(Handler.java:102) E AndroidRuntime:...at android.os.Looper.loop(Looper.java:148) E AndroidRuntime: at android.app.ActivityThread.main(ActivityThread.java...$MethodAndArgsCaller.run(ZygoteInit.java:726) E AndroidRuntime: at com.android.internal.os.ZygoteInit.main...:22) E/AndroidRuntime(24006): at android.app.Activity.performCreate(Activity.java:6106) E/AndroidRuntime
E AndroidRuntime: at android.os.BinderProxy.transactNative(Native Method) E AndroidRuntime: at android.os.BinderProxy.transact...) E AndroidRuntime: at android.app.Activity.startActivityForResult(Activity.java:4501) E AndroidRuntime...(Activity.java:4820) E AndroidRuntime: at android.app.Activity.startActivity(Activity.java:4788) E...(Activity.java:7023) E AndroidRuntime: at android.app.Activity.performCreate(Activity.java:7014) E...AndroidRuntime: at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1215) E AndroidRuntime
当然,在应用程序创建过程中除了获取虚拟机实例,还可以获得Binder线程池和消息循环,这样运行在应用进程中应用程序就可以方便的使用Binder进行进程间通信以及消息处理机制了。...在 AndroidRuntime.cpp的JNINativeMethod数组中我们得知它对应的函数是com_android_internal_os_RuntimeInit_nativeZygoteInit...函数: frameworks/base/core/jni/AndroidRuntime.cpp static void com_android_internal_os_RuntimeInit_nativeZygoteInit...frameworks/base/core/jni/AndroidRuntime.cpp AndroidRuntime::AndroidRuntime(char* argBlockStart, const...throw new ZygoteInit.MethodAndArgsCaller(m, argv); } 会抛出一个MethodAndArgsCaller异常,这个异常会被ZygoteInit的main
136) 09-26 01:20:33.336: E/AndroidRuntime(1854): at android.app.ActivityThread.main(ActivityThread.java...E/AndroidRuntime(17739): at android.app.ActivityThread.main(ActivityThread.java:5348) 09-29 10:14:40.435...android.os.Looper.loop(Looper.java:193) 09-28 15:18:38.889: E/AndroidRuntime(11648): at android.app.ActivityThread.main...14:16:40.091: E/AndroidRuntime(11555): at android.app.ActivityThread.main(ActivityThread.java:5348)...android.os.Looper.loop(Looper.java:193) 09-28 09:43:20.869: E/AndroidRuntime(10286): at android.app.ActivityThread.main
09-24 18:22:23.692: E/AndroidRuntime(22703): FATAL EXCEPTION: main 09-24 18:22:23.692...:110) 09-24 18:22:23.692: E/AndroidRuntime(22703): at android.os.Looper.loop(Looper.java:193) 09-24...18:22:23.692: E/AndroidRuntime(22703): at android.app.ActivityThread.main(ActivityThread.java:5348)...(ZygoteInit.java:829) 09-24 18:22:23.692: E/AndroidRuntime(22703): at com.android.internal.os.ZygoteInit.main...(ZygoteInit.java:645) 09-24 18:22:23.692: E/AndroidRuntime(22703): at dalvik.system.NativeStart.main
AndroidRuntime(21923): FATAL EXCEPTION: main 09-20 15:26:51.986: E/AndroidRuntime(21923): Process: com.clockrock.freeshare...09-20 15:26:51.986: E/AndroidRuntime(21923): at android.view.ViewRootImpl.setView(ViewRootImpl.java...:193) 09-20 15:26:51.986: E/AndroidRuntime(21923): at android.app.ActivityThread.main(ActivityThread.java...(ZygoteInit.java:829) 09-20 15:26:51.986: E/AndroidRuntime(21923): at com.android.internal.os.ZygoteInit.main...(ZygoteInit.java:645) 09-20 15:26:51.986: E/AndroidRuntime(21923): at dalvik.system.NativeStart.main
首先看报错信息: E/AndroidRuntime(12220): FATAL EXCEPTION: main E/AndroidRuntime(12220): Process: gn.com.android.update..., PID: 12220 E/AndroidRuntime(12220): android.app.RemoteServiceException: Bad notification posted from...:1580) E/AndroidRuntime(12220): at android.os.Handler.dispatchMessage(Handler.java:106) E/AndroidRuntime...(12220): at android.os.Looper.loop(Looper.java:189) E/AndroidRuntime(12220): at android.app.ActivityThread.main...) E/AndroidRuntime(12220): at java.lang.reflect.Method.invoke(Method.java:372) E/AndroidRuntime(12220
AndroidRuntime(12613): FATAL EXCEPTION: main 04-19 09:13:11.148: E/AndroidRuntime(12613): java.lang.NullPointerException...-19 09:13:11.148: E/AndroidRuntime(12613): at android.view.View$PerformClick.run(View.java:14263) 04-...E/AndroidRuntime(12613): at android.app.ActivityThread.main(ActivityThread.java:4507) 04-19 09:13:11.148...790) 04-19 09:13:11.148: E/AndroidRuntime(12613): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java...:557) 04-19 09:13:11.148: E/AndroidRuntime(12613): at dalvik.system.NativeStart.main(Native Method) 2012
领取专属 10元无门槛券
手把手带您无忧上云