码迷,mamicode.com
首页 >  
搜索关键字:Intent    ( 3334个结果
Intent的简介以及属性的详解
一.Intent的介绍Intent的中文意思是“意图,意向”,在Android中提供了Intent机制来协助应用间的交互与通讯,Intent负责对应用中一次操作的动作、动作涉及数据、附加数据进行描述,Android则根据此Intent的描述,负责找到对应的组件,将 Intent传递给调用的组件,并完...
分类:其他好文   时间:2014-09-26 02:54:38    阅读次数:198
android 调用系统界面intent
Intent跳转到系统应用中的拨号界面、联系人界面、短信界面及其他现在开发中的功能需要直接跳转到拨号、联系人、短信界面等等,查找了很多资料,自己整理了一下。首先,我们先看拨号界面,代码如下:Intent intent =new Intent();intent.setAction("android.i...
分类:移动开发   时间:2014-09-26 02:45:18    阅读次数:247
Intent的各种常见作用
1 Intent.ACTION_MAINString: android.intent.action.MAIN标识Activity为一个程序的开始。比较常用。Input:nothingOutput:nothing2 Intent.Action_CALLStirng: android.intent.ac...
分类:其他好文   时间:2014-09-26 01:14:58    阅读次数:349
Android打开各种类型的文件方法总结
很简单,通过调用系统的intent,我们可以打开各种文件,不熟悉的朋友可以了解下action、datatype、uri的相关知识。通用方法如下:public static Intent openFile(String filePath){ File file = new File(filePath); if(!file.exists()) return null; /* 取得扩展名...
分类:移动开发   时间:2014-09-26 00:47:18    阅读次数:306
Android学习笔记——Intents 和 Intent Filters(二)
本人邮箱:JohnTsai.Work@gmail.com,欢迎交流讨论。 欢迎转载,转载请注明网址:http://www.cnblogs.com/JohnTsai/p/3993488.html知识点: 继续昨天的Intents 和 Intent Filters的学习 组成一个Intent(Buil....
分类:移动开发   时间:2014-09-25 21:54:47    阅读次数:315
Android相机、相册获取图片显示(压缩)并保存到SD卡
做过类似需求的同学都知道,在Activity中通过如下代码可以启动相机,然后在重写的onActivityResult方法中可以获取到返回的照片数据:Intent openCameraIntent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE);startA...
分类:移动开发   时间:2014-09-25 18:21:37    阅读次数:334
使用Intent和IntentFilter进行通信
Intent的中文翻译就是“意图”。Android使用Intent来封装程序的调用意图。使用intent会提供统一的编程模型,而且能起到解耦合的作用。使用Intent对象启动系统组件的方法:startActivity(Intent intent)startActivityForResult(Inte...
分类:其他好文   时间:2014-09-25 17:51:07    阅读次数:212
scrollview gridview
package com.fangdamai.salewinner.ui.customer;import android.content.Context;import android.content.Intent;import android.os.Bundle;import android.view...
分类:其他好文   时间:2014-09-25 15:50:09    阅读次数:246
Android学习笔记——Intents 和 Intent Filters(一)
本人邮箱:JohnTsai.Work@gmail.com,欢迎交流讨论。 欢迎转载,转载请注明网址:http://www.cnblogs.com/JohnTsai/p/3991792.html知识点:Intents 和 Intent Filters的定义和作用以及用法。IntentIntent这.....
分类:移动开发   时间:2014-09-25 01:56:19    阅读次数:344
android intent pick
(一)、调用本地联系人: Intentintent=newIntent(Intent.ACTION_PICK);intent.setType(ContactsContract.Contacts.CONTENT_TYPE);startActivityForResult(intent,PICK_CONT...
分类:移动开发   时间:2014-09-24 22:23:37    阅读次数:198
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!