随笔分类 -  Android

摘要:I recently tried to run my junit tests to ensure that I didn’t break anything after monkeying around with my code, and I ran into the following error:1Exception in thread "main" java.lang.RuntimeException: Stub!Here’s my code that runs my tests:12345678910111213publicclass RunTestSuite {pu 阅读全文
posted @ 2013-03-03 23:11 WingWing111 阅读(3104) 评论(0) 推荐(0)
摘要:1 Root your phone2 adb shell3 su4 chmod -R 777 /data5 Go to DDMS view in Eclipse 阅读全文
posted @ 2013-03-01 16:12 WingWing111 阅读(794) 评论(0) 推荐(0)
摘要:1.Task是包含一系列Activity的堆栈,遵循先进后出原则.2.Task默认行为:(1)前提:ActivityA和ActivityB在同一个应用中.操作:ActivityA启动开僻Task堆栈(堆栈状态:A),在ActivityA中启动ActivityB(堆栈状态:AB),按下BACK返回键(堆栈状态:A).(2)前提:ActivityA和ActivityB在同一个应用中,应用名称为"TaskOne应用".操作:在Launcher中单击"TaskOne应用"图标,ActivityA启动开僻Task堆栈,命名为TaskA(TaskA堆栈状态:A),在 阅读全文
posted @ 2013-02-28 22:00 WingWing111 阅读(359) 评论(0) 推荐(0)
摘要:今天使用Fragment的时候,出现了这个错误IllegalStateException: Can not perform this action after onSaveInstanceState:E/AndroidRuntime(12747):Causedby:java.lang.IllegalStateException:CannotperformthisactionafteronSaveInstanceStateatandroid.support.v4.app.FragmentManagerImpl.checkStateLoss(FragmentManager.java:1314)at 阅读全文
posted @ 2013-02-26 22:27 WingWing111 阅读(153) 评论(0) 推荐(0)