摘要: [代码][代码] 阅读全文
posted @ 2011-02-03 12:54 penink 阅读(476) 评论(2) 推荐(0) 编辑
摘要: [代码] 阅读全文
posted @ 2011-02-02 20:30 penink 阅读(331) 评论(0) 推荐(0) 编辑
摘要: [代码] 阅读全文
posted @ 2011-02-02 00:59 penink 阅读(1091) 评论(0) 推荐(0) 编辑
摘要: [代码][代码] 阅读全文
posted @ 2011-01-27 11:37 penink 阅读(12775) 评论(1) 推荐(0) 编辑
摘要: [代码] 阅读全文
posted @ 2011-01-19 00:13 penink 阅读(201) 评论(0) 推荐(0) 编辑
摘要: 转载:http://stilius.net/java/java_ssl.phpJAVA + SSL Tutorial (server and client examples)CertificateFirst we need to make certificate, this is done by using keytool that is part of J2SE SDK (program will ask for certificate owner information and password, enter 123456 as password, or you can enter you 阅读全文
posted @ 2011-01-17 19:21 penink 阅读(1555) 评论(0) 推荐(0) 编辑
摘要: 转载:http://weizhulin.blog.51cto.com/1556324/311704知道大家是否想试一下用Android模拟器如何访问自己建的Web站点呢? 下面我将讲一下如何实现.Step 1:我用的Tomcat作为本地服务器,在Webapps这个目录里,把我的名为kankong的Web工程放进来,启动Tomcat服务器.在浏览器里输入:http://localhost(或者127.0.0.1):8080/kankong/index.html将出现如下界面:Step 2:启动Android 模拟器:如果你在Eclipse里已经启动了Android模拟器就跳过此步.我们如何手动启 阅读全文
posted @ 2011-01-03 13:51 penink 阅读(837) 评论(1) 推荐(0) 编辑
摘要: 渐近下载(Progressive download)是一个术语,它用来描述从服务器向客户端传输媒体文件,通常使用Http协议。用户可以在媒体文件下载完成之前播放。它和流媒体不同之处在于正在使用的终端用户设备如何接收来存储数字媒体数据。媒体播放器可以渐近下载播放依赖于位于文件头完整的无信息(meta data)和已经从服务器下载存在于本地缓冲区的数字媒体文件。当一定量的数据对于播放设备来说是可用的了,媒体文件就开始播放。相关资料:http://en.wikipedia.org/wiki/Progressive_downloadhttp://meiyitianabc.blog.163.com/bl 阅读全文
posted @ 2011-01-03 12:35 penink 阅读(2109) 评论(0) 推荐(0) 编辑
摘要: [代码] 阅读全文
posted @ 2010-12-27 09:30 penink 阅读(235) 评论(0) 推荐(0) 编辑
摘要: 一、监听短信的接收1.注册广播接收器[代码][代码]2.添加权限[代码]二、读取收件箱中的短信1.从数据库中读取,URI为"content://sms/inbox"[代码]2.添加权限[代码]附:其它短信的URI和数据库表字段[代码][代码]三、打开发送短信界面[代码]四、发送短信1.通过SmsManager的sendTextMessage(destinationAddress, scAddress, text, sentIntent, deliveryIntent)方法发送[代码]2.添加权限[代码]五、直接向数据库写短信[代码]权限:[代码]六、监听短信数据库变化使用ContentObs 阅读全文
posted @ 2010-12-26 16:36 penink 阅读(1546) 评论(0) 推荐(0) 编辑