android
文章平均质量分 78
zxh742755443
这个作者很懒,什么都没留下…
展开
-
android 使用Fragment 代替ActivityGroup
1.创建activity_main.xml <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" androi原创 2015-10-18 11:55:59 · 1045 阅读 · 1 评论 -
android 捕获 UncaughtExceptionHandler
1.写一个捕获类 public class CrashHandler implements UncaughtExceptionHandler { private Thread.UncaughtExceptionHandler mDefaultHandler; public void init(Context ctx) { mDefaultHandler = Thread.getD原创 2015-10-13 22:13:51 · 306 阅读 · 0 评论