function initialize(){set_include_path(get_include_path().PATH_SEPARATOR . "core/");set_include_path(get_include_path().PATH_SEPARATOR . "app/");set_i...
分类:
其他好文 时间:
2014-09-26 21:53:48
阅读次数:
158
1 import android.app.Activity; 2 import android.content.Intent; 3 import android.content.SharedPreferences; 4 import android.content.SharedPreference....
分类:
移动开发 时间:
2014-09-26 21:26:48
阅读次数:
426
import?java.io.File;
import?java.io.IOException;
import?android.content.Context;
import?android.content.Intent;
import?android.net.Uri;
import?android.webkit.MimeTypeMap;
public?class?Fil...
分类:
其他好文 时间:
2014-09-26 20:34:18
阅读次数:
165
intent.addFlags(Intent.FLAG_ACTIVITY_NO_ANIMATION);FLAG_ACTIVITY_BROUGHT_TO_FRONT 这个标志一般不是由程序代码设置的,如在launchMode中设置singleTask模式时系统帮你设定。FLAG_ACTIVITY_.....
分类:
其他好文 时间:
2014-09-26 18:54:28
阅读次数:
128
方法一:Intentintent=newIntent(); intent.setClassName(,);startActivity(intent);方法二:Intent i=new Intent;ComponentNamecom=newComponentName(,);i.setComponent...
分类:
移动开发 时间:
2014-09-26 18:45:48
阅读次数:
167
一.Intent的介绍Intent的中文意思是“意图,意向”,在Android中提供了Intent机制来协助应用间的交互与通讯,Intent负责对应用中一次操作的动作、动作涉及数据、附加数据进行描述,Android则根据此Intent的描述,负责找到对应的组件,将 Intent传递给调用的组件,并完...
分类:
其他好文 时间:
2014-09-26 02:54:38
阅读次数:
198
Intent跳转到系统应用中的拨号界面、联系人界面、短信界面及其他现在开发中的功能需要直接跳转到拨号、联系人、短信界面等等,查找了很多资料,自己整理了一下。首先,我们先看拨号界面,代码如下:Intent intent =new Intent();intent.setAction("android.i...
分类:
移动开发 时间:
2014-09-26 02:45:18
阅读次数:
247
Java代码/**1.ComponentNameComponentNamecn=newComponentName(getApplication(),"com.ck.SecondActivity");Intentintent=newIntent();intent.setComponent(cn);st...
分类:
其他好文 时间:
2014-09-26 01:55:38
阅读次数:
296
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
很简单,通过调用系统的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