Tag Archives: intent

Intent间使用Serializable传递Object对象的方法

在Intent间传递Object对象的方法

1. 将类实现Serializable接口,本如我的类ServerClass.java

package com.zhai.dao;

import java.io.Serializable;

public class ServerClass implements Serializable {

    private static final long serialVersionUID = -6708650608486703053L;     private[......]

Read More

, , , Leave a comment

Android通过Intent调用另外一个自定义程序

调用另外一个自定义的程序

代码:

Intent intent = new Intent();            ComponentName componentName = new ComponentName(                    “com.foreverlove.us”,&[......]

Read More

, , Leave a comment

Android绝对好用的发送文件的intent,包括邮件发送附件

1.创建的一个文件

mZipFile = new File(Paths                                           [......]

Read More

, , , , Leave a comment

Android 使用Intent启动常用的应用与服务(转)

打开浏览器显示网页: 

Uri uri = Uri.parse("http://foreverlove.us");  Intent intent  = new Intent(Intent.ACTION_VIEW,uri);  startActivintenty(intent);

由地图参数显示地图: 

Uri uri = Uri.parse("geo:38.899533,-77.036476");  Intent intent = new Intent[......]

Read More

, , Leave a comment