码迷,mamicode.com
首页 >  
搜索关键字:Intent    ( 3334个结果
主动通知Android系统图库进行更新
项目中遇到调用图库进行图片的选择,因为不能主动及时更新,遂实现代码调用实现主动及时更新。废话不多刷,看代码。方式一,发送一个广播,sendBroadcast(new Intent(Intent.ACTION_MEDIA_SCANNER_SCAN_FILE,Uri.parse("file://"+fi...
分类:移动开发   时间:2014-10-30 11:20:26    阅读次数:201
Android-2电话应用,短信应用
Android的核心组件 1.Viiew :界面 ,组织UI控件 2.Intent :意图,支持组件之间的通信 3.Activity:处理界面与UI互动 4.Content Provider:存储共享数据 5.IntentReceiver:接收信息及时间处理 6.Service:后台服务(如硬件与驱动的服务 ) 7.Notification:消息与通信...
分类:移动开发   时间:2014-10-30 09:35:57    阅读次数:337
Android中Intent详解(一)
Intent是一种消息传递机制,它可以在应用程序内使用,也可以在应用程序间使用,主要用途分为: 1.使用类名显示的启动一个特定的Activity或Service 2.启动Activity或Service来执行一个动作的Intent,通常需要使用特定的数据,或者对特定的数据执行动作 3.广播某个事件已经发生...
分类:移动开发   时间:2014-10-29 12:59:12    阅读次数:264
安卓数据传递之---putextra与putextras
一、public Intent putExtra (String name, double[] value)  设置方法 intent.putExtra("aaa", "bbbb");  获取方法 this.getIntent().getCharSequenceExtra("aaa")  二、public Intent putExtras (Bundle extras)  ...
分类:移动开发   时间:2014-10-29 10:55:56    阅读次数:299
获取能响应一个Intent的所有组件信息。
1、每一个app安装后,它的mainfest文件都会被注册到系统里面,类似如windows的注册表。2、当我们想要知道某一个Intent,有哪些类型的组件能响应它,可以使用PackageManager 的query....或者resolve***方法,就可以得到组件的信息ResolveInfo。3、...
分类:其他好文   时间:2014-10-29 00:09:04    阅读次数:212
Android broadcast
发送广播并且接受,发送两个广播 Intent intent = new Intent(); intent.setAction("com.wxq.CUSTOM_INTENT"); sendBroadcast(intent); intent.setAction("com.wxq.test2"); sendBroadcast(intent); 接收方 @Override p...
分类:移动开发   时间:2014-10-28 21:52:32    阅读次数:202
android学习三(Intent)
Intent的使用...
分类:移动开发   时间:2014-10-28 21:48:00    阅读次数:265
A Tour of Go Interfaces are satisfied implicitly
A type implements an interface by implementing the methods.There is no explicit declaration of intent.Implicit interfaces decouple implementation pack...
分类:其他好文   时间:2014-10-28 21:29:07    阅读次数:232
Android 显示意图和隐式意图的区别
意图在android的应用开发中是很重要的,明白了意图的作用和使用后,对开发会有很大帮助。如果没有把意图搞懂,以后开发应用会感觉缺些什么。        意图的作用:        1、激活组件         2、携带数据        3、意图的匹配(运用到隐式意图)         android基本的设计理念是鼓励减少组件间的耦合,因此android提供了Intent(意图)...
分类:移动开发   时间:2014-10-28 17:46:12    阅读次数:252
广播发送者&广播接收者介绍
1.广播接收者 广播接收者简单地说就是接收广播意图的Java类,此Java类继承BroadcastReceiver类,重写: public void onReceive(Context context,Intent intent),其中intent可以获得传递的数据; 广播意图就是通过...
分类:其他好文   时间:2014-10-28 12:24:37    阅读次数:219
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!