网站开发与移动开发

博客园 首页 新随笔 管理
上一页 1 ··· 10 11 12 13 14 15 16 17 18 ··· 33 下一页

2011年5月9日 #

摘要: 演示地址:http://www.corange.cn/demo/3765/index.html <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Conte 阅读全文
posted @ 2011-05-09 08:00 txf2004 阅读(157) 评论(0) 推荐(0) 编辑

2011年4月27日 #

摘要: Https与Http类似,只不过Https一般是通过post请求服务器,但是Https与http不同的是Https与服务器会话是处于连接状态。http则发送请求后连接就会断开。发送post请求代码:String query = r4 + "&pass=" + r3; //请求参数 byte[] entitydata = query.getBytes();//得到实体数据 HttpsURLConnection urlCon = (new URL(ticketurl)).openConnection(); urlCon.setRequestProperty... 阅读全文
posted @ 2011-04-27 22:20 txf2004 阅读(380) 评论(0) 推荐(0) 编辑

2011年4月19日 #

摘要: symbian 不弹出接入点:目前在五版的 5800xm 5235测试通过。记录一下void CHttpEngine::SetupConnectionL() { if (iConnectionSetupDone) { // Connection setup is done User::Leave(KErrAlreadyExists); } if (IsActive()) { User::Leave(KErrInUse); } TCommDbConnPref iPref; TInt IAPId = 0; User::LeaveIfError(iSocketServ.Connect(... 阅读全文
posted @ 2011-04-19 14:06 txf2004 阅读(142) 评论(0) 推荐(0) 编辑

2011年4月13日 #

摘要: void C******::SetTime() { TDateTime iDataTime; iDataTime.SetHour(9); iDataTime.SetMinute(20); iDataTime.SetSecond(10); iDataTime.SetDay(1); iDataTime.SetMonth(TMonth(9)); iDataTime.SetYear(2008); TTime iTime(iDataTime); User::SetHomeTime(iDataTime); } 阅读全文
posted @ 2011-04-13 23:35 txf2004 阅读(143) 评论(0) 推荐(0) 编辑

2011年4月2日 #

摘要: 演示地址:http://www.corange.cn/demo/3763/index.html <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <meta content="text/html; charset=ut 阅读全文
posted @ 2011-04-02 19:47 txf2004 阅读(244) 评论(0) 推荐(0) 编辑

2011年3月7日 #

摘要: 1、在CaptureActivityHandler类里方法:public void handleMessage(Message message)接收对图片解码后的结果,如果界面成功则进入下面分支case R.id.decode_succeeded: Log.d(TAG, "Got decode succeeded message"); state = State.SUCCESS; Bundle bundle = message.getData(); Bitmap barcode = bundle == null ? null : (Bitmap) bundle.getPar 阅读全文
posted @ 2011-03-07 17:50 txf2004 阅读(226) 评论(0) 推荐(0) 编辑

2011年3月2日 #

摘要: 1、CaptureActivity extends Activity implements SurfaceHolder.Callback CaptureActivity 为第一个启动的Activity 2、 public void surfaceCreated(SurfaceHolder holder) { if (!hasSurface) { hasSurface = true; initCamera(holder); } } 调用surfaceCreated启动相机。3、判断获取界面后的结果public void handleDecode(Result rawResult, Bitmap 阅读全文
posted @ 2011-03-02 17:57 txf2004 阅读(194) 评论(0) 推荐(0) 编辑

摘要: 越来越多的手机具备自动对焦的拍摄功能,这也意味着这些手机可以具备条码扫描的功能.......手机具备条码扫描的功能,可以优化购物流程,快速存储电子名片(二维码)等。本文使用ZXing 1.6实现条码/二维码识别。ZXing是个很经典的条码/二维码识别的开源类库,long long ago,就有开发者在J2ME上使用ZXing了,不过要支持JSR-234规范(自动对焦)的手机才能发挥其威力,而目前已经有不少Android手机具备自动对焦的功能。本文代码运行的结果如下,使用91手机助手截图时,无法截取SurfaceView的实时图像:本文使用了ZXing1.6的core,即把/zxing-1.6/ 阅读全文
posted @ 2011-03-02 15:36 txf2004 阅读(245) 评论(0) 推荐(0) 编辑

2011年3月1日 #

摘要: 有这么一个网站,能通过web方式查看Android源码.在你需要的时候,本地又没有源码的时候,通过这个网站可以很方便的查看到源码网站地址:http://grepcode.com/project/repository.grepcode.com/java/ext/com.google.android/androidActivity.java 这个文件的地址:http://grepcode.com/file/repository.grepcode.com/java/ext/com.google.android/android/2.0_r1/android/app/Activity.java?av=f 阅读全文
posted @ 2011-03-01 13:43 txf2004 阅读(225) 评论(0) 推荐(0) 编辑

2011年2月28日 #

摘要: XMPP与SIP-IM两大协议的对比 XMPP 协议简介 Google 通过官方宣布,Google Talk 将正式支持不同IM/VoIP服务之间的通讯。这一服务是建立在Google Talk的通讯协议XMPP协议基础之上的。 XMPP是目前主流的四种IM协议之一,其他三种分别为:即时信息和空间协议(IMPP)、空间和即时信息协议(PRIM)、针对即时通讯和空间平衡扩充的进程开始协议SIP(SIMPLE)。 在这四种协议中,XMPP是最灵活的。XMPP是一种基于XML的协议,它继承了在XML环境中灵活的发展性。因此,基于XMPP的应用具有超强的可扩展性。经过扩展以后的XMPP可以通过发送扩展的 阅读全文
posted @ 2011-02-28 17:57 txf2004 阅读(196) 评论(0) 推荐(0) 编辑

摘要: 上图 : 阅读全文
posted @ 2011-02-28 13:10 txf2004 阅读(145) 评论(0) 推荐(0) 编辑

2011年2月25日 #

摘要: 第一、 新建监听类:BootReceiver继承BroadcastReceiver package com.rongfzh.yc; import android.content.BroadcastReceiver; import android.content.Context; import android.content.Intent; public class BootReceiver extends BroadcastReceiver{ @Override public void onReceive(Context context, Intent inte... 阅读全文
posted @ 2011-02-25 17:53 txf2004 阅读(178) 评论(0) 推荐(0) 编辑

摘要: AndroidManifest.xml AndroidManifest.xml是Android应用的描述文件,它描述了该应用的相关信息,主要包括以下各个元素。包名(package) 指定本应用内java主程序包的包名。当没有指定apk的文件名时,编译后产生程序包将以此命名。本包名应当在Android系统运行时唯一。认证(certificate) 指定本应用程序所授予的信任级别,目前有的认证级别有platform(system)、shared、media以及应用自定义的认证。不同的认证可以享受不同的权限。权限组(permission-group) 权限组的定义是为了描述一组具有共同特性的权限。A 阅读全文
posted @ 2011-02-25 17:26 txf2004 阅读(225) 评论(0) 推荐(0) 编辑

2011年2月22日 #

摘要: <?xml version="1.0" encoding="utf-8" ?> <string xmlns="http://www.webserviceX.NET"><?xml version="1.0" encoding="utf-16"?> <CurrentWeather> <Location>Beijing, China (ZBAA) 39-56N 116-17E 55M</Location> <Time> 阅读全文
posted @ 2011-02-22 16:32 txf2004 阅读(194) 评论(0) 推荐(0) 编辑

2011年1月4日 #

摘要: 演示地址:http://www.corange.cn/demo/3760/index.html <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Conte 阅读全文
posted @ 2011-01-04 21:25 txf2004 阅读(163) 评论(0) 推荐(0) 编辑

2010年12月24日 #

摘要: 屏幕滚动到那个图片的上边缘,才会触发请求加载时间。这样就很好解决一些当第一屏,我们看不到的而且不用第一次加载的图片,就可以触发加载 节约一次下载的时间 演示地址:http://www.corange.cn/demo/3755/index.html <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http:// 阅读全文
posted @ 2010-12-24 12:04 txf2004 阅读(124) 评论(0) 推荐(0) 编辑

2010年12月12日 #

摘要: 演示地址:http://www.corange.cn/demo/3740/index.html<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="X-UA-C 阅读全文
posted @ 2010-12-12 13:32 txf2004 阅读(229) 评论(0) 推荐(0) 编辑

2010年12月3日 #

摘要: 演示地址:http://www.corange.cn/demo/3738/index.html<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Conten 阅读全文
posted @ 2010-12-03 11:28 txf2004 阅读(256) 评论(0) 推荐(0) 编辑

2010年11月14日 #

摘要: 这个主要看这个弹出效果就好<!DOCTYPE html> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>网页右侧快速回复表单,无刷新提交</title> <link rel="stylesheet" type="text/css" href="styles.css" /> < 阅读全文
posted @ 2010-11-14 23:07 txf2004 阅读(156) 评论(0) 推荐(0) 编辑

2010年11月8日 #

摘要: AJAX jQuery tab,动态加载选显卡 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content=&q 阅读全文
posted @ 2010-11-08 21:37 txf2004 阅读(173) 评论(0) 推荐(0) 编辑

上一页 1 ··· 10 11 12 13 14 15 16 17 18 ··· 33 下一页