摘要: 一、工具安装 1.AmaterasUML离线安装 ->下载AmaterasUML_1.3.4.zip,如地址:http://iij.dl.osdn.jp/amateras/56447/AmaterasUML_1.3.4.zip ->解压出3个jar包到eclipse\plugins目录下(... 阅读全文
posted @ 2016-01-06 14:43 洱海 阅读(1318) 评论(0) 推荐(0) 编辑
摘要: 近期在看Launcher的源码,应该能学到点什么,点点滴滴的,想到什么就些什么首先得有一套能用的代码https://github.com/callerge/AtoZLauncher 看README就知道怎么做了,声明Launcher,去掉无效权限,加版本17-201.onKeyDown里面有一个这样... 阅读全文
posted @ 2015-12-25 18:11 洱海 阅读(159) 评论(0) 推荐(0) 编辑
只有注册用户登录后才能阅读该文。 阅读全文
posted @ 2015-12-23 14:24 洱海 阅读(13) 评论(0) 推荐(0) 编辑
摘要: 假设一个应用程序有多个ActivityMainActivity: <intent-filter> <action android:name="android.intent.action.MAIN" /> <category android:name="android.intent.category. 阅读全文
posted @ 2015-12-22 17:21 洱海 阅读(171) 评论(0) 推荐(0) 编辑
摘要: 需求:将手机中的所有应用图标,以应用名称命名,后缀为jpg,存放在SD卡中思路:1.通过getPackageManager().getInstalledPackages(0)获取已安装的包的信息PackageInfo2.通过包信息PackageInfo获取包名、版本名、版本号、当然还有应用图标Dra... 阅读全文
posted @ 2015-12-01 17:35 洱海 阅读(4706) 评论(0) 推荐(0) 编辑
摘要: 谈到广播,必然会联想到观察者模式 注册广播就相当于主题的registerObserver 取消广播就相当于主题的removeObserver 发送广播就相当于主题的notifyObserver 接收广播就相当于观察者的update 至于什么是观察者模式,这篇文章写得很好啊:http://blog.c 阅读全文
posted @ 2015-11-23 19:57 洱海 阅读(246) 评论(0) 推荐(0) 编辑
摘要: 方式一:加载简单的文本注意:ListView也是一个控件,所以像button一样加载即可,它不能直接接受数组数据,而是要通过一个适配器Adapter,常用ArrayAdapter 1 public class MainActivity extends Activity { 2 3 @Ove... 阅读全文
posted @ 2015-11-23 15:07 洱海 阅读(233) 评论(0) 推荐(0) 编辑
摘要: 生命周期:原:http://blog.csdn.net/w709835509/article/details/7655240 1 import android.app.Activity; 2 import android.os.Bundle; 3 4 public class MainActivi... 阅读全文
posted @ 2015-11-23 09:33 洱海 阅读(193) 评论(0) 推荐(0) 编辑
摘要: 在需要自行耗时操作的时候,且希望操作时不被中断,可以加个小进度 1 public class MainActivity extends Activity { 2 3 4 5 private ProgressDialog progressDialog; 6 7 // .... 阅读全文
posted @ 2015-11-20 16:37 洱海 阅读(400) 评论(0) 推荐(0) 编辑
摘要: 1.首先需要下载高德的jar包,放在libs目录下2.LocationUtill.java 1 import android.content.Context; 2 3 import com.amap.api.location.AMapLocationListener; 4 import com.a... 阅读全文
posted @ 2015-11-20 16:04 洱海 阅读(799) 评论(0) 推荐(0) 编辑
.First { margin: 10px 0; font-family: 'Microsoft Yahei'; text-align: left; padding: 6px 20px; color: #fff; background: #55895B; font-size: 20px; border-radius: 4px; clear: both; } .Second { margin: 10px 0; font-family: 'Microsoft Yahei'; padding: 6px 20px; background: #93C8A2; color: white; font-size: 18px; border-radius: 4px; clear: both; } .Third { margin: 10px 0; padding: 6px 20px; font-family: 'Microsoft Yahei'; margin: 15px 0; font-size: 16px; color: black; background: #C6EFD2; border-radius: 4px; clear: both; } .note { margin: 10px 0; padding: 15px 20px 15px 60px; background: #FCFAA9 url('http://images.cnblogs.com/cnblogs_com/libaoheng/305804/o_yellow-pin.png') no-repeat 20px 0; font-size: 15px; font-family: 'Microsoft Yahei'; box-shadow: 0 0 8px #aaa; clear: both; } .demo { text-align: left; padding: 6px 20px; overflow: auto; border-radius: 4px; background: orange; color: #fff; font-size: 16px; clear: both; } .cnblogs_Highlighter { border: solid 1px #ccc; clear: both; } .cnblogs_code { background: #EFFFF4; border: solid 0px #939393; font-size: 14px; clear: both; padding: 10px 20px; } .cnblogs_code pre { font-size: 14px; } .cnblogs_code span { font-family: Courier New; font-size: 14px; }