直接上例子:public class URIMain { public static final String DEFAULT_BROKER_BIND_URL = "tcp://localhost:61616"; public static final String DEFAUL...
分类:
编程语言 时间:
2014-10-22 06:14:51
阅读次数:
136
============问题描述============ /* Intentintent=newIntent(); intent.setClass(MainActivity.this,Activity02.class); intent.setData(Uri.parse("Hello")); thi...
分类:
其他好文 时间:
2014-10-22 01:03:39
阅读次数:
160
============问题描述============ 我调用android系统的camera:Uriuri=Uri.fromFile(newFile(imagepath)); Intentintent=newIntent(MediaStore.ACTION_IMAGE_CAPTURE); int...
分类:
移动开发 时间:
2014-10-22 00:35:26
阅读次数:
223
这是因为没有加上Spring的版本号,加上就行了,如: http://www.springframework.org/schema/beans/spring-beans.xsd -3.2.2 http://www.springframework.org/sche...
分类:
其他好文 时间:
2014-10-21 17:31:59
阅读次数:
3217
在Silverlight中图片的设置方法有几种如上图在一个工程中有个images文件夹,buttons.xaml页面中的Image控件要引用一张图片第一种方法xaml:code: myImage.Source = new BitmapImage(new Uri("/SilverlightCreate...
分类:
Web程序 时间:
2014-10-21 15:19:05
阅读次数:
204
1.读取带电话号码的所有联系人。Android系统貌似没有直接取得带电话号码的联系人列表的功能。直接读取Contacts.CONTENT_URI只能读取联系人信息却得不到电话号码。如果先读取联系人列表,再通过联系人列表一个一个读取电话号码又非常慢,所以可以这样读:先从Phone.CONTENT_URI..
分类:
移动开发 时间:
2014-10-21 02:26:32
阅读次数:
350
============问题描述============ 代码如下packagecom.example.sysaction; importandroid.net.Uri;
importandroid.os.Build;
importandroid.os.Bundle;
importandroid.p...
分类:
移动开发 时间:
2014-10-20 23:16:54
阅读次数:
299
package com.mediatek.mobileportal;
import android.app.Activity;
//import android.content.Context;
import android.content.Intent;
import android.net.Uri;
import android.os.Bundle;
public ...
分类:
其他好文 时间:
2014-10-20 17:19:23
阅读次数:
190
系统打电话界面:Intent intent = new Intent();//系统默认的action,用来打开默认的电话界面 intent.setAction(Intent.ACTION_CALL);//需要拨打的号码intent.setData(Uri.parse("tel:"+i)); call...
分类:
移动开发 时间:
2014-10-20 16:57:07
阅读次数:
209
如果调用系统的图片接口:
Intent intent = new Intent(Intent.ACTION_PICK, android.provider.MediaStore.Images.Media.EXTERNAL_CONTENT_URI);
// intent.addCategory(Intent.CATEGORY_OPENABLE);
// intent.setType(...
分类:
其他好文 时间:
2014-10-20 11:53:04
阅读次数:
171