![](https://img-blog.csdnimg.cn/20201014180756919.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Android
chiiis
这个作者很懒,什么都没留下…
展开
-
java.lang.RuntimeException: Stub!
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 "转载 2013-03-03 23:11:38 · 6367 阅读 · 0 评论 -
解决IllegalStateException: Can not perform this action after onSaveInstanceState
今天使用Fragment的时候,出现了这个错误IllegalStateException: Can not perform this action after onSaveInstanceState: E/AndroidRuntime(12747):Causedby:java.lang.IllegalStateException:Cannotperformthisactionafter...2013-02-26 22:27:00 · 173 阅读 · 0 评论 -
Android HttpURLConnection 与 HttpDefaultClient
HttpURLConnection 在java里面会发生能用,然而在Android里却不能用的情况! private class MyAuthenticator extends Authenticator { private String user = null; private String passwd = null; public MyAuthentica...原创 2013-04-18 19:50:16 · 87 阅读 · 0 评论 -
adb pull and push
adb push /path/to/local/file /mnt/sdcard/path/to/file adb pull /sdcard/foo.txt D:\bar.txt2013-03-20 16:35:39 · 93 阅读 · 0 评论 -
Android里查看/data/data目录下所有文件
1 Root your phone2 adb shell3 su4 chmod -R 777 /data5 Go to DDMS view in Eclipse2013-03-01 16:12:00 · 1285 阅读 · 0 评论 -
Windows下连接调试Asus Nexus 7 Tablet
Linux和mac下都可以直接连接,但是windows下必须下驱动。官网上的driver不管用。管用的是 https://drive.google.com/uc?id=0Bw8B2a85Qa1jSldjc3RIM3pkNWc然后在device manager里,Update Driver Software -> Browse for the driver software on your comp原创 2014-04-22 09:21:09 · 1942 阅读 · 0 评论 -
Android里查看/data/data目录下所有文件
1 Root your phone2 adb shell3 su4 chmod -R 777 /data5 Go to DDMS view in Eclipse原创 2013-03-01 16:12:53 · 2335 阅读 · 0 评论 -
android之intent的Flag详解
1. Task是包含一系列Activity的堆栈, 遵循先进后出原则. 2. Task默认行为: (1) 前提: Activity A和Activity B在同一个应用中. 操作: Activity A启动开僻Task堆栈(堆栈状态: A), 在Activity A中启动Activity B(堆栈状态: AB), 按下BACK返回键(堆栈状态: A)转载 2013-02-28 22:00:39 · 1211 阅读 · 0 评论 -
解决IllegalStateException: Can not perform this action after onSaveInstanceState
今天使用Fragment的时候,出现了这个错误 IllegalStateException: Can not perform this action after onSaveInstanceState:E/AndroidRuntime(12747): Caused by: java.lang.IllegalStateException: Can not perform th转载 2013-02-26 22:27:32 · 1175 阅读 · 0 评论 -
android之intent的Flag详解
1.Task是包含一系列Activity的堆栈,遵循先进后出原则.2.Task默认行为:(1)前提:ActivityA和ActivityB在同一个应用中.操作:ActivityA启动开僻Task堆栈(堆栈状态:A),在ActivityA中启动ActivityB(堆栈状态:AB),按下BACK返回键(堆栈状态:A).(2)前提:ActivityA和ActivityB在同一个应...2013-02-28 22:00:00 · 128 阅读 · 0 评论