摘要: 如果搜索'移动支付',会出来铺天盖地的报道,绝对是2012年的一个热点,而高潮就是银联主推的NFC成为支付标准。不过这只是冰山的一角,还是很小的那一个,对于整个近场支付生态链的解读,就看不到多少中文报道或者深入介绍了。我从去年开始陆续接触到相关的领域,只能说水太深了,还好没被淹死,决定在此把看到的一些东西总结下来,作为蛇年的一个大坑。首先什么是NFC移动支付呢?简单的类比一下:现有信用卡使用流程:1. 到银行申请开户 -> 2. 银行把卡寄给你 -> 3. 用户刷卡消费 -> 4. 用户收到账单或线上查询NFC移动支付流程:1. 到银行申请开户 -> 2 阅读全文
posted @ 2013-02-12 22:00 上尉 阅读(2115) 评论(11) 推荐(0) 编辑
摘要: 将ApplicationIdleDetectionMode设为Disabled可以让程序运行在锁定屏幕下,将UserIdleDetectionMode设为Disabled可以让程序一直运行而不会休眠! 阅读全文
posted @ 2011-01-07 21:44 上尉 阅读(542) 评论(0) 推荐(0) 编辑
摘要: 经过前面的准备,现在可以动手实现SinaService接口和界面布局啦!SinaService的实现不难,用linq解析下xml就好了。AppKey,用户名,密码就要自己去申请啦。代码相应的ParseService如下:代码主页面用到了Pivot Control代码每条微博的DataTemplate如下代码记得在MainPageViewModel的构造函数中调用RefreshHomeList代码最后把viewmodel和view联系起来,在App.xaml中声明代码在MainPage.xaml中声明就大功告成了![代码]因为间隔时间比较长,上面只是提到了些关键实现,有些地方可能忘记了。如有问题 阅读全文
posted @ 2010-12-10 17:48 上尉 阅读(1032) 评论(0) 推荐(0) 编辑
摘要: 可以调用这个方法,但它在模拟器中总是返回true,所以要自己判断下是否在模拟器中:[代码]更详细的信息可以通过如下代码,不过它会block ui线程,所以最好另开个thread调用![代码] 阅读全文
posted @ 2010-12-06 18:59 上尉 阅读(472) 评论(0) 推荐(0) 编辑
摘要: 这几天在研究如何进行异步测试, silverlight unit test framework提供了相应支持,异步在这个framework中的含义就是把一些额外的任务排队并稍后执行。 比如有一个request()方法是异步的,一般情况下呼叫这个方法之后无法直接测试返回的结果;但在测试方法TestRequest()中,呼叫request()后可以加入一些额外任务到一个队列中,在退出TestReque... 阅读全文
posted @ 2010-11-25 20:35 上尉 阅读(2062) 评论(3) 推荐(0) 编辑
摘要: 想了一个礼拜,究竟是先实现些具体功能呢,还是继续完善TDD,还是先后者吧:具体功能无非就是些api的调用,wp7的twiter或者围脖的例子也有一些了,也不少我这一篇:)1. 准备几个基本类,status,user和SinaService接口代码status和user类的相应测试俺就偷懒不写了,读者有兴趣可以自己试试!2. 修改下MainPageViewModel, 加入SinaService接口... 阅读全文
posted @ 2010-11-19 23:50 上尉 阅读(1655) 评论(0) 推荐(3) 编辑
摘要: 分享下我关注的开发资源, msdn上的例程,MIX10和PDC10的视频就不必说了,下面两个网页也强力推荐!http://wp7dev.wikispaces.com/http://www.silverlightcream.com/wp7dev.aspx 阅读全文
posted @ 2010-11-16 16:31 上尉 阅读(296) 评论(0) 推荐(0) 编辑
摘要: 既然要用MVVM和TDD,两样利器必不可少:1. MVVM Light Toolkit2. Silverlight Unit Testing Framework 都有相应的WP7版本,添加dll到项目中即可。下面大概说下要点:1. 创建一个新项目WeiBo72. 添加一个测试项目WeiBo7.Test1)添加 Microsoft.Silverlight.Testing & Microsof... 阅读全文
posted @ 2010-11-11 20:44 上尉 阅读(2460) 评论(2) 推荐(1) 编辑
摘要: 之前写了一个Twit47, 但是既然官方的应用出来,继续下去没啥意义了。就移植到新浪微博上来吧。打算严格执行mvvm,tdd,会陆续写些心得来和大家分享!先放出主屏幕! 阅读全文
posted @ 2010-11-10 00:04 上尉 阅读(1509) 评论(8) 推荐(1) 编辑
摘要: 如果是在模拟器上面,可以用这个 WP7 Screenshot Tool如果是在真机上面,微软提供了wmnet工具 ,但前提是必须装pb,zune,无语...呼吁下微软把这个工具,和之前的remote tools也集成到vs2010中就好了! 阅读全文
posted @ 2010-11-09 23:29 上尉 阅读(1145) 评论(3) 推荐(1) 编辑
摘要: 刚看到2个方法,没具体试过,但应该可行:1. Runtime Intelligence for Windows Phone2. 使用Silverlight Analytics Framework 阅读全文
posted @ 2010-11-03 18:33 上尉 阅读(267) 评论(0) 推荐(0) 编辑
摘要: 刚刚才发现,如果在SrollViewer放置一个ListBox,对性能很有影响!实验了一下,ListBox中有150个item,每个item包含图片和文字,加载单独的ListBox比加载在SrollViewer中的,大概快了6~8倍。 阅读全文
posted @ 2010-09-09 19:52 上尉 阅读(256) 评论(0) 推荐(0) 编辑
摘要: Silverlight中有一个bug,似乎到wp7中还是如此:如果TextBlock在一个StackPanel中,而这个StackPanel的Orientation又被设置成了Horizontal, 那么TextBlock的TextWrapping="Wrap"将被忽略...用Grid代替 StackPanel就没问题了! 阅读全文
posted @ 2010-09-08 17:35 上尉 阅读(257) 评论(0) 推荐(0) 编辑
摘要: 一般在wp7中可以用back键回到前一个page,但如果有另一个button也需要回到前页:可以这样,从secondpage到mainpage:NavigationService.Navigate(newUri("/MainPage.xaml",UriKind.RelativeOrAbsolute)但这样的话如果你在mainpage按back键就会回到secondpage,因为mainpage被添... 阅读全文
posted @ 2010-09-06 16:11 上尉 阅读(700) 评论(0) 推荐(1) 编辑
摘要: 写了一个基本的twitter客户端,有兴趣大家可以试试看,欢迎多给意见!可在这里下载:http://cid-b7acc11dcba9a3a1.office.live.com/self.aspx/Share/twitter47.rar 阅读全文
posted @ 2010-08-27 18:45 上尉 阅读(184) 评论(0) 推荐(0) 编辑
摘要: ApplicationBar并不是一个FrameworkElement, 意味着你不能databinding,但可以在code中设置它的text,IsEnable等属性var appbar_refresh = (Microsoft.Phone.Shell.ApplicationBarIconButton)this.ApplicationBar.Buttons[0];appbar_refresh.I... 阅读全文
posted @ 2010-08-26 20:18 上尉 阅读(317) 评论(0) 推荐(0) 编辑
摘要: Microsoft.Devices.Environment.DeviceType// Summary: // Defines the device type values used by the Microsoft.Devices.Environment.DeviceType // property. public enum DeviceType { // Summary: // The devi... 阅读全文
posted @ 2010-07-30 15:57 上尉 阅读(305) 评论(1) 推荐(0) 编辑
摘要: 不废话,上代码:)代码 阅读全文
posted @ 2010-07-26 19:14 上尉 阅读(259) 评论(1) 推荐(1) 编辑
摘要: 在新的trainning kit 中有一个例子解释的很清楚了:1. Application_Launching:只有在新启动程序时触发2. Application_Closing:只有在推出程序时触发--只有在程序mainpage时按硬后退键3.Application_Activated:从home键或者其它方式离开,back键返回时触发4. Application_Deactivated:从ho... 阅读全文
posted @ 2010-07-26 19:03 上尉 阅读(405) 评论(0) 推荐(0) 编辑
摘要: The user agent for IE on Windows Phone 7 running on the Asus Galaxy device is:Mozilla/4.0 (compatible; MSIE 7.0; Windows Phone OS 7.0; Trident/3.1; IEMobile/7.0) Asus;Galaxy6source 阅读全文
posted @ 2010-04-29 00:19 上尉 阅读(248) 评论(0) 推荐(0) 编辑
摘要: Step 1: prepare the image with size 480x800, name it splashscreenimage.jpgStep 2: add this image to the project and make it as 'content'Done! 阅读全文
posted @ 2010-04-28 20:40 上尉 阅读(232) 评论(1) 推荐(0) 编辑
摘要: Silverlight 数据绑定 (1):怎样实现数据绑定Silverlight 数据绑定 (2):Source to Targettbc... 阅读全文
posted @ 2010-03-25 07:06 上尉 阅读(260) 评论(0) 推荐(0) 编辑
摘要: Input Scopes for the Soft Input Panel代码还有其他选择可以定制SIP,真是很方便!如果能针对不同国家就更牛了,例如不同国家的邮编就需要不同的SIP布局。 阅读全文
posted @ 2010-03-23 05:28 上尉 阅读(370) 评论(0) 推荐(0) 编辑
摘要: 正在学习中,大家多交流!!http://channel9.msdn.com/learn/courses/WP7TrainingKit/http://www.silverlight.net/getstarted/devices/windows-phone/http://www.earthware.co.uk/blog/index.php/category/windows-phone-7-series... 阅读全文
posted @ 2010-03-22 19:35 上尉 阅读(213) 评论(0) 推荐(0) 编辑
摘要: By both running tcpdump on G1 and collecting data on the GPRS gateway, it shows that the Android OS itself only generates a little data traffic. It really depends on what apps and services running on ... 阅读全文
posted @ 2010-03-12 21:35 上尉 阅读(250) 评论(0) 推荐(0) 编辑
摘要: http://www.netmite.com/android/mydroid/development/pdk/docs/telephony.htmlhttp://ljh.ee.nchu.edu.tw/~cch/program/CE/RILhttp://pdk.android.com/online-pdk/guide/telephony.html 阅读全文
posted @ 2010-02-02 16:55 上尉 阅读(186) 评论(0) 推荐(0) 编辑
摘要: Creating CHome (Titanium) Plugins Part I Creating CHome (Titanium) Plugins Part II Creating Customized Titanium Layout CHome Registry (Titanium) and CPR file walk-through Titanium: CHome is the pl... 阅读全文
posted @ 2010-01-15 21:23 上尉 阅读(1511) 评论(0) 推荐(0) 编辑
摘要: Reg settins according to this post: [HKEY_CURRENT_USER\Security\Software\Microsoft\Marketplace] "DownloadLocation"="\\Windows\\WMMarketplace.cab" "IsInstalled"=dword:000... 阅读全文
posted @ 2010-01-13 20:19 上尉 阅读(411) 评论(0) 推荐(0) 编辑
摘要: <EditText android:id="@+id/edtInput" android:layout_width="0dip" android:layout_height="wrap_content" android:layout_weight="1" android:inputType=... 阅读全文
posted @ 2009-12-16 18:11 上尉 阅读(307) 评论(0) 推荐(0) 编辑
摘要: 敏捷之道的最高境界:   个体与交互 胜过 过程与工具   可以工作的软件 胜过 面面俱到的文档   客户协作 胜过 合同谈判   响应变化 胜过 遵循计划 阅读全文
posted @ 2009-11-27 00:17 上尉 阅读(130) 评论(0) 推荐(0) 编辑
摘要: http://www.pavingways.com/mobile-widget-wiki/mobile-widget-engine-overview 阅读全文
posted @ 2009-11-24 17:22 上尉 阅读(125) 评论(0) 推荐(0) 编辑
摘要: It is simple! AudioManager mAudioManager = (AudioManager) getSystemService(Context.AUDIO_SERVICE); //通话音量 int max = mAudioManager.getStreamMaxVolume( AudioManager.STREAM_VOICE_CALL ); int current ... 阅读全文
posted @ 2009-11-24 16:37 上尉 阅读(864) 评论(0) 推荐(0) 编辑
摘要: Just some useful links: Krishnaraj Varma Blog http://www.devdiv.net/redirect.php?tid=10384&goto=lastpost 阅读全文
posted @ 2009-11-20 17:45 上尉 阅读(484) 评论(0) 推荐(0) 编辑
摘要: The DG eCall recommends that the following essential requirements for transmitting both voice and data through the mobile networks should be adopted: 1.Pan-European solution: o Roaming capability o Be... 阅读全文
posted @ 2008-12-03 22:37 上尉 阅读(300) 评论(0) 推荐(0) 编辑
摘要: http://blog.csdn.net/hucz2001/archive/2007/09/27/1803746.aspx ... 阅读全文
posted @ 2008-08-18 19:16 上尉 阅读(160) 评论(0) 推荐(0) 编辑
摘要: //======================================================================== //TITLE: // 预编译指令与相关宏小结 //AUTHOR: // norains //DATE: // Saturday 10-December-2007 //Environment: // EVC4.0 + Win... 阅读全文
posted @ 2008-07-25 19:32 上尉 阅读(276) 评论(0) 推荐(0) 编辑
摘要: 基本概念 库有动态与静态两种,动态通常用.so为后缀,静态用.a为后缀。 例如:libhello.so libhello.a 为了在同一系统中使用不同版本的库,可以在库文件名后加上版本号为后缀,例如: libhello.so.1.0,由于程序连接默认以.so为文件后缀名。所以为了使用这些库,通常使用建立符号连接的方式。 ln -s libhello.so.1.0 libhello.so.1 ... 阅读全文
posted @ 2008-07-24 17:26 上尉 阅读(143) 评论(0) 推荐(0) 编辑
摘要: LTE and WiMax may be two peas in an OFDM pod, but they are not twins. Here are three significant differences: 1. Both use orthogonal frequency division multiple access (OFDMA) in the downlink. But Wi... 阅读全文
posted @ 2008-06-17 15:41 上尉 阅读(141) 评论(0) 推荐(0) 编辑
摘要: Notes from the book Vehicle Location and Navigation Systems. I will try to update as I going through the book :) 阅读全文
posted @ 2008-06-13 19:28 上尉 阅读(132) 评论(0) 推荐(0) 编辑
摘要: 调用DLL有两种方法:静态调用和动态调用. (一).静态调用其步骤如下: 1.把你的youApp.DLL拷到你目标工程(需调用youApp.DLL的工程)的Debug目录下; 2.把你的youApp.lib拷到你目标工程(需调用youApp.DLL的工程)目录下; 3.把你的youApp.h(包含输出函数的定义)拷到你目标工程(需调用youApp.DLL的工程)目 录下; 4.打开你的目标工程选中... 阅读全文
posted @ 2008-06-10 17:27 上尉 阅读(504) 评论(0) 推荐(0) 编辑
View Hao Wang's profile on LinkedIn