随笔分类 - 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
阅读全文
摘要:1 Root your phone2 adb shell3 su4 chmod -R 777 /data5 Go to DDMS view in Eclipse
阅读全文
摘要: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),在
阅读全文
摘要:今天使用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
阅读全文
浙公网安备 33010602011771号