创建只激活一次的Alarm,可使用Set方法,给它指定一个Alarm类型、触发时间和一个要激活的pending Intent。 4种Alarm类型: ● RTC_WAKEUP:指定时间唤醒设备,并激活Pending intent ● RTC:指定时间点激活Pending ,但不会唤醒设备 ● ELA...
分类:
其他好文 时间:
2014-07-16 23:11:51
阅读次数:
216
intent的简单用法案例一传值:Intent intent=new Intent();intent.putExtra("extra", "这是页面一传来的值!");intent.setClass(Test_for_intentActivity.this, actpage2.class);start...
分类:
移动开发 时间:
2014-07-07 16:23:06
阅读次数:
322
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
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
转自:http://blog.sina.com.cn/s/blog_7309444701014u2d.html一、不需要返回值的跳转Intent intent=new Intent();intent.setClass(目前的acitivy.this, 目标activity.class);startA...
分类:
移动开发 时间:
2014-06-27 14:38:06
阅读次数:
225
上一节我以“计算男女生标准体重”为例详细介绍了如何使用Intent、Bundle等实现不同Activity之间数据的传递问题,本节将仍以“计算男女生标准体重”为例详细介绍如何利用startActivityForResult()实现数据的返回,即从第二页面返回第一页面。
一、目标
如下图,用户在第一个页面填写完数据后点击“计算”按钮,程序跳转到第二个页面,并显示计算结果。在用户点击第...
分类:
其他好文 时间:
2014-06-27 09:34:08
阅读次数:
210
我从昨天开始接触android开发的书籍,主要是国内写的一些案例教程,不拗口,所以不难读懂。这些书的结构一般是,android开发环境的搭建,基本组件:activity、service、broadcastreceiver、contentprovider以及intent几个核心组件的结构,andr.....
分类:
移动开发 时间:
2014-06-26 17:25:05
阅读次数:
245
1.基于消息的通信机制 Intent ---bundle ,extra数据类型有限,比如遇到不可序列化的数据Bitmap,InputStream,或者LinkedList链表等等数据类型就不太好用。2.利用static静态数据,public static成员变量;3.基于外部存储的传输,File/P...
分类:
移动开发 时间:
2014-06-26 17:05:25
阅读次数:
273