
Android Intent
文章平均质量分 67
fyfcauc
这个作者很懒,什么都没留下…
展开
-
Android开发——Intent中的各种FLAG
From: http://blog.youkuaiyun.com/guiwang2008/article/details/21184383Android中发送Intent的时候有很多的标志位可以使用。是在做各种各样UI跳转时,熟悉这些标志的作用会给开发过程带来很大的遍历,这几天找时间把这些Flag都看了一遍,顺便翻译了一下,为便于理解,在翻译的时候也加了一些说明性的东西,供自己以后参考用,顺便分享出来转载 2015-01-29 17:19:26 · 470 阅读 · 0 评论 -
android下载安装APK
代码安装apkIntent i = new Intent(Intent.ACTION_VIEW); String filePath = "/sdcard/XXX.apk"; i.setDataAndType(Uri.parse("file://" + filePath),"application/vnd.android.package-archive"); context.star转载 2015-01-13 11:41:46 · 680 阅读 · 0 评论 -
Android 自定义action
From: http://blog.youkuaiyun.com/elfylin/article/details/6001460一个action就是一个字符串,什么名字都无所谓。 自定义action的目的,就是界面A发起一个包含action的Intent,界面b响应这个action,进而启动起来。 这样的好处就是只要保持B的intent不变,即使B的类名改变,也不需要更改A的代码,尤其转载 2015-02-11 17:05:15 · 540 阅读 · 0 评论 -
android 安装 APK
/** * (Usually optional) Set an explicit application package name that limits * the components this Intent will resolve to. If left to the default * value of null, all components in原创 2015-02-16 15:04:15 · 395 阅读 · 0 评论 -
Wallpaper模块(一)
Wallpaper模块(1)Picker是一个用于从交互的选取图片类的Activity中获得所选图片的类. Tool.对外开放Listen接口,取图成功和取图失败.Picker因为定位是一个tool,因此设计为单例模式,load Class 即生成实例. early-init.因为Picker其实只在WallPaper模块被使用,因此在设计的时候没有考虑pendin原创 2015-03-13 15:28:10 · 818 阅读 · 0 评论 -
Download模块 (十一)
Download模块 (十一)DownloadService,该service是为了实现APP切换到后台仍可以下载而实现的, 这也是Android所提倡的一种后台处理方式。该Service因为会和MainActivity这一端频繁交互,因此设计成为了bind的service.而同时在系统的Notification栏中也会有复数个不可撤销的Notification与此Servic原创 2015-03-01 19:39:42 · 953 阅读 · 0 评论 -
Android中pendingIntent的深入理解
pendingIntent字面意义:等待的,未决定的Intent。要得到一个pendingIntent对象,使用方法类的静态方法 getActivity(Context, int, Intent, int),getBroadcast(Context, int, Intent, int),getService(Context, int, Intent, int) 分别对应着Inte转载 2014-11-23 14:41:57 · 432 阅读 · 0 评论 -
Download模块 (六)
Download模块 (六)DownloadManager是一个重M+轻C的角色。内部维护了所有Download的信息聚合,并围绕此信息聚合提供一些查询类的功能,也有一些C操作。DownloadManager 是一个单例模式的类,类载入时直接初始化一个sInstance.DownloadManager其实也可以完全设计为一个static类,不过从其语义和定位考虑,一个man原创 2015-02-27 22:18:45 · 550 阅读 · 0 评论 -
Download模块 (十六)
Download模块 (十六)Notification类算是一个比较独立的模块以及一个工具性的C+V角色比较好>。所有方法都是static的,类实际搞成一个static的都可以。或者单例模式。构造函数直接privateNotification内部没有实现什么listener,设计的时候不想让Nofticiation主动感知Download,而是应该作为一个被动的工具被调用。原创 2015-03-03 16:28:12 · 572 阅读 · 0 评论