- 浏览: 129528 次
- 性别:
- 来自: 北京
-
最新评论
-
yangtaoxf126.com:
public class SimpleJDBC {
publ ...
oracle的sys用户怎么通过jdbc连接
显示网页
Java代码
Uri uri = Uri.parse(“http://www.2phone8.com.cn”);
Intent it = new Intent(Intent.ACTION_VIEW, uri);
startActivity(it);
Uri uri = Uri.parse(“http://www.2phone8.com.cn”); Intent it = new Intent(Intent.ACTION_VIEW, uri); startActivity(it);
显示地图
Java代码
Uri uri = Uri.parse(“geo:38.899533,-77.036476″);
Intent it = new Intent(Intent.ACTION_VIEW, uri);
startActivity(it);
//其他 geo URI 範例
//geo:latitude,longitude
//geo:latitude,longitude?z=zoom
//geo:0,0?q=my+street+address
//geo:0,0?q=business+near+city
//google.streetview:cbll=lat,lng&cbp=1,yaw,,pitch,zoom&mz=mapZoom
Uri uri = Uri.parse(“geo:38.899533,-77.036476″); Intent it = new Intent(Intent.ACTION_VIEW, uri); startActivity(it); //其他 geo URI 範例 //geo:latitude,longitude //geo:latitude,longitude?z=zoom //geo:0,0?q=my+street+address //geo:0,0?q=business+near+city //google.streetview:cbll=lat,lng&cbp=1,yaw,,pitch,zoom&mz=mapZoom
拨打电话
Java代码
//叫出撥號程式
Uri uri = Uri.parse(“tel:0800000123″);
Intent it = new Intent(Intent.ACTION_DIAL, uri);
startActivity(it);
//直接打電話出去
Uri uri = Uri.parse(“tel:0800000123″);
Intent it = new Intent(Intent.ACTION_CALL, uri);
startActivity(it);
//用這個,要在 AndroidManifest.xml 中,加上
//
//叫出撥號程式 Uri uri = Uri.parse(“tel:0800000123″); Intent it = new Intent(Intent.ACTION_DIAL, uri); startActivity(it); //直接打電話出去 Uri uri = Uri.parse(“tel:0800000123″); Intent it = new Intent(Intent.ACTION_CALL, uri); startActivity(it); //用這個,要在 AndroidManifest.xml 中,加上 //
发送SMS/MMS
Java代码
//需写号码SMS
Intent it = new Intent(Intent.ACTION_VIEW);
it.putExtra(“sms_body”, “The SMS text”);
it.setType(“vnd.android-dir/mms-sms”);
startActivity(it);
//发送SMS
Uri uri = Uri.parse(“smsto:0800000123″);
Intent it = new Intent(Intent.ACTION_SENDTO, uri);
it.putExtra(“sms_body”, “The SMS text”);
startActivity(it);
//发送MMS
Uri uri = Uri.parse(“content://media/external/images/media/23″);
Intent it = new Intent(Intent.ACTION_SEND);
it.putExtra(“sms_body”, “some text”);
it.putExtra(Intent.EXTRA_STREAM, uri);
it.setType(“image/png”);
startActivity(it);
//需写号码SMS Intent it = new Intent(Intent.ACTION_VIEW); it.putExtra(“sms_body”, “The SMS text”); it.setType(“vnd.android-dir/mms-sms”); startActivity(it); //发送SMS Uri uri = Uri.parse(“smsto:0800000123″); Intent it = new Intent(Intent.ACTION_SENDTO, uri); it.putExtra(“sms_body”, “The SMS text”); startActivity(it); //发送MMS Uri uri = Uri.parse(“content://media/external/images/media/23″); Intent it = new Intent(Intent.ACTION_SEND); it.putExtra(“sms_body”, “some text”); it.putExtra(Intent.EXTRA_STREAM, uri); it.setType(“image/png”); startActivity(it);
发送EMAIL
Java代码
Uri uri = Uri.parse(“mailto:xxx@abc.com”);
Intent it = new Intent(Intent.ACTION_SENDTO, uri);
startActivity(it);
Intent it = new Intent(Intent.ACTION_SEND);
it.putExtra(Intent.EXTRA_EMAIL, “me@abc.com”);
it.putExtra(Intent.EXTRA_TEXT, “The email body text”);
it.setType(“text/plain”);
startActivity(Intent.createChooser(it, “Choose Email Client”));
Intent it=new Intent(Intent.ACTION_SEND);
String[] tos={“me@abc.com”};
String[] ccs={“you@abc.com”};
it.putExtra(Intent.EXTRA_EMAIL, tos);
it.putExtra(Intent.EXTRA_CC, ccs);
it.putExtra(Intent.EXTRA_TEXT, “The email body text”);
it.putExtra(Intent.EXTRA_SUBJECT, “The email subject text”);
it.setType(“message/rfc822″);
startActivity(Intent.createChooser(it, “Choose Email Client”));
//传送附件
Intent it = new Intent(Intent.ACTION_SEND);
it.putExtra(Intent.EXTRA_SUBJECT, “The email subject text”);
it.putExtra(Intent.EXTRA_STREAM, “file:///sdcard/mysong.mp3″);
sendIntent.setType(“audio/mp3″);
startActivity(Intent.createChooser(it, “Choose Email Client”));
Uri uri = Uri.parse(“mailto:xxx@abc.com”); Intent it = new Intent(Intent.ACTION_SENDTO, uri); startActivity(it); Intent it = new Intent(Intent.ACTION_SEND); it.putExtra(Intent.EXTRA_EMAIL, “me@abc.com”); it.putExtra(Intent.EXTRA_TEXT, “The email body text”); it.setType(“text/plain”); startActivity(Intent.createChooser(it, “Choose Email Client”)); Intent it=new Intent(Intent.ACTION_SEND); String[] tos={“me@abc.com”}; String[] ccs={“you@abc.com”}; it.putExtra(Intent.EXTRA_EMAIL, tos); it.putExtra(Intent.EXTRA_CC, ccs); it.putExtra(Intent.EXTRA_TEXT, “The email body text”); it.putExtra(Intent.EXTRA_SUBJECT, “The email subject text”); it.setType(“message/rfc822″); startActivity(Intent.createChooser(it, “Choose Email Client”)); //传送附件 Intent it = new Intent(Intent.ACTION_SEND); it.putExtra(Intent.EXTRA_SUBJECT, “The email subject text”); it.putExtra(Intent.EXTRA_STREAM, “file:///sdcard/mysong.mp3″); sendIntent.setType(“audio/mp3″); startActivity(Intent.createChooser(it, “Choose Email Client”));
播放多媒体
Java代码
Intent it = new Intent(Intent.ACTION_VIEW);
Uri uri = Uri.parse(“file:///sdcard/song.mp3″);
it.setDataAndType(uri, “audio/mp3″);
startActivity(it);
Uri uri = Uri.withAppendedPath(MediaStore.Audio.Media.INTERNAL_CONTENT_URI, “1″);
Intent it = new Intent(Intent.ACTION_VIEW, uri);
startActivity(it);
Intent it = new Intent(Intent.ACTION_VIEW); Uri uri = Uri.parse(“file:///sdcard/song.mp3″); it.setDataAndType(uri, “audio/mp3″); startActivity(it); Uri uri = Uri.withAppendedPath(MediaStore.Audio.Media.INTERNAL_CONTENT_URI, “1″); Intent it = new Intent(Intent.ACTION_VIEW, uri); startActivity(it);
Android Market
Java代码
//寻找应用
Uri uri = Uri.parse(“market://search?q=pname:pkg_name”);
Intent it = new Intent(Intent.ACTION_VIEW, uri);
startActivity(it);
//where pkg_name is the full package path for an application
//显示应用详细列表
Uri uri = Uri.parse(“market://details?id=app_id”);
Intent it = new Intent(Intent.ACTION_VIEW, uri);
startActivity(it);
//where app_id is the application ID, find the ID
//by clicking on your application on Market home
//page, and notice the ID from the address bar
//寻找应用 Uri uri = Uri.parse(“market://search?q=pname:pkg_name”); Intent it = new Intent(Intent.ACTION_VIEW, uri); startActivity(it); //where pkg_name is the full package path for an application //显示应用详细列表 Uri uri = Uri.parse(“market://details?id=app_id”); Intent it = new Intent(Intent.ACTION_VIEW, uri); startActivity(it); //where app_id is the application ID, find the ID //by clicking on your application on Market home //page, and notice the ID from the address bar
卸载应用
Java代码
Uri uri = Uri.fromParts(“package”, strPackageName, null);
Intent it = new Intent(Intent.ACTION_DELETE, uri);
startActivity(it);
Uri uri = Uri.fromParts(“package”, strPackageName, null); Intent it = new Intent(Intent.ACTION_DELETE, uri); startActivity(it);
安装应用
Java代码
Uri uri = Uri.parse(“url_of_apk_file”);
Intent it = new Intent(Intent.ACTION_VIEW, uri);
it.setData(uri);
it.addFlags(Intent.FLAG_GRANT_READ_URI_PERMISSION);
it.setClassName(“com.android.packageinstaller”,
“com.android.packageinstaller.PackageInstallerActivity”);
startActivity(it);
//make sure the url_of_apk_file is readable for all users
Java代码
Uri uri = Uri.parse(“http://www.2phone8.com.cn”);
Intent it = new Intent(Intent.ACTION_VIEW, uri);
startActivity(it);
Uri uri = Uri.parse(“http://www.2phone8.com.cn”); Intent it = new Intent(Intent.ACTION_VIEW, uri); startActivity(it);
显示地图
Java代码
Uri uri = Uri.parse(“geo:38.899533,-77.036476″);
Intent it = new Intent(Intent.ACTION_VIEW, uri);
startActivity(it);
//其他 geo URI 範例
//geo:latitude,longitude
//geo:latitude,longitude?z=zoom
//geo:0,0?q=my+street+address
//geo:0,0?q=business+near+city
//google.streetview:cbll=lat,lng&cbp=1,yaw,,pitch,zoom&mz=mapZoom
Uri uri = Uri.parse(“geo:38.899533,-77.036476″); Intent it = new Intent(Intent.ACTION_VIEW, uri); startActivity(it); //其他 geo URI 範例 //geo:latitude,longitude //geo:latitude,longitude?z=zoom //geo:0,0?q=my+street+address //geo:0,0?q=business+near+city //google.streetview:cbll=lat,lng&cbp=1,yaw,,pitch,zoom&mz=mapZoom
拨打电话
Java代码
//叫出撥號程式
Uri uri = Uri.parse(“tel:0800000123″);
Intent it = new Intent(Intent.ACTION_DIAL, uri);
startActivity(it);
//直接打電話出去
Uri uri = Uri.parse(“tel:0800000123″);
Intent it = new Intent(Intent.ACTION_CALL, uri);
startActivity(it);
//用這個,要在 AndroidManifest.xml 中,加上
//
//叫出撥號程式 Uri uri = Uri.parse(“tel:0800000123″); Intent it = new Intent(Intent.ACTION_DIAL, uri); startActivity(it); //直接打電話出去 Uri uri = Uri.parse(“tel:0800000123″); Intent it = new Intent(Intent.ACTION_CALL, uri); startActivity(it); //用這個,要在 AndroidManifest.xml 中,加上 //
发送SMS/MMS
Java代码
//需写号码SMS
Intent it = new Intent(Intent.ACTION_VIEW);
it.putExtra(“sms_body”, “The SMS text”);
it.setType(“vnd.android-dir/mms-sms”);
startActivity(it);
//发送SMS
Uri uri = Uri.parse(“smsto:0800000123″);
Intent it = new Intent(Intent.ACTION_SENDTO, uri);
it.putExtra(“sms_body”, “The SMS text”);
startActivity(it);
//发送MMS
Uri uri = Uri.parse(“content://media/external/images/media/23″);
Intent it = new Intent(Intent.ACTION_SEND);
it.putExtra(“sms_body”, “some text”);
it.putExtra(Intent.EXTRA_STREAM, uri);
it.setType(“image/png”);
startActivity(it);
//需写号码SMS Intent it = new Intent(Intent.ACTION_VIEW); it.putExtra(“sms_body”, “The SMS text”); it.setType(“vnd.android-dir/mms-sms”); startActivity(it); //发送SMS Uri uri = Uri.parse(“smsto:0800000123″); Intent it = new Intent(Intent.ACTION_SENDTO, uri); it.putExtra(“sms_body”, “The SMS text”); startActivity(it); //发送MMS Uri uri = Uri.parse(“content://media/external/images/media/23″); Intent it = new Intent(Intent.ACTION_SEND); it.putExtra(“sms_body”, “some text”); it.putExtra(Intent.EXTRA_STREAM, uri); it.setType(“image/png”); startActivity(it);
发送EMAIL
Java代码
Uri uri = Uri.parse(“mailto:xxx@abc.com”);
Intent it = new Intent(Intent.ACTION_SENDTO, uri);
startActivity(it);
Intent it = new Intent(Intent.ACTION_SEND);
it.putExtra(Intent.EXTRA_EMAIL, “me@abc.com”);
it.putExtra(Intent.EXTRA_TEXT, “The email body text”);
it.setType(“text/plain”);
startActivity(Intent.createChooser(it, “Choose Email Client”));
Intent it=new Intent(Intent.ACTION_SEND);
String[] tos={“me@abc.com”};
String[] ccs={“you@abc.com”};
it.putExtra(Intent.EXTRA_EMAIL, tos);
it.putExtra(Intent.EXTRA_CC, ccs);
it.putExtra(Intent.EXTRA_TEXT, “The email body text”);
it.putExtra(Intent.EXTRA_SUBJECT, “The email subject text”);
it.setType(“message/rfc822″);
startActivity(Intent.createChooser(it, “Choose Email Client”));
//传送附件
Intent it = new Intent(Intent.ACTION_SEND);
it.putExtra(Intent.EXTRA_SUBJECT, “The email subject text”);
it.putExtra(Intent.EXTRA_STREAM, “file:///sdcard/mysong.mp3″);
sendIntent.setType(“audio/mp3″);
startActivity(Intent.createChooser(it, “Choose Email Client”));
Uri uri = Uri.parse(“mailto:xxx@abc.com”); Intent it = new Intent(Intent.ACTION_SENDTO, uri); startActivity(it); Intent it = new Intent(Intent.ACTION_SEND); it.putExtra(Intent.EXTRA_EMAIL, “me@abc.com”); it.putExtra(Intent.EXTRA_TEXT, “The email body text”); it.setType(“text/plain”); startActivity(Intent.createChooser(it, “Choose Email Client”)); Intent it=new Intent(Intent.ACTION_SEND); String[] tos={“me@abc.com”}; String[] ccs={“you@abc.com”}; it.putExtra(Intent.EXTRA_EMAIL, tos); it.putExtra(Intent.EXTRA_CC, ccs); it.putExtra(Intent.EXTRA_TEXT, “The email body text”); it.putExtra(Intent.EXTRA_SUBJECT, “The email subject text”); it.setType(“message/rfc822″); startActivity(Intent.createChooser(it, “Choose Email Client”)); //传送附件 Intent it = new Intent(Intent.ACTION_SEND); it.putExtra(Intent.EXTRA_SUBJECT, “The email subject text”); it.putExtra(Intent.EXTRA_STREAM, “file:///sdcard/mysong.mp3″); sendIntent.setType(“audio/mp3″); startActivity(Intent.createChooser(it, “Choose Email Client”));
播放多媒体
Java代码
Intent it = new Intent(Intent.ACTION_VIEW);
Uri uri = Uri.parse(“file:///sdcard/song.mp3″);
it.setDataAndType(uri, “audio/mp3″);
startActivity(it);
Uri uri = Uri.withAppendedPath(MediaStore.Audio.Media.INTERNAL_CONTENT_URI, “1″);
Intent it = new Intent(Intent.ACTION_VIEW, uri);
startActivity(it);
Intent it = new Intent(Intent.ACTION_VIEW); Uri uri = Uri.parse(“file:///sdcard/song.mp3″); it.setDataAndType(uri, “audio/mp3″); startActivity(it); Uri uri = Uri.withAppendedPath(MediaStore.Audio.Media.INTERNAL_CONTENT_URI, “1″); Intent it = new Intent(Intent.ACTION_VIEW, uri); startActivity(it);
Android Market
Java代码
//寻找应用
Uri uri = Uri.parse(“market://search?q=pname:pkg_name”);
Intent it = new Intent(Intent.ACTION_VIEW, uri);
startActivity(it);
//where pkg_name is the full package path for an application
//显示应用详细列表
Uri uri = Uri.parse(“market://details?id=app_id”);
Intent it = new Intent(Intent.ACTION_VIEW, uri);
startActivity(it);
//where app_id is the application ID, find the ID
//by clicking on your application on Market home
//page, and notice the ID from the address bar
//寻找应用 Uri uri = Uri.parse(“market://search?q=pname:pkg_name”); Intent it = new Intent(Intent.ACTION_VIEW, uri); startActivity(it); //where pkg_name is the full package path for an application //显示应用详细列表 Uri uri = Uri.parse(“market://details?id=app_id”); Intent it = new Intent(Intent.ACTION_VIEW, uri); startActivity(it); //where app_id is the application ID, find the ID //by clicking on your application on Market home //page, and notice the ID from the address bar
卸载应用
Java代码
Uri uri = Uri.fromParts(“package”, strPackageName, null);
Intent it = new Intent(Intent.ACTION_DELETE, uri);
startActivity(it);
Uri uri = Uri.fromParts(“package”, strPackageName, null); Intent it = new Intent(Intent.ACTION_DELETE, uri); startActivity(it);
安装应用
Java代码
Uri uri = Uri.parse(“url_of_apk_file”);
Intent it = new Intent(Intent.ACTION_VIEW, uri);
it.setData(uri);
it.addFlags(Intent.FLAG_GRANT_READ_URI_PERMISSION);
it.setClassName(“com.android.packageinstaller”,
“com.android.packageinstaller.PackageInstallerActivity”);
startActivity(it);
//make sure the url_of_apk_file is readable for all users
发表评论
-
15个Android很有用的代码片段
2010-09-20 15:47 8041:查看是否有存储卡插入 String status=Envi ... -
linux下/proc/stat 计算CPU利用率
2010-09-20 12:57 4480Linux平台Cpu使用率的计算 proc文件系统 /pr ... -
Android进程管理机制及优化 for HTC HeRO(其它设备也可参考)+自动内存管理程序
2010-09-19 16:33 1985理论 Android采取了一种有别于Linux的进程管理策略 ... -
android proc 进程信息解析
2010-09-19 16:23 5553如何查看ANDROID进程信息呢,可以先进入ADB SHELL ... -
Android获取所有安装APP信息
2010-09-19 10:11 1403class PInfo { private Str ... -
Android kill app Process 结束进程代码
2010-09-19 09:00 3990第一种: android.os.Process.killPr ... -
Android GPS获取地理位置
2010-09-18 22:49 2909import android.app.Activity; im ...
相关推荐
罗列了android常用两种检测网络方法,在工作线程中定时执行检测操作
本文将详细介绍如何在Android平台上罗列和管理SD卡,并探讨相关技术知识点。 首先,Android提供了一个名为`StorageManager`的系统服务,用于管理和访问各种类型的存储设备,包括内部存储和外部SD卡。通过`Context....
Android Studio 天气预报,含有基本功能:可以罗列全国所有的省、市、县;可以查看全国任意城市天气信息;可以自由切换城市,去产看其他城市的天气;提供手动更新以及后台自动更新天气功能。访问中国所有省份,需要...
SAP的用户出口和其它模块不太一样,其他模块基本采用系统增强方法,SD的子模块则是罗列了一大堆已经定义好的子程序(Include)。 用户出口的使用方法是:首先定义一个项目,然后将要使用的系统增加Enhancement分配...
- 3.1 调试节点:提供调试过程中用到的节点信息,帮助用户了解调试路径和方法。 - 3.2 调试方法:介绍如何对USB模块进行调试。 - 3.2.1 USB Host:说明当USB模块工作在USB host模式下时的调试方法。 - 3.2.2 USB...
【标题】"罗列图标带字.rar"是一个压缩文件,很可能包含了多个带有文字标识的图标资源。这种类型的文件在IT行业中通常用于软件开发、网页设计、用户界面(UI)设计等领域,其中图标是视觉元素,而文字则提供了附加的...
5. 常见问题:文档罗列了在使用RIL驱动过程中可能遇到的问题以及解决这些问题的建议,例如网络APN设置、PPPD拨号上网权限问题、查看RIL日志、使用Android控制台以及使用ADB工具进行RIL模块文件传输等。 6. 测试方法...
罗列了app渗透测试的工具,方法以及测试需要达到的结果。方法详尽,目的明确。现在应用安全已由pc端转向移动端,移动端app渗透测试不可或缺。
通过颜色模块的罗列,求职者可以在简历中突出自己的亮点,比如特定技能、实习经历或是项目成果,这样的呈现方式使得信息条理清晰,便于阅读者快速把握重点。 其次,模板采用的“罗列式”设计便于求职者将个人信息、...
从给定的文件信息中,我们可以看出这是一份专门为应届生准备的特色模块材料,其格式为罗列式,并且设计为单页式的形式。由于文件描述和标签中均提到“无内容”和“无封面”,我们可以推断出这份文件目前处于未完成的...
它不仅指导开发者如何深入理解Android源码的结构,而且对关键类和方法进行细致的解释。通过阅读这份文档,开发者可以了解到Android系统的核心构建模块,以及不同模块之间的交互方式。文档中可能还会包含对Android...
在信息化迅速发展的现代社会中,有效沟通和信息展示的工具变得尤为重要。"文件板夹项目罗列PPT模板"作为一款创新的PPT模板,不仅为项目管理者提供了一种全新的组织和展示项目信息的方式,而且通过引入创意元素,使其...
【圆形并列罗列PPT图形】是一种常用于信息展示和数据可视化的设计元素,尤其在制作演示文稿时非常实用。它通过圆形结构将多个信息点或数据点以并列的方式排列,使得观众能够清晰地理解各个部分之间的关系以及整体的...
彩色模块_罗列式_适用于应届生_1页式_无内容_无封面.zip”,说明该压缩包文件是一个模板类文件,具体为简历模板。 2. 文件描述为“漂亮大气简历模板”,表明该简历模板的设计风格是以“漂亮”和“大气”为特点。 3. ...
上述罗列的各种开源框架的使用方法; Java8 Lambda表达式和Stream API的用法; 怎样适配Material Design; ToolBar、RecycleView、CardView、CoordinatorLayout等新控件的用法; Gradle的基本配置(包括签名打包、...
js 实现 罗列对象的属性和值! 值得下载看看!资源免费,大家分享!!
7. **页面路由**:微信小程序中的页面跳转和参数传递是通过`wx.navigateTo`, `wx.redirectTo`, `wx.switchTab`等方法实现的。 8. **微信小程序框架**:`minapp-master`可能是一个包含微信小程序项目的源码包,其中...
"罗列IP地址的一个应用"指的是创建一个程序,能够列举出特定网络环境中所有的IP地址。在这个项目中,我们看到涉及到的文件主要是VC++(Visual C++)开发环境下的源代码文件,如`.cpp`和`.h`文件,这表明程序是用C++...
在IT行业中,PPT(PowerPoint)是一种广泛使用的演示文稿制作工具,尤其在商务会议、教学、报告和产品展示等场景中。"问号问题要点罗列PPT模板"显然是一个专门设计用于帮助用户整理和展示问题及解决方案的模板。这种...
这是一个专用于解决Android中网络请求及图片加载的缓存处理框架 项目目标 本项目是作为实验项目,不保证其稳定性及可靠性 因为缓存业务的复杂性,本项目尽可能适应更多的使用场景 目前考虑到的,会实现的功能清单,...