摘要: 最实在的办法就是继承Application,在里面设置全局变量,因为Application是android的应用入口,并且运行周期贯穿整个程序运行。 同时要在AndroidManifest.xml里面的application属性添加android:name=".MyApplication",指明自己 阅读全文
posted @ 2014-11-19 19:15 RexWei 阅读(300) 评论(0) 推荐(0) 编辑
摘要: 报错信息为:java.lang.IllegalStateException: The specified child already has a parent. You must call removeView() on the child's parent first. 首先,如果你看到这篇文章, 阅读全文
posted @ 2014-11-19 17:06 RexWei 阅读(16183) 评论(0) 推荐(0) 编辑