这次主要实现设置安全号码的功能,即当发现手机SIM卡信息发生改变时,会自动给安全号码发送一条报警短信。主要包括选择联系人功能。涉及到的知识点包括:带返回值的Intent,ListView数据适配器。...
分类:
移动开发 时间:
2014-12-30 15:21:37
阅读次数:
251
Intent.setFlags()函数用法:Intent的常用Flag参数:FLAG_ACTIVITY_CLEAR_TOP:例如现在的栈情况为:A B C D 。D此时通过intent跳转到B,如果这个intent添加FLAG_ACTIVITY_CLEAR_TOP标记,则栈情况变为:A B。如果没有...
分类:
移动开发 时间:
2014-12-30 14:53:21
阅读次数:
202
从相册获取图片 在android应用中是运用得很多的一项技术了 其实很简单 使用intent就可以了刚敲了一个dome 睡觉之前还是分享一下把 1 6 7 8 13 17 18 主要看java代码把// 打开相机图片 public void take(View v) { In...
分类:
移动开发 时间:
2014-12-30 00:15:27
阅读次数:
138
Intent intent = new Intent(); intent.setClass(ErrorPageActive.this, LoginActive.class); startActivity(intent); 就这么简单,如果要把一个页面的参数带到另一个页面,则需...
分类:
移动开发 时间:
2014-12-29 22:51:52
阅读次数:
230
在接收消息广播的onReceive里,跳转到你要显示的界面。如:Intentintent=newIntent(arg0,MainActivity.class);
intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
arg0.startActivity(intent);在该activity的onCreate()方法里:super.onCreate(savedInstanceState);
getWindow(..
分类:
移动开发 时间:
2014-12-29 15:33:37
阅读次数:
162
Intent的用法大家比较熟悉了,可以借助它来启动活动,发送广播,启动服务等。在进行上述操作的时候,还可以在Intent中添加一些附加数据, 以达到传值的效果,比如在FirstActivity中添加如下代码
Intent intent=new Intent(HLActivity.this,SecondActivity.class);
intent.putExtra("string_data",...
分类:
其他好文 时间:
2014-12-29 13:52:06
阅读次数:
158
目前开发的app中需要发送邮件,所以需要调用android默认的邮件客户端,并需要添加多个邮件附件,我该通过哪个组件调用默认的客户端?用什么组件来支持多个附件的电子邮件?是通过下面的哪一个?(Intent.ACTION_SEND,Intent.ACTION_SENDTO,Intent.ACTION_...
分类:
移动开发 时间:
2014-12-29 08:51:31
阅读次数:
140
Google 文档中: An intent allows you to start an activity in another app by describing a simple action you'd like to perform (such as "view a map" or "ta....
分类:
其他好文 时间:
2014-12-28 22:09:48
阅读次数:
257
今天才发现原来可以直接调用系统自带的分享功能,之前都是集成友盟的,真是孤陋寡闻了啊!
不过调用系统的分享功能,支持的分享数目就看系统集成多少了,比如我的oppo的支持微信 QQ 新浪等!
关键代码:
// 启动分享发送的属性
Intent intent = new Intent(Intent.ACTION_SEND);
intent.setType("text/...
分类:
移动开发 时间:
2014-12-28 20:48:44
阅读次数:
204
Mainpackage com.lxt008;import android.app.Activity;import android.content.Context;import android.content.Intent;import android.os.Bundle;import androi...
分类:
移动开发 时间:
2014-12-28 15:31:33
阅读次数:
209