Launcher3的主Activity是Launcher.java,在onCreate()方法中可以找到数据下载的入口。mModel 是类LauncherModel的引用。 在startLoader方法中可以看到,启动了一个名为LoaderTask的子线程。 可以看到,LoaderTask 类 实现 ...
分类:
其他好文 时间:
2017-08-17 18:30:17
阅读次数:
1354
假设不做不论什么处理。直接用网络载入图片在网速快的情况下可能没什么不好的感觉。可是假设使用移动流量或是网络不好的时候。问题就来了,要么用户会抱怨流量使用太多。要么抱怨图片载入太慢。如论从哪个角度出发,都不是好的体验!要提高用户体验,我们就要使用缓存。Android中数据缓存的方式有非常多,相关介绍的 ...
分类:
移动开发 时间:
2017-08-14 16:34:26
阅读次数:
274
set superuser in ubuntu: sudo passwd move taskbar to bottom: gsettings set com.canonical.Unity.Launcher launcher-position Bottom set shortcut on ubunt ...
分类:
系统相关 时间:
2017-08-13 14:19:10
阅读次数:
195
Intent intent = new Intent(Intent.ACTION_MAIN); intent.addCategory(Intent.CATEGORY_LAUNCHER); ComponentName cn = new ComponentName("com.example.timer"... ...
分类:
移动开发 时间:
2017-08-12 14:02:46
阅读次数:
181
Android核心分析之AMS App和AMS(SystemServer进程)还有zygote进程分属于三个独立的进程 App与AMS通过Binder进行IPC通信,AMS(SystemServer进程)与zygote通过Socket进行IPC通信。 打开一个APP Launcher Launche ...
分类:
移动开发 时间:
2017-08-06 23:00:12
阅读次数:
391
在MyEclipse中运行tomcat,tomcat闪退并且报以下错误。 java.lang.UnsupportedClassVersionError: org/apache/catalina/startup/Bootstrap : Unsupported major.minor version 5 ...
分类:
其他好文 时间:
2017-08-05 15:38:59
阅读次数:
131
怎样查看Eclipse是32位还是64位? 1、去Eclipse的安装文件夹,找到eclipse.ini 2、打开这个文件。寻找:launcher.library,我的机器上,在第二行 3、查看“plugins/org.eclipse.equinox.launcher.win32.win32.x86 ...
分类:
系统相关 时间:
2017-08-03 09:59:47
阅读次数:
233
Launcher系列目录: 一、android7.x Launcher3源代码解析(1)—启动流程 二、android7.x Launcher3源代码解析(2)—框架结构 三、android7.x Launcher3源代码解析(3)—workspace和allapps载入流程 前两篇博客分别对Lan ...
分类:
移动开发 时间:
2017-07-31 18:58:46
阅读次数:
807
项目开发中须要使用GridView批处理操作,多项选择。 可是GridView.setChoiceMode(GridView.CHOICE_MODE_MULTIPLE_MODAL)不兼容低版本号。 找解决方式。查看android sdk提供的demo里介绍的GridView多项选择的方法 publi ...
分类:
其他好文 时间:
2017-07-24 21:27:54
阅读次数:
203
首先,用pip install 和pip3 install安装时,报错:Fatal error in launcher: Unable to create process using '"' 查询资料,得知python2.7 与 python3.5共存时,要用以下命令: python2 -m pip ...
分类:
编程语言 时间:
2017-07-24 01:26:29
阅读次数:
287