码迷,mamicode.com
首页 >  
搜索关键字:Intent    ( 3334个结果
小猪的Android入门之路 Day 6
小猪的Android入门之路 Day 6 Android应用核心:Intent(意图) -----转载请注明出处:coder-pig 本节引言: 通过前面的学习中,我们都知道可以调用startActivity(intent)或者startActivityForResult(intent) 来启动一个新的Activity了,他们的参数都是Intent类型的实例,那么这个Intent是什么东西呢? 有...
分类:移动开发   时间:2014-08-12 19:02:04    阅读次数:234
6、二、App Components(应用程序组件):1、Intents and Intent Filters(意图和意图过滤器)
1、Intents and Intent Filters(意图和意图过滤器) 1.0、Intents and Intent Filters(意图和意图过滤器) AnIntentis a messaging object you can use to request an action from an...
分类:移动开发   时间:2014-08-12 18:36:24    阅读次数:422
调用Camera返回为空的分析及处理方法
前言 大家可能遇到了这样的情况,调用Camera,然后指定自定义的保存路径,结果返回的Intent为空。我们来分析一下原因。 分析 首先看Camera的部分逻辑,在源码中的Camera.java的doAttach()方法里面。   // First handle the no crop case -- just return the value. If the // caller sp...
分类:其他好文   时间:2014-08-12 17:30:54    阅读次数:276
调用系统邮箱客户端发送邮件到指定邮箱
Intent dataintent=new Intent(Intent.ACTION_SEND); dataintent.putExtra(Intent.EXTRA_EMAIL, to);//to为指定邮箱地址 dataintent.putExtra(Intent.EXTRA_TEXT,...
分类:其他好文   时间:2014-08-11 17:42:12    阅读次数:197
Android分享图文到朋友圈代码。
分享到微信朋友圈代码。不好用,最后选择了shareSdk。 private static void shareToTimeLine(File file) { Intent intent = new Intent(); ComponentName comp = new...
分类:移动开发   时间:2014-08-11 17:21:53    阅读次数:348
apk安装 setType data
Intent intent = new Intent(); intent.setAction("android.intent.action.VIEW"); intent.addCategory("android.intent.category.DEFAULT"); intent.setDataAndType(Uri.fromFile(t), "application/vnd.android.pac...
分类:其他好文   时间:2014-08-11 15:01:02    阅读次数:211
Andoid的Button+Intent(适合初学者)
自己刚学Android的时候在这上面花了不少时间,资料没少找。学习别人的“关键代码”,自己写起来不是缺这就是缺那的。希望后来的同学在这上面少浪费些时间。 其实很简单,就是用一个Android的Intent实现Button的页面跳转,单击图1的Button,进入图2 图1 图2 首先建立一个Android Application project,主类名为MainActivit...
分类:其他好文   时间:2014-08-10 21:34:10    阅读次数:376
[转载]android常用的API接口调用
原文地址:android常用的API接口调用作者:宋耀显示网页:Uri uri = Uri.parse("http://www.google.com"); Intent it = new Intent(Intent.ACTION_VIEW,uri); startActivity(it);显示地图.....
分类:移动开发   时间:2014-08-09 21:16:59    阅读次数:282
ImageView使用(适屏、缩放功能)
1、适屏提取手机的图片库,并且进行选择图片的功能:Button onClick:Intent intent = new Intent( Intent.ACTION_PICK, android.provider.MediaSt...
分类:其他好文   时间:2014-08-09 18:23:28    阅读次数:235
AsyncHandler
package com.ango.deskclock; import android.content.Context; import android.content.Intent; import android.os.Handler; import android.os.HandlerThread; /** * Helper class for managing the background...
分类:其他好文   时间:2014-08-09 15:55:18    阅读次数:201
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!