转自:http://www.jb51.net/article/37227.htm本篇文章是对activity之间数据传递的方法进行了详细的分析介绍,需要的朋友参考下1 基于消息的通信机制 Intent--------boudle,extra用这种简单的形式,一般而言传递一些简单的类型是比较容易的,如...
分类:
其他好文 时间:
2014-06-21 10:32:58
阅读次数:
309
main.xml item.xml 主要代码public class MainActivity extends Activity {private ListView listView; @Override protected void onCreate(Bundle s...
分类:
移动开发 时间:
2014-06-21 08:51:44
阅读次数:
307
intent学习---nothingcpd 简要介绍,intent就是activity之间通信的介质,通过intent可以进行activity的唤起,数据的传输等,总之要进行多个activity交互,必须学会intent,本章只是一个很简单的intent,后面会陆续更新复杂的应用,由于我的电脑比较....
分类:
移动开发 时间:
2014-06-18 13:05:57
阅读次数:
189
UIImage这个对象是swift中的图像类,可以使用UIImageView加载显示到View上。以下是UIImage的构造函数: init(named name: String!) -> UIImage // load from main bundle init(named name:...
分类:
其他好文 时间:
2014-06-18 12:49:16
阅读次数:
244
android应用程序的三大组件——Activities、Services、Broadcast Receiver,通过消息触发,这个消息就是Intent,中文又翻译为"意图"(我感觉读着不顺畅,还是读英文)。我们可以通过Intent去启动三大组件,并且通过Intent携带数据到其他组件中。本文来看一下怎么使用Intent启动组件,以及Intent的过滤规则。
Intent对象
首先来看...
分类:
其他好文 时间:
2014-06-18 12:29:10
阅读次数:
271
MainActivity如下:
package cc.cc;
import java.util.Calendar;
import java.util.Locale;
import android.os.Bundle;
import android.app.Activity;
import android.app.AlarmManager;
import android.app.PendingI...
分类:
移动开发 时间:
2014-06-18 06:13:43
阅读次数:
268
package com.qianhua.ui;
002
003
import android.app.Activity;
004
import android.content.Intent;
005
import and...
分类:
其他好文 时间:
2014-06-17 23:02:36
阅读次数:
350
android.permission.ACCESS_CHECKIN_PROPERTIES 允许读写访问"properties"表在checkin数据库中,改值可以修改上传( Allows read/write access to the "properties" table in the checkin database, to change values that get uploaded)
...
分类:
移动开发 时间:
2014-06-17 21:58:57
阅读次数:
437
和HandlerThread一样,IntentService也是Android替我们封装的一个Helper类,用来简化开发流程的。接下来分析源码的时候
你就明白是怎么回事了。IntentService是一个按需处理用Intent表示的异步请求的基础Service类,本质上还是Android Service。
客户端通过Context#startService(Intent);这样的代码来发起一...
分类:
其他好文 时间:
2014-06-17 18:56:21
阅读次数:
307