posts - 47, comments - 5, trackbacks - 0, articles - 0
   :: 首页 :: 新随笔 :: 联系 :: 订阅 订阅 :: 管理

公告

2011年9月6日

摘要: It's by Design.From MSFT Peter Torr:"Are you saying that when the MessageBox appears, there is no longer a sound played? If so, that's by design. The MessageBox sound was annoying in most cases and was unable to be turned off (so even if you had an app in "silent" mode, it wou阅读全文

posted @ 2011-09-06 07:57 T.W 阅读(33) 评论(0) 编辑

2011年8月9日

摘要: public bool SendMailWithAttachmentBytes(string from, string to, string subject, string body, byte[] data, string fileName) { MailAddress _from = new MailAddress(from); MailAddress _to = new MailAddress(to); MailMessage message = new MailMessage(_from, _to); message.To.Add(_from); message.ReplyTo = .阅读全文

posted @ 2011-08-09 15:52 T.W 阅读(16) 评论(0) 编辑

摘要: about web service1. http://microsoftfeed.com/2011/part-14-how-to-consume-a-web-service-in-windows-phone-72. http://www.msdev.com/Directory/Description.aspx?eventId=1878note:1. the web service hosting on http://localhost only can be accessed via Windows Phone Emulator.阅读全文

posted @ 2011-08-09 15:48 T.W 阅读(25) 评论(0) 编辑

2011年4月14日

摘要: bat file contentfor /f "delims=" %%a in (sdk.txt) do (curl -O %%a)* Download curl: http://curl.haxx.se/download.htmlsdk.txt contenthttp://dl-ssl.google.com/android/repository/android-1.1_r1-windows.ziphttp://dl-ssl.google.com/android/repository/android-1.1_r1-macosx.ziphttp://dl-ssl.google阅读全文

posted @ 2011-04-14 15:05 T.W 阅读(204) 评论(0) 编辑

2010年8月9日

摘要: 有时候自动更新Android SDK时非常得慢,这时我们可以通过手工来更新。 1. 下载需要更新的文件。打开https://dl-ssl.google.com/android/repository/repository.xml, 你可以找到需要下载的文件。在文件名前面加上https://dl-ssl.google.com/android/repository即是绝对路径。 比如:https://d...阅读全文

posted @ 2010-08-09 14:52 T.W 阅读(500) 评论(0) 编辑

2010年7月19日

摘要: 通过代码创建菜单栏的示例 1. 创建一个新的Windows phone Application工程,命名为AppBarSample。 2. 添加用作图标按钮的图片。在Solution Explorer里右击AppBarSample工程,Add->New Folder, 添加一个新文件夹Images,在Images文件夹上右击,Add->Existed Items,在File name处...阅读全文

posted @ 2010-07-19 17:03 T.W 阅读(322) 评论(0) 编辑

2010年7月12日

摘要: 什么是Build Action? Build Action is how the file relates to the build and deployment processes. 在Visual Studio 2010的Windows Phone工程中, 有多个build action。它们之间有什么区别呢? * None: 此文件不参与编译也不被输出。比如:工程中的文档文件, readme...阅读全文

posted @ 2010-07-12 16:44 T.W 阅读(1293) 评论(1) 编辑

摘要: From http://bhandler.spaces.live.com/Blog/cns%2170F64BC910C9F7F3%218195.entry Ultimate List of Free Windows Phone 7 Software & Resources from Microsoft I've received a few emails asking if/when I'...阅读全文

posted @ 2010-07-12 15:16 T.W 阅读(589) 评论(0) 编辑

2010年6月12日

摘要: XDE: x86 Device Emulator. Windows Phone 7 平台上新支持的模拟器类型,替代了原有的ARM Device Emulator. Why XDE? 更快,更强 在安装了Windows Phone 7 Developer Tool 以后,你在以下目录能找到: (1) XDE image: C:\Program Files\Microsoft SDKs\Windows...阅读全文

posted @ 2010-06-12 16:06 T.W 阅读(485) 评论(2) 编辑

摘要: save the following content in clearsvn.bat and save it in root dir. @echo oncolor 2fmode con: cols=80 lines=25@REM@echo Deleting all .svn, please wait......@rem Delete .svn in current and sub director...阅读全文

posted @ 2010-06-12 12:28 T.W 阅读(159) 评论(0) 编辑

摘要: 在使用SVN来对代码进行版本控制时,有以下几点需要注意: 1. 不需要版本控制的目录: .metadata, bin, gen .metadata中是关于workspace的东西 bin是编译的二进制文件的存放路径 gen是Android需要的资源文件的源文件存入目录 bin和gen两个目录在每次build时都会清空,会自动生成,所以不需要进行版本控制。阅读全文

posted @ 2010-06-12 11:49 T.W 阅读(676) 评论(0) 编辑

摘要: Problem: Error Message: Syntax error, annotations are only available if source level is 1.5 Solution: You can do that at Window > Preferences > Java > Compiler for the entire workspace or on ...阅读全文

posted @ 2010-06-12 11:44 T.W 阅读(1345) 评论(0) 编辑

2010年6月11日

摘要: 目录: http://www.msteched.com/Tracks/WindowsPhone Developing Occasionally Connected Applications for Windows Phone 7 WMV WMV High MP4 Windows Phone 7: A New Kind of Phone WMV WMV High MP4 Deployin...阅读全文

posted @ 2010-06-11 10:24 T.W 阅读(46) 评论(0) 编辑

2010年6月10日

摘要: 给你的程序签名 概述 注意事项: 所有提交到Market的程序必须经过签名。未经签名的程序不能安装。 你可以使用个人证书去签名程序,不一定要经证书机构授权。 用Debug版本证书签名的程序将不能发布。 在安装程序时会检测签名证书是否过期。如果程序在安装后证书过期,程序也能正常使用。 你可以使用keytool和Jarsigner产生密钥并签名你的程序。 l你的程序在签名后还需要使用zipalign...阅读全文

posted @ 2010-06-10 02:24 T.W 阅读(1075) 评论(0) 编辑

摘要: Problem:After updating JRE version from 5 to 6, when opening the existing Android projects, the following error occurs:Android requires .class compatibility set to 5.0. Please fix project properties.S...阅读全文

posted @ 2010-06-10 01:06 T.W 阅读(287) 评论(0) 编辑

2010年6月7日

摘要: Eclipse.Project Explorer, res->values上右击, New->Other->Android XML File, 在弹出窗口里选择values即可.阅读全文

posted @ 2010-06-07 06:32 T.W 阅读(1066) 评论(0) 编辑

摘要: 问题: 第一次用更改main.xml的方式,结果每次编译就产生一个main.out.xml,一直错误就是执行不了. 如果运行时正打开string.xml, 那么就会生成string.out.xml. 分析: 出现以上问题,是因为当前的编辑文件是xml,所以 eclipse自动调用xsl运行。所以会出错。 解决办法: 从Project Explorer里删除main.out.xml 或者str...阅读全文

posted @ 2010-06-07 06:05 T.W 阅读(1017) 评论(0) 编辑

摘要: 在Eclipse平台进行Android 应用开发时,编辑,修改或增删 res/下资源文件时有时会遇到如下错误提示:“Unparsed aapt error(s)! Check the console for output",因为它没有描述错误在什么地方,我不知道如何修正,于是百度找找,其中不少的文章都说: ”可检查控制台输出的提示来解决。 比如在res/layout下新加了一个xml文件: N...阅读全文

posted @ 2010-06-07 05:54 T.W 阅读(2475) 评论(2) 编辑

摘要: 警告信息,没事的,一般IDE环境中配置档的最前面都是DTD 或 XML 打头的。比如 <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE hibernate-configuration PUBLIC "-//Hibernate/Hibernate Configuration DTD 3.0//EN" "http://hibernate...阅读全文

posted @ 2010-06-07 05:53 T.W 阅读(2506) 评论(0) 编辑

2010年6月3日

摘要: 1. 启动Android Emulator, 查看标题栏找出端口。一般是android emulator(5554),其中5554就是端口。 2. 打开命令行,输入telnet localhost 5554。程序将会连接到android emulator,控制台会返回 Android Console: type ‘help’ for a list of commands OK 3. 模拟电话打入。...阅读全文

posted @ 2010-06-03 17:27 T.W 阅读(706) 评论(0) 编辑