private void installApk(String fileUri) { Intent
intent = new Intent(Intent.ACTION_VIEW);
intent.setDataAndType(Uri.parse("file://" + fileUr...
分类:
移动开发 时间:
2014-05-26 17:36:26
阅读次数:
290
@Override public int onStartCommand(Intent intent,
int flags, int startId) {
System.out.println("---------->>onStartCommand2"); re...
分类:
移动开发 时间:
2014-05-26 17:33:56
阅读次数:
228
在用
时,出现了一些问题,困惑了我一个多月,现在从网友那边得到以下结论,让我豁然开朗,问题也迎刃而解。链接的onclick事件被先执行,其次是href属性下的动作(页面跳转,或
javascript 伪链接);假设链接中同时存在href与onclick,如果想让href属性下的动作不执行,oncl....
分类:
其他好文 时间:
2014-05-26 01:51:22
阅读次数:
230
发送短信的方法有两种方法可以实现发送短信,其一是使用intent-startActivity,URI数据格式为"smsto:num",调用的action为Intent.ACTION_SENDTO:Uri
uri = Uri.parse("smsto:5554");Intent it = new In...
分类:
移动开发 时间:
2014-05-26 00:37:31
阅读次数:
406
一、通过相机选图片:布局文件:代码:package
uk.ac.essex.camerademo1;import java.io.File;import android.app.Activity;import
android.content.Intent;import android.graphic...
分类:
移动开发 时间:
2014-05-26 00:30:43
阅读次数:
389
点击textview打开新的activity(1)MainActivity.javapackagecom.example.android_textview_opennewactivity;
importandroid.os.Bundle;
importandroid.app.Activity;
importandroid.content.Intent;
importandroid.text.SpannableString;
importandroid.text.Spanned;
importan..
分类:
移动开发 时间:
2014-05-25 21:00:42
阅读次数:
440
1.Struts
取代JSP中的控制功能,为系统添加独立的控制,采用Struts引入标签,实现JSP与后台JAVA代码的分离,JSP只负责显示,与struts.xml配合实现页面跳转
实现:接收请求,调用业务逻辑组件,返回HTTP响应 Struts中控制器由底层的一个FilterDispatcher...
分类:
编程语言 时间:
2014-05-25 20:03:59
阅读次数:
365
http://www.2cto.com/kf/201203/122910.htmlAndroid
SDK中有这样一个API:public abstract Intent getLaunchIntentForPackage (String
packageName)如果packageName存在返回入口...
分类:
移动开发 时间:
2014-05-25 11:46:36
阅读次数:
239
window.history.back(-1)
window.history.back();
window.history.forward()
window.history.go(-1)
javascript:history.go(-1)和javascript:history.back(-1)go(-1): 返回上一页, 原页面表单中的内容会丢失; back(-1): 返回上一页,...
分类:
Web程序 时间:
2014-05-25 09:36:56
阅读次数:
387
本篇文章来源于 Linux公社网站(www.linuxidc.com)
原文链接:http://www.linuxidc.com/Linux/2012-04/58732.htm一、传递List和List以下以传递List为例,发送List语法为:intent.putStringArrayListEx...
分类:
移动开发 时间:
2014-05-25 03:25:58
阅读次数:
264