疑难杂症汇总
horsttnann
这个作者很懒,什么都没留下…
展开
-
android 判断应用程序是否已安装
http://longshuai2007.blog.163.com/blog/static/142094414201221862010732///以twitter程序为例,假设twitter程序包名为“com.twitter.android”。这时候可用以下代码来判断是否被安装。 PackageInfo packageInfo; try转载 2014-04-29 15:15:50 · 430 阅读 · 0 评论 -
Android animation startOffset broken or buggy?
startOffset不起作用http://stackoverflow.com/questions/4014331/android-animation-startoffset-broken-or-buggy原创 2014-06-04 16:59:57 · 1182 阅读 · 0 评论 -
SVN错误:Attempted to lock an already-locked dir
http://www.blogjava.net/coderdream/archive/2008/05/27/203115.html出现这个问题后使用“清理”功能,如果还不行,就直接到上一级目录,再执行“清理”,然后再“更新”。有时候如果看到某个包里面的文件夹没有SVN的标志,直接用“Ctrl+Delete”手工删除,然后“清理”,最后“更新”或“提交”。 网络摘抄1转载 2014-04-25 10:26:35 · 349 阅读 · 0 评论 -
Toast工具,解决连续弹出toast以及toast不能全屏的问题
public class ToastUtil { private static final String TAG = ToastUtil.class.getSimpleName(); private ToastUtil() {} private static Toast mToast = null; public static final void showT原创 2014-04-23 14:17:55 · 1308 阅读 · 0 评论 -
Android 中 ScrollView滚动不到最底端的解决方法
http://www.linuxidc.com/Linux/2013-11/92199.htm转载 2014-04-21 18:26:00 · 1045 阅读 · 0 评论 -
如何防止android Toast重复显示
http://blog.csdn.net/yyingwei/article/details/8254495当Toast响应点击事件时,如果用户连续点击,就会导致多个Toast排队等待依次显示,从而感觉很不友好,这个时候可以用以下方法避免之:[java] view plaincopyprivate static Toast mToast = null;转载 2014-04-22 10:05:45 · 501 阅读 · 0 评论 -
【IntentService】IntentService的java.lang.InstantiationException错误
http://www.cnblogs.com/helloandroid/articles/2208154.html关于继承IntentService,构造函数需要注意一个地方,Eclipse默认生成的构造函数是 public MyIntentService(String name) { super(name);转载 2014-04-03 18:08:24 · 628 阅读 · 0 评论 -
【IntentService】 IntentService onHandleIntent 空指针
今天本打算写一个IntentService的小例子,但是报错了。04-03 18:19:53.849: W/dalvikvm(12857): threadid=1: thread exiting with uncaught exception (group=0x40015568)04-03 18:19:53.849: E/AndroidRuntime(12857): FATAL EXCEPT原创 2014-04-03 18:24:25 · 913 阅读 · 0 评论 -
【Exception】java.lang.ClassNotFoundException: android.view.fragment in loader dalvik.system.PathClass
java.lang.ClassNotFoundException: android.view.fragment in loader dalvik.system.PathClassLoaderI just solved this problem in Android API 8 machine (Samsung Galaxy S).Please change Activity原创 2014-04-02 17:03:30 · 1286 阅读 · 0 评论 -
Android icon vs logo
http://stackoverflow.com/questions/6735649/android-icon-vs-logoThe ActionBar will use the android:logo attribute of your manifest, if one is provided. That lets you use separate drawable r转载 2014-06-13 11:43:50 · 794 阅读 · 0 评论