intent的简单用法案例一传值:Intent intent=new Intent();intent.putExtra("extra", "这是页面一传来的值!");intent.setClass(Test_for_intentActivity.this, actpage2.class);start...
分类:
移动开发 时间:
2014-07-07 16:23:06
阅读次数:
322
1 Intent.ACTION_AIRPLANE_MODE_CHANGED; 2 //关闭或打开飞行模式时的广播 3 Intent.ACTION_BATTERY_CHANGED; 4 //充电状态,或者电池的电量发生变化 5 //电池的充电...
分类:
移动开发 时间:
2014-07-07 11:31:44
阅读次数:
245
首先感谢安卓巴士 和友盟办的这个活动,这个文章主要是讲Android开发的四大组件,本文主要分为一、Activity详解二、Service详解三、Broadcast Receiver详解四、Content Provider详解外加一个重要组件 intent的详解。文章有部分内容来自网络,本文是一个总...
分类:
移动开发 时间:
2014-07-03 09:37:06
阅读次数:
383
Intent可以分为两种:显式Intent和隐式Intent;显式Intent:通过组件名字字段指定目标组件;因为开发者通常不知道其它应用程序的组件名字,所以,显式Intent通常用于应用程序内部消息传递;例如:一个Activity启动从属的服务或启动一个同级别的Activity;隐式Intent:...
分类:
移动开发 时间:
2014-07-03 09:23:11
阅读次数:
149
IntentService就是一个后台处理类,它继承了Service并且对其封装。我们可以向他发送多个请求Intent。IntentService会把所有收到的Intent请求放到队列中。逐个处理,他会为每个请求创建一个单独的工作线程。当处理完队列中所有的Intent请求后。就会终止自己。在什么情况...
分类:
其他好文 时间:
2014-07-02 22:53:56
阅读次数:
196
本文介绍Android中Intent的各种常见作用。1 Intent.ACTION_MAINString: android.intent.action.MAIN标识Activity为一个程序的开始。比较常用。Input:nothingOutput:nothing 2 Intent.Action...
分类:
移动开发 时间:
2014-07-02 20:07:08
阅读次数:
211
An Intent is a messaging object you
can use to request an action from another app component. Although intents facilitate communication
between components in several ways, there are three fundament...
分类:
其他好文 时间:
2014-07-01 08:54:18
阅读次数:
414
不错的js千分位函数,适用于将金额每3位用“,”分隔/*for price using thousands separator */function fprice(s,n){ s = parseFloat((s + "").replace(/[^\d\.-]/g, "")).toFixed...
分类:
Web程序 时间:
2014-06-30 22:14:51
阅读次数:
340
An Intent is a messaging object you
can use to request an action from another app component. Although intents facilitate communication
between components in several ways, there are three fundament...
分类:
其他好文 时间:
2014-06-30 19:28:20
阅读次数:
225
Android系统原本就为手机设计,所以,在android系统中的任何App中,只要愿意,拨打指定电话非常方便。
核心就是使用Intent跳转,指定请求Action为Intent.ACTION_CALL 即可。
【源码下载】 http://www.code4apk.com/android-code/178
核心代码如下:
1
Intent
...
分类:
移动开发 时间:
2014-06-30 09:44:24
阅读次数:
246