<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-4797191850097376689</id><updated>2012-01-29T20:28:51.600-08:00</updated><category term='Windows优化，系统优化软件， 免费软件，日文系统'/><category term='wxpython demo'/><category term='Windows优化'/><category term='iphone'/><category term='网页设计，代码收藏，Javascript'/><category term='网络技巧，突破网络限制'/><category term='python'/><category term='wxpython'/><category term='labelbook'/><category term='python学习'/><category term='python视频教程'/><category term='Android'/><category term='wxpyhton'/><category term='style'/><title type='text'>Information Sharer</title><subtitle type='html'>Welcome to my blog!
You can find the useful information  about Windows PC, MAC, Linux and iDevice(iPhone iPod iPad).</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://jackyma1981.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4797191850097376689/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://jackyma1981.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>jacky ma</name><uri>https://profiles.google.com/115194989602674585864</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh5.googleusercontent.com/-pOworGIeDAk/AAAAAAAAAAI/AAAAAAAAAW4/yeNXTusAYmY/s512-c/photo.jpg'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>21</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-4797191850097376689.post-1460478912832021826</id><published>2012-01-29T04:23:00.000-08:00</published><updated>2012-01-29T20:28:51.615-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='iphone'/><title type='text'>日本SoftBank au 版 iPhone 4/4S 不用MyWi 简单 开启个人热点（Personal Hotspot），实现3G网络共享</title><content type='html'>&lt;br /&gt;&lt;div style="background-color: white; font-family: Arial;"&gt;上周终于等到iPhone4s越狱工具正式发布，本人也第一时间下载并把到手多日的iPhone4s成功越狱获取自由。&lt;/div&gt;&lt;div style="background-color: white; font-family: Arial;"&gt;接下来要做的是为了能够使用手机的移动数据网络让笔记本随时随地能够上网，花了小半天搜索网络资源，终于找到一个不用花钱买20美刀的MyWi也可以打开手机原有的个人热点功能。&lt;/div&gt;&lt;div style="background-color: white; font-family: Arial;"&gt;个人认为这个方法最简单可行，其他论坛也有网友写的方法，看了一下啊觉得很复杂不适合菜鸟操作。&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;日文原文链接：&lt;a href="http://ichitaso.blogspot.com/2011/11/ios-501.html?m=1#tethering"&gt;http://ichitaso.blogspot.com/2011/11/ios-501.html?m=1#tethering&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="-webkit-text-size-adjust: none; background-color: white; color: #4c4c4c; font-family: メイリオ, 'ＭＳ Ｐゴシック', Osaka, Arial, Helvetica; font-size: 16px; line-height: 20px;"&gt;利用日本网友^H的「CommCenter* patch for iOS 5」&lt;/span&gt;&lt;br /&gt;&lt;span style="-webkit-text-size-adjust: none; background-color: white; color: #4c4c4c; font-family: メイリオ, 'ＭＳ Ｐゴシック', Osaka, Arial, Helvetica; font-size: 16px; line-height: 20px;"&gt;开启iPhone原有的个人热点功能（Personal Hotspot）。&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;b style="-webkit-text-size-adjust: none; background-color: white; color: #4c4c4c; font-family: メイリオ, 'ＭＳ Ｐゴシック', Osaka, Arial, Helvetica; font-size: 16px; line-height: 20px;"&gt;Step 1&lt;/b&gt;&lt;span style="-webkit-text-size-adjust: none; background-color: white; color: #4c4c4c; font-family: メイリオ, 'ＭＳ Ｐゴシック', Osaka, Arial, Helvetica; font-size: 16px; line-height: 20px;"&gt;&amp;nbsp;为了能正常利用Cydia需要把语言环境改为英文（Cydia1.1.4版本不需要）&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="-webkit-text-size-adjust: none; background-color: white; color: #4c4c4c; font-family: メイリオ, 'ＭＳ Ｐゴシック', Osaka, Arial, Helvetica; font-size: 16px; line-height: 20px;"&gt;设置＞通用＞多语言环境＞语言改为English&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;b style="-webkit-text-size-adjust: none; background-color: white; color: #4c4c4c; font-family: メイリオ, 'ＭＳ Ｐゴシック', Osaka, Arial, Helvetica; font-size: 16px; line-height: 20px;"&gt;Step 2&lt;/b&gt;&lt;span style="-webkit-text-size-adjust: none; background-color: white; color: #4c4c4c; font-family: メイリオ, 'ＭＳ Ｐゴシック', Osaka, Arial, Helvetica; font-size: 16px; line-height: 20px;"&gt;&amp;nbsp;打开Cydia，添加软件源&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="-webkit-text-size-adjust: none; background-color: white; color: #4c4c4c; font-family: メイリオ, 'ＭＳ Ｐゴシック', Osaka, Arial, Helvetica; font-size: 16px; line-height: 20px;"&gt;Manage＞Sources＞Edit＞Add&lt;/span&gt;&lt;br /&gt;&lt;table align="center" cellpadding="0" cellspacing="0" class="tr-caption-container" style="margin-left: auto; margin-right: auto; text-align: center;"&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td style="text-align: center;"&gt;&lt;a href="http://2.bp.blogspot.com/-oM6tukXOHK4/TsNUf90nJMI/AAAAAAAAA3c/1Hw1wXpf-q8/s280/28.PNG" imageanchor="1" style="margin-left: auto; margin-right: auto;"&gt;&lt;img border="0" src="http://2.bp.blogspot.com/-oM6tukXOHK4/TsNUf90nJMI/AAAAAAAAA3c/1Hw1wXpf-q8/s280/28.PNG" /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class="tr-caption" style="text-align: center;"&gt;&lt;br /&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;/div&gt;&lt;div style="text-align: left;"&gt;&lt;b style="-webkit-text-size-adjust: none; background-color: white; color: #4c4c4c; font-family: メイリオ, 'ＭＳ Ｐゴシック', Osaka, Arial, Helvetica; font-size: 16px; line-height: 20px; text-align: -webkit-auto;"&gt;输入「http://v.backspace.jp/repo/」&lt;/b&gt;&lt;span style="-webkit-text-size-adjust: none; background-color: white; color: #4c4c4c; font-family: メイリオ, 'ＭＳ Ｐゴシック', Osaka, Arial, Helvetica; font-size: 16px; line-height: 20px; text-align: -webkit-auto;"&gt;＞Add Source&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: left;"&gt;&lt;span style="-webkit-text-size-adjust: none; color: #4c4c4c; font-family: メイリオ, 'ＭＳ Ｐゴシック', Osaka, Arial, Helvetica; line-height: 20px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;b style="-webkit-text-size-adjust: none; background-color: white; color: #4c4c4c; font-family: メイリオ, 'ＭＳ Ｐゴシック', Osaka, Arial, Helvetica; font-size: 16px; line-height: 20px; text-align: -webkit-auto;"&gt;&lt;/b&gt;&lt;br /&gt;&lt;div style="text-align: left;"&gt;&lt;b style="-webkit-text-size-adjust: none; background-color: white; color: #4c4c4c; font-family: メイリオ, 'ＭＳ Ｐゴシック', Osaka, Arial, Helvetica; font-size: 16px; line-height: 20px; text-align: -webkit-auto;"&gt;&lt;b&gt;Step 3&lt;/b&gt;&amp;nbsp;从刚才添加的源里找到「CommCenter* patch for iOS 5」并安装&lt;/b&gt;&lt;/div&gt;&lt;b style="-webkit-text-size-adjust: none; background-color: white; color: #4c4c4c; font-family: メイリオ, 'ＭＳ Ｐゴシック', Osaka, Arial, Helvetica; font-size: 16px; line-height: 20px; text-align: -webkit-auto;"&gt;&lt;/b&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;b style="-webkit-text-size-adjust: none; background-color: white; color: #4c4c4c; font-family: メイリオ, 'ＭＳ Ｐゴシック', Osaka, Arial, Helvetica; font-size: 16px; line-height: 20px; text-align: -webkit-auto;"&gt;&lt;a href="http://2.bp.blogspot.com/-nbVOjBMQIBQ/TsNUeFZvYjI/AAAAAAAAA2Q/6X2Jh7HwWO8/s280/29.PNG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://2.bp.blogspot.com/-nbVOjBMQIBQ/TsNUeFZvYjI/AAAAAAAAA2Q/6X2Jh7HwWO8/s280/29.PNG" /&gt;&lt;/a&gt;&lt;/b&gt;&lt;/div&gt;&lt;b style="-webkit-text-size-adjust: none; background-color: white; color: #4c4c4c; font-family: メイリオ, 'ＭＳ Ｐゴシック', Osaka, Arial, Helvetica; font-size: 16px; line-height: 20px; text-align: -webkit-auto;"&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: left;"&gt;&lt;b style="text-align: -webkit-auto;"&gt;Step 4&lt;/b&gt;&lt;span style="font-weight: normal; text-align: -webkit-auto;"&gt;&amp;nbsp;使用iPhone Explorer之类软件查看iPhone的系统文件（国内的91手机助手的文件管理也可以）&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.macroplant.com/iexplorer/" style="color: #6699cc; font-weight: normal; text-align: -webkit-auto; text-decoration: none;" target="_blank"&gt;&lt;img align="left" alt="" border="0" class="alignleft" height="130" src="http://capture.heartrails.com/150x130/shadow?http://www.macroplant.com/iexplorer/" style="border-bottom-style: none; border-color: initial; border-image: initial; border-left-style: none; border-right-style: none; border-top-style: none; border-width: initial; position: relative;" width="150" /&gt;&lt;/a&gt;&lt;a href="http://www.macroplant.com/iexplorer/" style="color: #6699cc; font-weight: normal; text-align: -webkit-auto; text-decoration: none;" target="_blank"&gt;&lt;b&gt;iExplorer - Formerly iPhone Explorer, is an iPhone browser for Mac and PC&lt;/b&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: normal; text-align: -webkit-auto;"&gt;iExplorer, formerly called iPhone Explorer, lets you use an iPhone or iPad in disk mode, like a flash drive. iExplorer is an iPhone browser or iPad file explorer that runs on Mac &amp;amp; PC that lets you br ...&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: normal; text-align: -webkit-auto;"&gt;softbank的话，打开文件夹/System/Library/Carrier Bundles/iPhone/Softbank_jp.bundle/&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: normal; text-align: -webkit-auto;"&gt;au的话、/System/Library/Carrier Bundles/iPhone/KDDI_jp.bundle/&lt;/span&gt;&lt;br /&gt;（国内行货的手机据说没有关闭个人热点功能，直接在设置&amp;gt;通用&amp;gt;网络里打开【个人热点】开关就可以用了）&lt;br /&gt;&lt;b style="text-align: -webkit-auto;"&gt;复制「carrier.plist」这个文件到电脑桌面或其他地方&lt;/b&gt;&lt;br /&gt;&lt;span style="background-color: white; color: #4c4c4c; font-family: Arial; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt;Step 5&lt;/span&gt;&lt;span style="background-color: white; color: #4c4c4c; font-family: Arial; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt; 使用plist Editor之类软件编辑「carrier.plist」文件，&lt;/span&gt;&lt;span style="background-color: transparent; font-family: Arial; font-size: 15px; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt;下面链接可以下载 plist Editor&lt;/span&gt;&lt;br /&gt;&lt;b style="background-color: transparent;"&gt;&lt;/b&gt;&lt;a href="http://www.icopybot.com/download.htm" style="background-color: transparent;"&gt;&lt;span style="background-color: white; color: #6699cc; font-family: Arial; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt;Download iPod software for Windows&lt;/span&gt;&lt;/a&gt;&lt;span style="background-color: white; color: #4c4c4c; font-family: Arial; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt; &lt;/span&gt;&lt;/div&gt;&lt;/b&gt;&lt;div&gt;&lt;span id="internal-source-marker_0.27849957370199263"&gt;&lt;span style="background-color: white; color: #4c4c4c; font-family: Arial; font-size: 16px; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: white; color: #4c4c4c; font-family: Arial; font-size: 16px; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt;plist Editor for Windows (Freeware) (Platforms: Windows 7 (32/64-bit), Vista (32/64-bit), XP) ...&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: white; color: #4c4c4c; font-family: Arial; font-size: 16px; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: white; color: #4c4c4c; font-family: Arial; font-size: 16px; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt;&lt;/span&gt;&lt;b&gt;&lt;img height="250px;" src="https://lh4.googleusercontent.com/6BhHuQccJI9CrssHQDf1P_SO5EJZAjNGmyZlLzpt-QrxRHt26AGg6MI63MglmfwaPiTLVGVX6dTQuO4ljjZpH4NsCHx2hbSs2BbF5_klnciIoNCM3-M" width="280px;" /&gt;&lt;/b&gt;&lt;br /&gt;&lt;span style="background-color: white; color: #4c4c4c; font-family: Arial; font-size: 16px; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: white; color: #4c4c4c; font-family: Arial; font-size: 16px; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt;softbank的话，把196行的「7」改成「55」&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;div dir="ltr" style="font-weight: bold;"&gt;&lt;table style="border-bottom-style: none; border-collapse: collapse; border-color: initial; border-image: initial; border-left-style: none; border-right-style: none; border-top-style: none; border-width: initial;"&gt;&lt;colgroup&gt;&lt;col width="64"&gt;&lt;/col&gt;&lt;col width="187"&gt;&lt;/col&gt;&lt;/colgroup&gt;&lt;tbody&gt;&lt;tr style="height: 0px;"&gt;&lt;td style="border-bottom-color: rgb(170, 170, 170); border-bottom-style: dotted; border-bottom-width: 1px; border-image: initial; border-left-color: rgb(170, 170, 170); border-left-style: dotted; border-left-width: 1px; border-right-color: rgb(170, 170, 170); border-right-style: dotted; border-right-width: 1px; border-top-color: rgb(170, 170, 170); border-top-style: dotted; border-top-width: 1px; padding-bottom: 7px; padding-left: 7px; padding-right: 7px; padding-top: 7px; vertical-align: top;"&gt;&lt;span style="font-family: Consolas; font-size: 15px; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt;1&lt;/span&gt;&lt;/td&gt;&lt;td style="border-bottom-color: rgb(170, 170, 170); border-bottom-style: dotted; border-bottom-width: 1px; border-image: initial; border-left-color: rgb(170, 170, 170); border-left-style: dotted; border-left-width: 1px; border-right-color: rgb(170, 170, 170); border-right-style: dotted; border-right-width: 1px; border-top-color: rgb(170, 170, 170); border-top-style: dotted; border-top-width: 1px; padding-bottom: 7px; padding-left: 7px; padding-right: 7px; padding-top: 7px; vertical-align: top;"&gt;&lt;span style="font-family: Consolas; font-size: 15px; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt;key&amp;gt;type-mask&lt;key&gt;&lt;/key&gt;&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;&lt;span id="internal-source-marker_0.27849957370199263"&gt;&lt;br /&gt;&lt;span style="font-family: Consolas; font-size: 15px; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt;&lt;/span&gt;&lt;div dir="ltr" style="font-weight: bold;"&gt;&lt;table style="border-bottom-style: none; border-collapse: collapse; border-color: initial; border-image: initial; border-left-style: none; border-right-style: none; border-top-style: none; border-width: initial;"&gt;&lt;colgroup&gt;&lt;col width="64"&gt;&lt;/col&gt;&lt;col width="196"&gt;&lt;/col&gt;&lt;/colgroup&gt;&lt;tbody&gt;&lt;tr style="height: 0px;"&gt;&lt;td style="border-bottom-color: rgb(170, 170, 170); border-bottom-style: dotted; border-bottom-width: 1px; border-image: initial; border-left-color: rgb(170, 170, 170); border-left-style: dotted; border-left-width: 1px; border-right-color: rgb(170, 170, 170); border-right-style: dotted; border-right-width: 1px; border-top-color: rgb(170, 170, 170); border-top-style: dotted; border-top-width: 1px; padding-bottom: 7px; padding-left: 7px; padding-right: 7px; padding-top: 7px; vertical-align: top;"&gt;&lt;span style="font-family: Consolas; font-size: 15px; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt;2&lt;/span&gt;&lt;/td&gt;&lt;td style="border-bottom-color: rgb(170, 170, 170); border-bottom-style: dotted; border-bottom-width: 1px; border-image: initial; border-left-color: rgb(170, 170, 170); border-left-style: dotted; border-left-width: 1px; border-right-color: rgb(170, 170, 170); border-right-style: dotted; border-right-width: 1px; border-top-color: rgb(170, 170, 170); border-top-style: dotted; border-top-width: 1px; padding-bottom: 7px; padding-left: 7px; padding-right: 7px; padding-top: 7px; vertical-align: top;"&gt;&lt;span style="font-family: Consolas; font-size: 15px; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt;integer&amp;gt;55&lt;integer&gt;&lt;/integer&gt;&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;&lt;br /&gt;&lt;span style="font-family: Arial; font-size: 15px; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt;au话、把272的「1」改成「49」&lt;/span&gt;&lt;span style="color: #000099; font-family: Consolas;"&gt;&lt;span style="font-size: 15px; white-space: pre-wrap;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;div dir="ltr" style="font-weight: bold;"&gt;&lt;table style="border-bottom-style: none; border-collapse: collapse; border-color: initial; border-image: initial; border-left-style: none; border-right-style: none; border-top-style: none; border-width: initial;"&gt;&lt;colgroup&gt;&lt;col width="64"&gt;&lt;/col&gt;&lt;col width="196"&gt;&lt;/col&gt;&lt;/colgroup&gt;&lt;tbody&gt;&lt;tr style="height: 0px;"&gt;&lt;td style="border-bottom-color: rgb(170, 170, 170); border-bottom-style: dotted; border-bottom-width: 1px; border-image: initial; border-left-color: rgb(170, 170, 170); border-left-style: dotted; border-left-width: 1px; border-right-color: rgb(170, 170, 170); border-right-style: dotted; border-right-width: 1px; border-top-color: rgb(170, 170, 170); border-top-style: dotted; border-top-width: 1px; padding-bottom: 7px; padding-left: 7px; padding-right: 7px; padding-top: 7px; vertical-align: top;"&gt;&lt;span style="font-family: Consolas; font-size: 15px; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt;1&lt;/span&gt;&lt;/td&gt;&lt;td style="border-bottom-color: rgb(170, 170, 170); border-bottom-style: dotted; border-bottom-width: 1px; border-image: initial; border-left-color: rgb(170, 170, 170); border-left-style: dotted; border-left-width: 1px; border-right-color: rgb(170, 170, 170); border-right-style: dotted; border-right-width: 1px; border-top-color: rgb(170, 170, 170); border-top-style: dotted; border-top-width: 1px; padding-bottom: 7px; padding-left: 7px; padding-right: 7px; padding-top: 7px; vertical-align: top;"&gt;&lt;span style="font-family: Consolas; font-size: 15px; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt;key&amp;gt;type-mask&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;&lt;br /&gt;&lt;span style="font-family: Consolas; font-size: 15px; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt;&lt;/span&gt;&lt;div dir="ltr" style="font-weight: bold;"&gt;&lt;table style="border-bottom-style: none; border-collapse: collapse; border-color: initial; border-image: initial; border-left-style: none; border-right-style: none; border-top-style: none; border-width: initial;"&gt;&lt;colgroup&gt;&lt;col width="64"&gt;&lt;/col&gt;&lt;col width="205"&gt;&lt;/col&gt;&lt;/colgroup&gt;&lt;tbody&gt;&lt;tr style="height: 0px;"&gt;&lt;td style="border-bottom-color: rgb(170, 170, 170); border-bottom-style: dotted; border-bottom-width: 1px; border-image: initial; border-left-color: rgb(170, 170, 170); border-left-style: dotted; border-left-width: 1px; border-right-color: rgb(170, 170, 170); border-right-style: dotted; border-right-width: 1px; border-top-color: rgb(170, 170, 170); border-top-style: dotted; border-top-width: 1px; padding-bottom: 7px; padding-left: 7px; padding-right: 7px; padding-top: 7px; vertical-align: top;"&gt;&lt;span style="font-family: Consolas; font-size: 15px; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt;2&lt;/span&gt;&lt;/td&gt;&lt;td style="border-bottom-color: rgb(170, 170, 170); border-bottom-style: dotted; border-bottom-width: 1px; border-image: initial; border-left-color: rgb(170, 170, 170); border-left-style: dotted; border-left-width: 1px; border-right-color: rgb(170, 170, 170); border-right-style: dotted; border-right-width: 1px; border-top-color: rgb(170, 170, 170); border-top-style: dotted; border-top-width: 1px; padding-bottom: 7px; padding-left: 7px; padding-right: 7px; padding-top: 7px; vertical-align: top;"&gt;&lt;span style="font-family: Consolas; font-size: 15px; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt;integer&amp;gt;49&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;&lt;br /&gt;&lt;span style="font-family: Arial; font-size: 15px; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt;保存更改过的文件、然后复制到iPhone上替换原来的文件重启iPhone（关闭电源再打开）&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial; font-size: 15px; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial; font-size: 15px; font-weight: bold; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt;Step 6&lt;/span&gt;&lt;span style="font-family: Arial; font-size: 15px; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt; 还原网络设置&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-family: Arial; font-size: 15px; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="https://lh3.googleusercontent.com/DZIr_xv7xyVUx_LabNwYUeQdCBYtgqAqDidchS_KuQWbZ-ZBO8tShRknkRyeEMlGNu1wHBnkgS4E-K9jJErgjxgndq1uk5ADn6no2Nv-ia8M_SMZf-s" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="427px;" src="https://lh3.googleusercontent.com/DZIr_xv7xyVUx_LabNwYUeQdCBYtgqAqDidchS_KuQWbZ-ZBO8tShRknkRyeEMlGNu1wHBnkgS4E-K9jJErgjxgndq1uk5ADn6no2Nv-ia8M_SMZf-s" width="284px;" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;&lt;/b&gt;&lt;br /&gt;&lt;span style="background-color: white; color: #4c4c4c; font-family: Arial; font-size: 16px; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt;设置＞通用＞还原＞还原网络设置&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: white; color: #4c4c4c; font-family: Arial; font-size: 16px; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt;Respring之后，在 设置＞通用＞网络下面能够看到【个人热点】的开关&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: white; color: #4c4c4c; font-family: Arial; font-size: 16px; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt;（如果看不到的话，就重新再还原几次网络设置）&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: white; color: #4c4c4c; font-family: Arial; font-size: 16px; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt;如果au版手机看不到的话试着把/var/mobile/Library/Carrier Bundle.bundle/carrier.plist这个文件按Step5方法编辑。&lt;/span&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;b style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img height="427px;" src="https://lh6.googleusercontent.com/kEVfF2dQAhfRRg8yXas4WcmbUHuwY94d3za1U1GjrsgmkqOJZzO6DybxYPzULQmn4rEN56jhuEWlDdaHMPJGoSHP8D2kSw8b-ZuvX8pSazDno2XWbuc" width="284px;" /&gt;&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;span style="background-color: white; color: #4c4c4c; font-family: Arial; font-size: 16px; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: white; color: #4c4c4c; font-family: Arial; font-size: 16px; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: white; color: #4c4c4c; font-family: Arial; font-size: 16px; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt;把个人热点开关打开设置共享密码就能实现网络共享了。赶快用你的本本试试吧！&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: white; color: #4c4c4c; font-family: Arial; font-size: 16px; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt;&lt;/span&gt;&lt;span style="background-color: white; color: #4c4c4c; font-family: Arial; font-size: 16px; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"&gt;iPhone3GS、好像只能使用Bluetooth和USB进行网络链接、iPhone 4,4S可以使用WiFi功能。&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://1.bp.blogspot.com/-pg_P8rX0MD8/TyVMr9TQujI/AAAAAAAAAVY/ITz1IRHgvCc/s1600/12-1-29+-+4" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="400" src="http://1.bp.blogspot.com/-pg_P8rX0MD8/TyVMr9TQujI/AAAAAAAAAVY/ITz1IRHgvCc/s400/12-1-29+-+4" width="266" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;span class="imgs" style="-webkit-text-size-adjust: none; background-color: white; color: #4c4c4c; font-family: メイリオ, 'ＭＳ Ｐゴシック', Osaka, Arial, Helvetica; font-size: 16px; line-height: 20px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="imgs" style="-webkit-text-size-adjust: none; background-color: white; color: #4c4c4c; font-family: メイリオ, 'ＭＳ Ｐゴシック', Osaka, Arial, Helvetica; font-size: 16px; line-height: 20px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4797191850097376689-1460478912832021826?l=jackyma1981.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://jackyma1981.blogspot.com/feeds/1460478912832021826/comments/default' title='帖子评论'/><link rel='replies' type='text/html' href='http://jackyma1981.blogspot.com/2012/01/mywi-iphone44s-3g.html#comment-form' title='0 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4797191850097376689/posts/default/1460478912832021826'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4797191850097376689/posts/default/1460478912832021826'/><link rel='alternate' type='text/html' href='http://jackyma1981.blogspot.com/2012/01/mywi-iphone44s-3g.html' title='日本SoftBank au 版 iPhone 4/4S 不用MyWi 简单 开启个人热点（Personal Hotspot），实现3G网络共享'/><author><name>jacky ma</name><uri>https://profiles.google.com/115194989602674585864</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh5.googleusercontent.com/-pOworGIeDAk/AAAAAAAAAAI/AAAAAAAAAW4/yeNXTusAYmY/s512-c/photo.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://2.bp.blogspot.com/-oM6tukXOHK4/TsNUf90nJMI/AAAAAAAAA3c/1Hw1wXpf-q8/s72-c/28.PNG' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4797191850097376689.post-6590450439406639683</id><published>2010-12-04T06:19:00.000-08:00</published><updated>2010-12-04T06:20:04.427-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='iphone'/><title type='text'>iphone正确恢复固件(进入DFU模式)的三种方法</title><content type='html'>&lt;span class="Apple-style-span" style="color: rgb(74, 74, 74); font-family: Arial; font-size: 14px; line-height: 24px; border-collapse: collapse; "&gt;&lt;b style="outline-style: none; outline-width: initial; outline-color: initial; "&gt;&lt;span style="outline-style: none; outline-width: initial; outline-color: initial; line-height: 1.5em; "&gt;&lt;span style="outline-style: none; outline-width: initial; outline-color: initial; color: rgb(102, 51, 0); "&gt;iphone正确恢复固件(进入DFU模式)的三种方法&lt;/span&gt;&lt;/span&gt;&lt;/b&gt; &lt;br /&gt;&lt;br /&gt;&lt;b style="outline-style: none; outline-width: initial; outline-color: initial; "&gt;第一种方法 : 正常恢复&lt;/b&gt; &lt;br /&gt;1.将你的iPhone关机 &lt;br /&gt;2.同时按住开关机键和home键 &lt;br /&gt;3.当你看见白色的苹果logo时,请松开开关机键,并继续保持按住home键 &lt;br /&gt;4.开启iTunes,等待其提示你进行恢复模式后,即可按住键盘上的shift键,点击'' 恢复'' , 选择相应的固件进行恢复 &lt;br /&gt;&lt;br /&gt;&lt;b style="outline-style: none; outline-width: initial; outline-color: initial; "&gt;第二个方法 : 黑屏恢复&lt;/b&gt; &lt;br /&gt;1.用USB线将iPhone连接上电脑,然后你将会听见电脑已连接成功的提示声音 &lt;br /&gt;2.现在请先将iPhone关机,然后你将会听见电脑未连接成功的提示声音 &lt;br /&gt;3.请同时按住开关机键和home键,持续到第10秒的时候,请立即松开开关键,并继续保持按住home键 &lt;br /&gt;4.这个时候iTunes会自动启动,并提示你进行恢复模式(iPhone会一直保持黑屏状态) , 那么你就可以按住键盘上的shift键,点击 '' 恢复'', 选择相应的固件进行恢复 &lt;br /&gt;&lt;br /&gt;第三个方法 : 下载第三方软件辅助进入DFU模式,不按任何键即可进入DFU模式(不实用,就不介绍了)&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4797191850097376689-6590450439406639683?l=jackyma1981.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://jackyma1981.blogspot.com/feeds/6590450439406639683/comments/default' title='帖子评论'/><link rel='replies' type='text/html' href='http://jackyma1981.blogspot.com/2010/12/iphonedfu.html#comment-form' title='0 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4797191850097376689/posts/default/6590450439406639683'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4797191850097376689/posts/default/6590450439406639683'/><link rel='alternate' type='text/html' href='http://jackyma1981.blogspot.com/2010/12/iphonedfu.html' title='iphone正确恢复固件(进入DFU模式)的三种方法'/><author><name>jacky ma</name><uri>https://profiles.google.com/115194989602674585864</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh5.googleusercontent.com/-pOworGIeDAk/AAAAAAAAAAI/AAAAAAAAAW4/yeNXTusAYmY/s512-c/photo.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4797191850097376689.post-5000012889504347895</id><published>2010-08-05T07:11:00.000-07:00</published><updated>2010-08-05T07:11:56.463-07:00</updated><title type='text'>使用JailbreakMe越狱iPhone【4.0.0/4.0.1】-iPhone中文网-91手机娱乐门户</title><content type='html'>&lt;a href="http://iphone.sj.91.com/content/2010-08-01/20100801184859128,1.shtml"&gt;使用JailbreakMe越狱iPhone【4.0.0/4.0.1】-iPhone中文网-91手机娱乐门户&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4797191850097376689-5000012889504347895?l=jackyma1981.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='related' href='http://iphone.sj.91.com/content/2010-08-01/20100801184859128,1.shtml' title='使用JailbreakMe越狱iPhone【4.0.0/4.0.1】-iPhone中文网-91手机娱乐门户'/><link rel='replies' type='application/atom+xml' href='http://jackyma1981.blogspot.com/feeds/5000012889504347895/comments/default' title='帖子评论'/><link rel='replies' type='text/html' href='http://jackyma1981.blogspot.com/2010/08/jailbreakmeiphone400401-iphone-91.html#comment-form' title='8 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4797191850097376689/posts/default/5000012889504347895'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4797191850097376689/posts/default/5000012889504347895'/><link rel='alternate' type='text/html' href='http://jackyma1981.blogspot.com/2010/08/jailbreakmeiphone400401-iphone-91.html' title='使用JailbreakMe越狱iPhone【4.0.0/4.0.1】-iPhone中文网-91手机娱乐门户'/><author><name>jacky ma</name><uri>https://profiles.google.com/115194989602674585864</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh5.googleusercontent.com/-pOworGIeDAk/AAAAAAAAAAI/AAAAAAAAAW4/yeNXTusAYmY/s512-c/photo.jpg'/></author><thr:total>8</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4797191850097376689.post-4650786697939006477</id><published>2010-07-05T19:55:00.000-07:00</published><updated>2010-07-05T19:57:55.587-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Android'/><title type='text'>收藏：第一个 Android 程序 — Hello World</title><content type='html'>&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, Geneva, sans-serif; font-size: 14px; color: rgb(68, 68, 68); line-height: 23px; "&gt;&lt;p style="padding-top: 5px; padding-right: 0px; padding-bottom: 5px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "&gt;原文出自&lt;a href="http://www.mxjava.com/android-helloworld.html"&gt;http://www.mxjava.com/android-helloworld.html&lt;/a&gt;&lt;/p&gt;&lt;p style="padding-top: 5px; padding-right: 0px; padding-bottom: 5px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "&gt;通过《Android 开发环境的安装》我们了解了 Android 的一些基本知识，也介绍了如何安装 Android 开发环境。就从这一篇开始进入 Android 开发的学习过程。&lt;/p&gt;&lt;p style="padding-top: 5px; padding-right: 0px; padding-bottom: 5px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "&gt;　　任何一门语言或者框架的第一课都是精典的 Hello World，我们跟随主流，从 Hello World 开始吧。&lt;/p&gt;&lt;p style="padding-top: 5px; padding-right: 0px; padding-bottom: 5px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "&gt;　　有了 Eclipse 插件（Android ADT）创建并运行一个工程是十分容易的，只要简单的2个步骤就可以顺利完成 HelloWorld 。&lt;/p&gt;&lt;p style="padding-top: 5px; padding-right: 0px; padding-bottom: 5px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "&gt;1、单击菜单 File &gt; New &gt; Project 弹出的窗口选择创建一个新的 Android 项目。&lt;br /&gt;2、并在创建 Android 项目的对话框里填写项目的详细信息，确认无误后按下 finish 按钮一个工程就被顺利的创建成功了。&lt;span id="more-687" style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="padding-top: 5px; padding-right: 0px; padding-bottom: 5px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "&gt;&lt;img src="http://pic.yupoo.com/hiswing/4836097d491a/5kdaxf41.png" alt="" style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; border-top-style: none; border-right-style: none; border-bottom-style: none; border-left-style: none; border-width: initial; border-color: initial; max-width: 500px; " /&gt;&lt;/p&gt;&lt;p style="padding-top: 5px; padding-right: 0px; padding-bottom: 5px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "&gt;创建的工程结构如下：&lt;/p&gt;&lt;p style="padding-top: 5px; padding-right: 0px; padding-bottom: 5px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "&gt;&lt;img src="http://pic.yupoo.com/hiswing/9753097d491b/ndow8jai.png" alt="" style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; border-top-style: none; border-right-style: none; border-bottom-style: none; border-left-style: none; border-width: initial; border-color: initial; max-width: 500px; " /&gt;&lt;/p&gt;&lt;p style="padding-top: 5px; padding-right: 0px; padding-bottom: 5px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "&gt;　　&lt;strong style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "&gt;简单介绍一下几个比较重要的目录。&lt;/strong&gt;&lt;br /&gt;1、src 目录用于存放代码。&lt;br /&gt;2、gen 目录用于存放对应该资源文件的代码。&lt;br /&gt;3、res 目录用于存放资源文件。&lt;br /&gt;4、res\layout 目录用于存放布局描述文件。&lt;br /&gt;5、res\values 目录用于存放常量定义文件。&lt;/p&gt;&lt;p style="padding-top: 5px; padding-right: 0px; padding-bottom: 5px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "&gt;　　&lt;strong style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "&gt;简单介绍一下几个比较重要的文件。&lt;/strong&gt;&lt;br /&gt;1、HelloWorld.java 程序代码文件，其内容与一般 Java 程序格式完全相同。&lt;/p&gt;&lt;div class="dp-highlighter" style="padding-top: 1px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 18px; margin-right: 0px; margin-bottom: 18px; margin-left: 0px; font-family: Consolas, 'Courier New', Courier, mono; font-size: 12px; background-color: rgb(231, 229, 220); width: 504px; overflow-x: auto; overflow-y: auto; "&gt;&lt;div class="bar" style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 45px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "&gt;&lt;div class="tools" style="padding-top: 3px; padding-right: 8px; padding-bottom: 10px; padding-left: 10px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 9px/normal Verdana, Geneva, Arial, Helvetica, sans-serif; color: silver; background-color: rgb(248, 248, 248); border-left-width: 3px; border-left-style: solid; border-left-color: rgb(108, 226, 108); "&gt;&lt;a href="http://www.mxjava.com/android-helloworld.html#" onclick="dp.sh.Toolbar.Command('ViewSource',this);return false;" style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 10px; margin-bottom: 0px; margin-left: 0px; color: rgb(160, 160, 160); text-decoration: none; outline-style: none; outline-width: initial; outline-color: initial; font-size: 9px; "&gt;view plain&lt;/a&gt;&lt;a href="http://www.mxjava.com/android-helloworld.html#" onclick="dp.sh.Toolbar.Command('CopyToClipboard',this);return false;" style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 10px; margin-bottom: 0px; margin-left: 0px; color: rgb(160, 160, 160); text-decoration: none; outline-style: none; outline-width: initial; outline-color: initial; font-size: 9px; "&gt;copy to clipboard&lt;/a&gt;&lt;a href="http://www.mxjava.com/android-helloworld.html#" onclick="dp.sh.Toolbar.Command('PrintSource',this);return false;" style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 10px; margin-bottom: 0px; margin-left: 0px; color: rgb(160, 160, 160); text-decoration: none; outline-style: none; outline-width: initial; outline-color: initial; font-size: 9px; "&gt;print&lt;/a&gt;&lt;a href="http://www.mxjava.com/android-helloworld.html#" onclick="dp.sh.Toolbar.Command('About',this);return false;" style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 10px; margin-bottom: 0px; margin-left: 0px; color: rgb(160, 160, 160); text-decoration: none; outline-style: none; outline-width: initial; outline-color: initial; font-size: 9px; "&gt;?&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;ol start="1" class="dp-j" style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 1px; margin-left: 45px; list-style-type: decimal-leading-zero; list-style-position: initial; list-style-image: initial; background-color: rgb(255, 255, 255); color: rgb(92, 92, 92); "&gt;&lt;li class="alt" style="padding-top: 10px; padding-right: 10px; padding-bottom: 10px; padding-left: 10px; margin-top: 0px; margin-right: 0px; margin-bottom: 3px; margin-left: 0px; border-left-width: 3px; border-left-style: solid; border-left-color: rgb(108, 226, 108); background-color: rgb(255, 255, 255); line-height: 14px; "&gt;&lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: black; "&gt;&lt;span class="keyword" style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(0, 102, 153); font-weight: bold; "&gt;package&lt;/span&gt;&lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: black; "&gt; com.mxjava.android.hello;  &lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="" style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 10px; margin-top: 0px; margin-right: 0px; margin-bottom: 3px; margin-left: 0px; border-left-width: 3px; border-left-style: solid; border-left-color: rgb(108, 226, 108); background-color: rgb(248, 248, 248); line-height: 14px; "&gt;&lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: black; "&gt;  &lt;/span&gt;&lt;/li&gt;&lt;li class="alt" style="padding-top: 10px; padding-right: 10px; padding-bottom: 10px; padding-left: 10px; margin-top: 0px; margin-right: 0px; margin-bottom: 3px; margin-left: 0px; border-left-width: 3px; border-left-style: solid; border-left-color: rgb(108, 226, 108); background-color: rgb(255, 255, 255); line-height: 14px; "&gt;&lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: black; "&gt;&lt;span class="keyword" style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(0, 102, 153); font-weight: bold; "&gt;import&lt;/span&gt;&lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: black; "&gt; android.app.Activity;  &lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="" style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 10px; margin-top: 0px; margin-right: 0px; margin-bottom: 3px; margin-left: 0px; border-left-width: 3px; border-left-style: solid; border-left-color: rgb(108, 226, 108); background-color: rgb(248, 248, 248); line-height: 14px; "&gt;&lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: black; "&gt;&lt;span class="keyword" style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(0, 102, 153); font-weight: bold; "&gt;import&lt;/span&gt;&lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: black; "&gt; android.os.Bundle;  &lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="alt" style="padding-top: 10px; padding-right: 10px; padding-bottom: 10px; padding-left: 10px; margin-top: 0px; margin-right: 0px; margin-bottom: 3px; margin-left: 0px; border-left-width: 3px; border-left-style: solid; border-left-color: rgb(108, 226, 108); background-color: rgb(255, 255, 255); line-height: 14px; "&gt;&lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: black; "&gt;  &lt;/span&gt;&lt;/li&gt;&lt;li class="" style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 10px; margin-top: 0px; margin-right: 0px; margin-bottom: 3px; margin-left: 0px; border-left-width: 3px; border-left-style: solid; border-left-color: rgb(108, 226, 108); background-color: rgb(248, 248, 248); line-height: 14px; "&gt;&lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: black; "&gt;&lt;span class="keyword" style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(0, 102, 153); font-weight: bold; "&gt;public&lt;/span&gt;&lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: black; "&gt; &lt;/span&gt;&lt;span class="keyword" style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(0, 102, 153); font-weight: bold; "&gt;class&lt;/span&gt;&lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: black; "&gt; HelloWorld &lt;/span&gt;&lt;span class="keyword" style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(0, 102, 153); font-weight: bold; "&gt;extends&lt;/span&gt;&lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: black; "&gt; Activity {  &lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="alt" style="padding-top: 10px; padding-right: 10px; padding-bottom: 10px; padding-left: 10px; margin-top: 0px; margin-right: 0px; margin-bottom: 3px; margin-left: 0px; border-left-width: 3px; border-left-style: solid; border-left-color: rgb(108, 226, 108); background-color: rgb(255, 255, 255); line-height: 14px; "&gt;&lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: black; "&gt;    &lt;span class="comment" style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(0, 130, 0); "&gt;/** Called when the activity is first created. */&lt;/span&gt;&lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: black; "&gt;  &lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="" style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 10px; margin-top: 0px; margin-right: 0px; margin-bottom: 3px; margin-left: 0px; border-left-width: 3px; border-left-style: solid; border-left-color: rgb(108, 226, 108); background-color: rgb(248, 248, 248); line-height: 14px; "&gt;&lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: black; "&gt;    &lt;span class="annotation" style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(100, 100, 100); "&gt;@Override&lt;/span&gt;&lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: black; "&gt;  &lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="alt" style="padding-top: 10px; padding-right: 10px; padding-bottom: 10px; padding-left: 10px; margin-top: 0px; margin-right: 0px; margin-bottom: 3px; margin-left: 0px; border-left-width: 3px; border-left-style: solid; border-left-color: rgb(108, 226, 108); background-color: rgb(255, 255, 255); line-height: 14px; "&gt;&lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: black; "&gt;    &lt;span class="keyword" style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(0, 102, 153); font-weight: bold; "&gt;public&lt;/span&gt;&lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: black; "&gt; &lt;/span&gt;&lt;span class="keyword" style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(0, 102, 153); font-weight: bold; "&gt;void&lt;/span&gt;&lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: black; "&gt; onCreate(Bundle savedInstanceState) {  &lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="" style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 10px; margin-top: 0px; margin-right: 0px; margin-bottom: 3px; margin-left: 0px; border-left-width: 3px; border-left-style: solid; border-left-color: rgb(108, 226, 108); background-color: rgb(248, 248, 248); line-height: 14px; "&gt;&lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: black; "&gt;        &lt;span class="keyword" style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(0, 102, 153); font-weight: bold; "&gt;super&lt;/span&gt;&lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: black; "&gt;.onCreate(savedInstanceState);  &lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="alt" style="padding-top: 10px; padding-right: 10px; padding-bottom: 10px; padding-left: 10px; margin-top: 0px; margin-right: 0px; margin-bottom: 3px; margin-left: 0px; border-left-width: 3px; border-left-style: solid; border-left-color: rgb(108, 226, 108); background-color: rgb(255, 255, 255); line-height: 14px; "&gt;&lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: black; "&gt;        setContentView(R.layout.main);  &lt;/span&gt;&lt;/li&gt;&lt;li class="" style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 10px; margin-top: 0px; margin-right: 0px; margin-bottom: 3px; margin-left: 0px; border-left-width: 3px; border-left-style: solid; border-left-color: rgb(108, 226, 108); background-color: rgb(248, 248, 248); line-height: 14px; "&gt;&lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: black; "&gt;    }  &lt;/span&gt;&lt;/li&gt;&lt;li class="alt" style="padding-top: 10px; padding-right: 10px; padding-bottom: 10px; padding-left: 10px; margin-top: 0px; margin-right: 0px; margin-bottom: 3px; margin-left: 0px; border-left-width: 3px; border-left-style: solid; border-left-color: rgb(108, 226, 108); background-color: rgb(255, 255, 255); line-height: 14px; "&gt;&lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: black; "&gt;}  &lt;/span&gt;&lt;/li&gt;&lt;/ol&gt;&lt;/div&gt;&lt;p style="padding-top: 5px; padding-right: 0px; padding-bottom: 5px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "&gt;　　我们看到 HelloWorld 类继承了 Activity 类，并且覆写了 onCreate() 方法。方法中利用 setContentView() 方法来设置界面的布局。这里重点说明一下该方法的参数 R.layout.main 。R.java 文件存放在 gen 目录下，layout 是该类中的静态类，它对应 res\layout 目录。常量 main 对应 main.xml 文件。所以 R.layout.main 就对应着 res\layout\main.xml 文件。若在 res\layout\ 目录下新增一 Android 配置文件，ADT 会自动在 R 中增加相对应的代码。&lt;/p&gt;&lt;p style="padding-top: 5px; padding-right: 0px; padding-bottom: 5px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "&gt;　　main.xml 是界面布局配置文件，用于设计显示界面样式。&lt;/p&gt;&lt;div class="dp-highlighter" style="padding-top: 1px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 18px; margin-right: 0px; margin-bottom: 18px; margin-left: 0px; font-family: Consolas, 'Courier New', Courier, mono; font-size: 12px; background-color: rgb(231, 229, 220); width: 504px; overflow-x: auto; overflow-y: auto; "&gt;&lt;div class="bar" style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 45px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "&gt;&lt;div class="tools" style="padding-top: 3px; padding-right: 8px; padding-bottom: 10px; padding-left: 10px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 9px/normal Verdana, Geneva, Arial, Helvetica, sans-serif; color: silver; background-color: rgb(248, 248, 248); border-left-width: 3px; border-left-style: solid; border-left-color: rgb(108, 226, 108); "&gt;&lt;a href="http://www.mxjava.com/android-helloworld.html#" onclick="dp.sh.Toolbar.Command('ViewSource',this);return false;" style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 10px; margin-bottom: 0px; margin-left: 0px; color: rgb(160, 160, 160); text-decoration: none; outline-style: none; outline-width: initial; outline-color: initial; font-size: 9px; "&gt;view plain&lt;/a&gt;&lt;a href="http://www.mxjava.com/android-helloworld.html#" onclick="dp.sh.Toolbar.Command('CopyToClipboard',this);return false;" style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 10px; margin-bottom: 0px; margin-left: 0px; color: rgb(160, 160, 160); text-decoration: none; outline-style: none; outline-width: initial; outline-color: initial; font-size: 9px; "&gt;copy to clipboard&lt;/a&gt;&lt;a href="http://www.mxjava.com/android-helloworld.html#" onclick="dp.sh.Toolbar.Command('PrintSource',this);return false;" style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 10px; margin-bottom: 0px; margin-left: 0px; color: rgb(160, 160, 160); text-decoration: none; outline-style: none; outline-width: initial; outline-color: initial; font-size: 9px; "&gt;print&lt;/a&gt;&lt;a href="http://www.mxjava.com/android-helloworld.html#" onclick="dp.sh.Toolbar.Command('About',this);return false;" style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 10px; margin-bottom: 0px; margin-left: 0px; color: rgb(160, 160, 160); text-decoration: none; outline-style: none; outline-width: initial; outline-color: initial; font-size: 9px; "&gt;?&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;ol start="1" class="dp-xml" style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 1px; margin-left: 45px; list-style-type: decimal-leading-zero; list-style-position: initial; list-style-image: initial; background-color: rgb(255, 255, 255); color: rgb(92, 92, 92); "&gt;&lt;li class="alt" style="padding-top: 10px; padding-right: 10px; padding-bottom: 10px; padding-left: 10px; margin-top: 0px; margin-right: 0px; margin-bottom: 3px; margin-left: 0px; border-left-width: 3px; border-left-style: solid; border-left-color: rgb(108, 226, 108); background-color: rgb(255, 255, 255); line-height: 14px; "&gt;&lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: black; "&gt;&lt;span class="tag" style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(0, 102, 153); font-weight: bold; "&gt;&lt;&lt;/span&gt;&lt;span class="tag-name" style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(0, 102, 153); font-weight: bold; "&gt;linearlayout&lt;/span&gt;&lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: black; "&gt; &lt;/span&gt;&lt;span class="attribute" style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: red; "&gt;xmlns:android&lt;/span&gt;&lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: black; "&gt;=&lt;/span&gt;&lt;span class="attribute-value" style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: blue; "&gt;"http://schemas.android.com/apk/res/android"&lt;/span&gt;&lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: black; "&gt; &lt;/span&gt;&lt;span class="attribute" style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: red; "&gt;android:orientation&lt;/span&gt;&lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: black; "&gt;=&lt;/span&gt;&lt;span class="attribute-value" style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: blue; "&gt;"vertical"&lt;/span&gt;&lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: black; "&gt; &lt;/span&gt;&lt;span class="attribute" style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: red; "&gt;android:layout_width&lt;/span&gt;&lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: black; "&gt;=&lt;/span&gt;&lt;span class="attribute-value" style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: blue; "&gt;"fill_parent"&lt;/span&gt;&lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: black; "&gt; &lt;/span&gt;&lt;span class="attribute" style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: red; "&gt;android:layout_height&lt;/span&gt;&lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: black; "&gt;=&lt;/span&gt;&lt;span class="attribute-value" style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: blue; "&gt;"fill_parent"&lt;/span&gt;&lt;span class="tag" style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(0, 102, 153); font-weight: bold; "&gt;&gt;&lt;/span&gt;&lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: black; "&gt;  &lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="" style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 10px; margin-top: 0px; margin-right: 0px; margin-bottom: 3px; margin-left: 0px; border-left-width: 3px; border-left-style: solid; border-left-color: rgb(108, 226, 108); background-color: rgb(248, 248, 248); line-height: 14px; "&gt;&lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: black; "&gt;&lt;span class="tag" style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(0, 102, 153); font-weight: bold; "&gt;&lt;&lt;/span&gt;&lt;span class="tag-name" style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(0, 102, 153); font-weight: bold; "&gt;textview&lt;/span&gt;&lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: black; "&gt; &lt;/span&gt;&lt;span class="attribute" style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: red; "&gt;android:layout_width&lt;/span&gt;&lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: black; "&gt;=&lt;/span&gt;&lt;span class="attribute-value" style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: blue; "&gt;"fill_parent"&lt;/span&gt;&lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: black; "&gt; &lt;/span&gt;&lt;span class="attribute" style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: red; "&gt;android:layout_height&lt;/span&gt;&lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: black; "&gt;=&lt;/span&gt;&lt;span class="attribute-value" style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: blue; "&gt;"wrap_content"&lt;/span&gt;&lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: black; "&gt; &lt;/span&gt;&lt;span class="attribute" style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: red; "&gt;android:text&lt;/span&gt;&lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: black; "&gt;=&lt;/span&gt;&lt;span class="attribute-value" style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: blue; "&gt;"@string/hello"&lt;/span&gt;&lt;span class="tag" style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(0, 102, 153); font-weight: bold; "&gt;&gt;&lt;/span&gt;&lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: black; "&gt;  &lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="alt" style="padding-top: 10px; padding-right: 10px; padding-bottom: 10px; padding-left: 10px; margin-top: 0px; margin-right: 0px; margin-bottom: 3px; margin-left: 0px; border-left-width: 3px; border-left-style: solid; border-left-color: rgb(108, 226, 108); background-color: rgb(255, 255, 255); line-height: 14px; "&gt;&lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: black; "&gt;&lt;span class="tag" style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(0, 102, 153); font-weight: bold; "&gt;&lt;/&lt;/span&gt;&lt;span class="tag-name" style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(0, 102, 153); font-weight: bold; "&gt;textview&lt;/span&gt;&lt;span class="tag" style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(0, 102, 153); font-weight: bold; "&gt;&gt;&lt;/span&gt;&lt;span class="tag" style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(0, 102, 153); font-weight: bold; "&gt;&lt;/&lt;/span&gt;&lt;span class="tag-name" style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(0, 102, 153); font-weight: bold; "&gt;linearlayout&lt;/span&gt;&lt;span class="tag" style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(0, 102, 153); font-weight: bold; "&gt;&gt;&lt;/span&gt;&lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: black; "&gt;  &lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;/ol&gt;&lt;/div&gt;&lt;p style="padding-top: 5px; padding-right: 0px; padding-bottom: 5px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "&gt;　　布局配置中设置了一个 TextView，表示界面上显示一个文本标签，属性 android:text 是显示的内容。这里是 @string/hello 。在这里 @ 是引用标志，string 是常量配置文件 string.xml ，hello 是 string.xml 中 name=”hello” 的配置项。让我们再看看 string.xml 的配置：&lt;/p&gt;&lt;div class="dp-highlighter" style="padding-top: 1px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 18px; margin-right: 0px; margin-bottom: 18px; margin-left: 0px; font-family: Consolas, 'Courier New', Courier, mono; font-size: 12px; background-color: rgb(231, 229, 220); width: 504px; overflow-x: auto; overflow-y: auto; "&gt;&lt;div class="bar" style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 45px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "&gt;&lt;div class="tools" style="padding-top: 3px; padding-right: 8px; padding-bottom: 10px; padding-left: 10px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 9px/normal Verdana, Geneva, Arial, Helvetica, sans-serif; color: silver; background-color: rgb(248, 248, 248); border-left-width: 3px; border-left-style: solid; border-left-color: rgb(108, 226, 108); "&gt;&lt;a href="http://www.mxjava.com/android-helloworld.html#" onclick="dp.sh.Toolbar.Command('ViewSource',this);return false;" style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 10px; margin-bottom: 0px; margin-left: 0px; color: rgb(160, 160, 160); text-decoration: none; outline-style: none; outline-width: initial; outline-color: initial; font-size: 9px; "&gt;view plain&lt;/a&gt;&lt;a href="http://www.mxjava.com/android-helloworld.html#" onclick="dp.sh.Toolbar.Command('CopyToClipboard',this);return false;" style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 10px; margin-bottom: 0px; margin-left: 0px; color: rgb(160, 160, 160); text-decoration: none; outline-style: none; outline-width: initial; outline-color: initial; font-size: 9px; "&gt;copy to clipboard&lt;/a&gt;&lt;a href="http://www.mxjava.com/android-helloworld.html#" onclick="dp.sh.Toolbar.Command('PrintSource',this);return false;" style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 10px; margin-bottom: 0px; margin-left: 0px; color: rgb(160, 160, 160); text-decoration: none; outline-style: none; outline-width: initial; outline-color: initial; font-size: 9px; "&gt;print&lt;/a&gt;&lt;a href="http://www.mxjava.com/android-helloworld.html#" onclick="dp.sh.Toolbar.Command('About',this);return false;" style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 10px; margin-bottom: 0px; margin-left: 0px; color: rgb(160, 160, 160); text-decoration: none; outline-style: none; outline-width: initial; outline-color: initial; font-size: 9px; "&gt;?&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;ol start="1" class="dp-xml" style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 1px; margin-left: 45px; list-style-type: decimal-leading-zero; list-style-position: initial; list-style-image: initial; background-color: rgb(255, 255, 255); color: rgb(92, 92, 92); "&gt;&lt;li class="alt" style="padding-top: 10px; padding-right: 10px; padding-bottom: 10px; padding-left: 10px; margin-top: 0px; margin-right: 0px; margin-bottom: 3px; margin-left: 0px; border-left-width: 3px; border-left-style: solid; border-left-color: rgb(108, 226, 108); background-color: rgb(255, 255, 255); line-height: 14px; "&gt;&lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: black; "&gt;&lt;span class="tag" style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(0, 102, 153); font-weight: bold; "&gt;&lt;&lt;/span&gt;&lt;span class="tag-name" style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(0, 102, 153); font-weight: bold; "&gt;resources&lt;/span&gt;&lt;span class="tag" style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(0, 102, 153); font-weight: bold; "&gt;&gt;&lt;/span&gt;&lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: black; "&gt;  &lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="" style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 10px; margin-top: 0px; margin-right: 0px; margin-bottom: 3px; margin-left: 0px; border-left-width: 3px; border-left-style: solid; border-left-color: rgb(108, 226, 108); background-color: rgb(248, 248, 248); line-height: 14px; "&gt;&lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: black; "&gt;    &lt;span class="tag" style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(0, 102, 153); font-weight: bold; "&gt;&lt;&lt;/span&gt;&lt;span class="tag-name" style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(0, 102, 153); font-weight: bold; "&gt;string&lt;/span&gt;&lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: black; "&gt; &lt;/span&gt;&lt;span class="attribute" style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: red; "&gt;name&lt;/span&gt;&lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: black; "&gt;=&lt;/span&gt;&lt;span class="attribute-value" style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: blue; "&gt;"hello"&lt;/span&gt;&lt;span class="tag" style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(0, 102, 153); font-weight: bold; "&gt;&gt;&lt;/span&gt;&lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: black; "&gt;Hello World, HelloWorld!&lt;/span&gt;&lt;span class="tag" style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(0, 102, 153); font-weight: bold; "&gt;&lt;/&lt;/span&gt;&lt;span class="tag-name" style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(0, 102, 153); font-weight: bold; "&gt;string&lt;/span&gt;&lt;span class="tag" style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(0, 102, 153); font-weight: bold; "&gt;&gt;&lt;/span&gt;&lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: black; "&gt;  &lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="alt" style="padding-top: 10px; padding-right: 10px; padding-bottom: 10px; padding-left: 10px; margin-top: 0px; margin-right: 0px; margin-bottom: 3px; margin-left: 0px; border-left-width: 3px; border-left-style: solid; border-left-color: rgb(108, 226, 108); background-color: rgb(255, 255, 255); line-height: 14px; "&gt;&lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: black; "&gt;    &lt;span class="tag" style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(0, 102, 153); font-weight: bold; "&gt;&lt;&lt;/span&gt;&lt;span class="tag-name" style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(0, 102, 153); font-weight: bold; "&gt;string&lt;/span&gt;&lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: black; "&gt; &lt;/span&gt;&lt;span class="attribute" style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: red; "&gt;name&lt;/span&gt;&lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: black; "&gt;=&lt;/span&gt;&lt;span class="attribute-value" style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: blue; "&gt;"app_name"&lt;/span&gt;&lt;span class="tag" style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(0, 102, 153); font-weight: bold; "&gt;&gt;&lt;/span&gt;&lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: black; "&gt;HelloWorld&lt;/span&gt;&lt;span class="tag" style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(0, 102, 153); font-weight: bold; "&gt;&lt;/&lt;/span&gt;&lt;span class="tag-name" style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(0, 102, 153); font-weight: bold; "&gt;string&lt;/span&gt;&lt;span class="tag" style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(0, 102, 153); font-weight: bold; "&gt;&gt;&lt;/span&gt;&lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: black; "&gt;  &lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="" style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 10px; margin-top: 0px; margin-right: 0px; margin-bottom: 3px; margin-left: 0px; border-left-width: 3px; border-left-style: solid; border-left-color: rgb(108, 226, 108); background-color: rgb(248, 248, 248); line-height: 14px; "&gt;&lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: black; "&gt;&lt;span class="tag" style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(0, 102, 153); font-weight: bold; "&gt;&lt;/&lt;/span&gt;&lt;span class="tag-name" style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(0, 102, 153); font-weight: bold; "&gt;resources&lt;/span&gt;&lt;span class="tag" style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(0, 102, 153); font-weight: bold; "&gt;&gt;&lt;/span&gt;&lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: black; "&gt;  &lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;/ol&gt;&lt;/div&gt;&lt;p style="padding-top: 5px; padding-right: 0px; padding-bottom: 5px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "&gt;　　hello 的值为 Hello World, HelloWorld!。所以文本标签的显示内容就为Hello World, HelloWorld!。&lt;/p&gt;&lt;p style="padding-top: 5px; padding-right: 0px; padding-bottom: 5px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "&gt;　　每一个项目都包含一个 AndroidManifest.xml 配置文件，该文件配置了程序的各种设定。比如前端应用程序 Activity (Foreground Activities)，后台服务（Background Services）以及间隔执行的 Activity (Intermittent Activities)。HelloWorld 类继承自 Activity ，所以它是一个前端应用程序，其配置如下：&lt;/p&gt;&lt;div class="dp-highlighter" style="padding-top: 1px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 18px; margin-right: 0px; margin-bottom: 18px; margin-left: 0px; font-family: Consolas, 'Courier New', Courier, mono; font-size: 12px; background-color: rgb(231, 229, 220); width: 504px; overflow-x: auto; overflow-y: auto; "&gt;&lt;div class="bar" style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 45px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "&gt;&lt;div class="tools" style="padding-top: 3px; padding-right: 8px; padding-bottom: 10px; padding-left: 10px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 9px/normal Verdana, Geneva, Arial, Helvetica, sans-serif; color: silver; background-color: rgb(248, 248, 248); border-left-width: 3px; border-left-style: solid; border-left-color: rgb(108, 226, 108); "&gt;&lt;a href="http://www.mxjava.com/android-helloworld.html#" onclick="dp.sh.Toolbar.Command('ViewSource',this);return false;" style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 10px; margin-bottom: 0px; margin-left: 0px; color: rgb(160, 160, 160); text-decoration: none; outline-style: none; outline-width: initial; outline-color: initial; font-size: 9px; "&gt;view plain&lt;/a&gt;&lt;a href="http://www.mxjava.com/android-helloworld.html#" onclick="dp.sh.Toolbar.Command('CopyToClipboard',this);return false;" style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 10px; margin-bottom: 0px; margin-left: 0px; color: rgb(160, 160, 160); text-decoration: none; outline-style: none; outline-width: initial; outline-color: initial; font-size: 9px; "&gt;copy to clipboard&lt;/a&gt;&lt;a href="http://www.mxjava.com/android-helloworld.html#" onclick="dp.sh.Toolbar.Command('PrintSource',this);return false;" style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 10px; margin-bottom: 0px; margin-left: 0px; color: rgb(160, 160, 160); text-decoration: none; outline-style: none; outline-width: initial; outline-color: initial; font-size: 9px; "&gt;print&lt;/a&gt;&lt;a href="http://www.mxjava.com/android-helloworld.html#" onclick="dp.sh.Toolbar.Command('About',this);return false;" style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 10px; margin-bottom: 0px; margin-left: 0px; color: rgb(160, 160, 160); text-decoration: none; outline-style: none; outline-width: initial; outline-color: initial; font-size: 9px; "&gt;?&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;ol start="1" class="dp-xml" style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 1px; margin-left: 45px; list-style-type: decimal-leading-zero; list-style-position: initial; list-style-image: initial; background-color: rgb(255, 255, 255); color: rgb(92, 92, 92); "&gt;&lt;li class="alt" style="padding-top: 10px; padding-right: 10px; padding-bottom: 10px; padding-left: 10px; margin-top: 0px; margin-right: 0px; margin-bottom: 3px; margin-left: 0px; border-left-width: 3px; border-left-style: solid; border-left-color: rgb(108, 226, 108); background-color: rgb(255, 255, 255); line-height: 14px; "&gt;&lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: black; "&gt;&lt;span class="tag" style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(0, 102, 153); font-weight: bold; "&gt;&lt;&lt;/span&gt;&lt;span class="tag-name" style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(0, 102, 153); font-weight: bold; "&gt;manifest&lt;/span&gt;&lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: black; "&gt; &lt;/span&gt;&lt;span class="attribute" style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: red; "&gt;xmlns:android&lt;/span&gt;&lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: black; "&gt;=&lt;/span&gt;&lt;span class="attribute-value" style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: blue; "&gt;"http://schemas.android.com/apk/res/android"&lt;/span&gt;&lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: black; "&gt; &lt;/span&gt;&lt;span class="attribute" style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: red; "&gt;package&lt;/span&gt;&lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: black; "&gt;=&lt;/span&gt;&lt;span class="attribute-value" style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: blue; "&gt;"com.mxjava.android.hello"&lt;/span&gt;&lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: black; "&gt; &lt;/span&gt;&lt;span class="attribute" style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: red; "&gt;android:versioncode&lt;/span&gt;&lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: black; "&gt;=&lt;/span&gt;&lt;span class="attribute-value" style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: blue; "&gt;"1"&lt;/span&gt;&lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: black; "&gt; &lt;/span&gt;&lt;span class="attribute" style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: red; "&gt;android:versionname&lt;/span&gt;&lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: black; "&gt;=&lt;/span&gt;&lt;span class="attribute-value" style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: blue; "&gt;"1.0"&lt;/span&gt;&lt;span class="tag" style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(0, 102, 153); font-weight: bold; "&gt;&gt;&lt;/span&gt;&lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: black; "&gt;  &lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="" style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 10px; margin-top: 0px; margin-right: 0px; margin-bottom: 3px; margin-left: 0px; border-left-width: 3px; border-left-style: solid; border-left-color: rgb(108, 226, 108); background-color: rgb(248, 248, 248); line-height: 14px; "&gt;&lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: black; "&gt;    &lt;span class="tag" style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(0, 102, 153); font-weight: bold; "&gt;&lt;&lt;/span&gt;&lt;span class="tag-name" style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(0, 102, 153); font-weight: bold; "&gt;application&lt;/span&gt;&lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: black; "&gt; &lt;/span&gt;&lt;span class="attribute" style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: red; "&gt;android:icon&lt;/span&gt;&lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: black; "&gt;=&lt;/span&gt;&lt;span class="attribute-value" style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: blue; "&gt;"@drawable/icon"&lt;/span&gt;&lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: black; "&gt; &lt;/span&gt;&lt;span class="attribute" style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: red; "&gt;android:label&lt;/span&gt;&lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: black; "&gt;=&lt;/span&gt;&lt;span class="attribute-value" style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: blue; "&gt;"@string/app_name"&lt;/span&gt;&lt;span class="tag" style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(0, 102, 153); font-weight: bold; "&gt;&gt;&lt;/span&gt;&lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: black; "&gt;  &lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="alt" style="padding-top: 10px; padding-right: 10px; padding-bottom: 10px; padding-left: 10px; margin-top: 0px; margin-right: 0px; margin-bottom: 3px; margin-left: 0px; border-left-width: 3px; border-left-style: solid; border-left-color: rgb(108, 226, 108); background-color: rgb(255, 255, 255); line-height: 14px; "&gt;&lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: black; "&gt;        &lt;span class="tag" style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(0, 102, 153); font-weight: bold; "&gt;&lt;&lt;/span&gt;&lt;span class="tag-name" style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(0, 102, 153); font-weight: bold; "&gt;activity&lt;/span&gt;&lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: black; "&gt; &lt;/span&gt;&lt;span class="attribute" style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: red; "&gt;android:name&lt;/span&gt;&lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: black; "&gt;=&lt;/span&gt;&lt;span class="attribute-value" style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: blue; "&gt;".HelloWorld"&lt;/span&gt;&lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: black; "&gt; &lt;/span&gt;&lt;span class="attribute" style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: red; "&gt;android:label&lt;/span&gt;&lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: black; "&gt;=&lt;/span&gt;&lt;span class="attribute-value" style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: blue; "&gt;"@string/app_name"&lt;/span&gt;&lt;span class="tag" style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(0, 102, 153); font-weight: bold; "&gt;&gt;&lt;/span&gt;&lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: black; "&gt;  &lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="" style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 10px; margin-top: 0px; margin-right: 0px; margin-bottom: 3px; margin-left: 0px; border-left-width: 3px; border-left-style: solid; border-left-color: rgb(108, 226, 108); background-color: rgb(248, 248, 248); line-height: 14px; "&gt;&lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: black; "&gt;            &lt;span class="tag" style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(0, 102, 153); font-weight: bold; "&gt;&lt;&lt;/span&gt;&lt;span class="tag-name" style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(0, 102, 153); font-weight: bold; "&gt;intent-filter&lt;/span&gt;&lt;span class="tag" style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(0, 102, 153); font-weight: bold; "&gt;&gt;&lt;/span&gt;&lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: black; "&gt;  &lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="alt" style="padding-top: 10px; padding-right: 10px; padding-bottom: 10px; padding-left: 10px; margin-top: 0px; margin-right: 0px; margin-bottom: 3px; margin-left: 0px; border-left-width: 3px; border-left-style: solid; border-left-color: rgb(108, 226, 108); background-color: rgb(255, 255, 255); line-height: 14px; "&gt;&lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: black; "&gt;                &lt;span class="tag" style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(0, 102, 153); font-weight: bold; "&gt;&lt;&lt;/span&gt;&lt;span class="tag-name" style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(0, 102, 153); font-weight: bold; "&gt;action&lt;/span&gt;&lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: black; "&gt; &lt;/span&gt;&lt;span class="attribute" style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: red; "&gt;android:name&lt;/span&gt;&lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: black; "&gt;=&lt;/span&gt;&lt;span class="attribute-value" style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: blue; "&gt;"android.intent.action.MAIN"&lt;/span&gt;&lt;span class="tag" style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(0, 102, 153); font-weight: bold; "&gt;&gt;&lt;/span&gt;&lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: black; "&gt;  &lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="" style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 10px; margin-top: 0px; margin-right: 0px; margin-bottom: 3px; margin-left: 0px; border-left-width: 3px; border-left-style: solid; border-left-color: rgb(108, 226, 108); background-color: rgb(248, 248, 248); line-height: 14px; "&gt;&lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: black; "&gt;                &lt;span class="tag" style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(0, 102, 153); font-weight: bold; "&gt;&lt;&lt;/span&gt;&lt;span class="tag-name" style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(0, 102, 153); font-weight: bold; "&gt;category&lt;/span&gt;&lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: black; "&gt; &lt;/span&gt;&lt;span class="attribute" style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: red; "&gt;android:name&lt;/span&gt;&lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: black; "&gt;=&lt;/span&gt;&lt;span class="attribute-value" style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: blue; "&gt;"android.intent.category.LAUNCHER"&lt;/span&gt;&lt;span class="tag" style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(0, 102, 153); font-weight: bold; "&gt;&gt;&lt;/span&gt;&lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: black; "&gt;  &lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="alt" style="padding-top: 10px; padding-right: 10px; padding-bottom: 10px; padding-left: 10px; margin-top: 0px; margin-right: 0px; margin-bottom: 3px; margin-left: 0px; border-left-width: 3px; border-left-style: solid; border-left-color: rgb(108, 226, 108); background-color: rgb(255, 255, 255); line-height: 14px; "&gt;&lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: black; "&gt;            &lt;span class="tag" style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(0, 102, 153); font-weight: bold; "&gt;&lt;/&lt;/span&gt;&lt;span class="tag-name" style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(0, 102, 153); font-weight: bold; "&gt;category&lt;/span&gt;&lt;span class="tag" style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(0, 102, 153); font-weight: bold; "&gt;&gt;&lt;/span&gt;&lt;span class="tag" style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(0, 102, 153); font-weight: bold; "&gt;&lt;/&lt;/span&gt;&lt;span class="tag-name" style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(0, 102, 153); font-weight: bold; "&gt;action&lt;/span&gt;&lt;span class="tag" style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(0, 102, 153); font-weight: bold; "&gt;&gt;&lt;/span&gt;&lt;span class="tag" style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(0, 102, 153); font-weight: bold; "&gt;&lt;/&lt;/span&gt;&lt;span class="tag-name" style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(0, 102, 153); font-weight: bold; "&gt;intent-filter&lt;/span&gt;&lt;span class="tag" style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(0, 102, 153); font-weight: bold; "&gt;&gt;&lt;/span&gt;&lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: black; "&gt;  &lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="" style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 10px; margin-top: 0px; margin-right: 0px; margin-bottom: 3px; margin-left: 0px; border-left-width: 3px; border-left-style: solid; border-left-color: rgb(108, 226, 108); background-color: rgb(248, 248, 248); line-height: 14px; "&gt;&lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: black; "&gt;        &lt;span class="tag" style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(0, 102, 153); font-weight: bold; "&gt;&lt;/&lt;/span&gt;&lt;span class="tag-name" style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(0, 102, 153); font-weight: bold; "&gt;activity&lt;/span&gt;&lt;span class="tag" style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(0, 102, 153); font-weight: bold; "&gt;&gt;&lt;/span&gt;&lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: black; "&gt;  &lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="alt" style="padding-top: 10px; padding-right: 10px; padding-bottom: 10px; padding-left: 10px; margin-top: 0px; margin-right: 0px; margin-bottom: 3px; margin-left: 0px; border-left-width: 3px; border-left-style: solid; border-left-color: rgb(108, 226, 108); background-color: rgb(255, 255, 255); line-height: 14px; "&gt;&lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: black; "&gt;    &lt;span class="tag" style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(0, 102, 153); font-weight: bold; "&gt;&lt;/&lt;/span&gt;&lt;span class="tag-name" style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(0, 102, 153); font-weight: bold; "&gt;application&lt;/span&gt;&lt;span class="tag" style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(0, 102, 153); font-weight: bold; "&gt;&gt;&lt;/span&gt;&lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: black; "&gt;  &lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="" style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 10px; margin-top: 0px; margin-right: 0px; margin-bottom: 3px; margin-left: 0px; border-left-width: 3px; border-left-style: solid; border-left-color: rgb(108, 226, 108); background-color: rgb(248, 248, 248); line-height: 14px; "&gt;&lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: black; "&gt;&lt;span class="tag" style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(0, 102, 153); font-weight: bold; "&gt;&lt;/&lt;/span&gt;&lt;span class="tag-name" style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(0, 102, 153); font-weight: bold; "&gt;manifest&lt;/span&gt;&lt;span class="tag" style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(0, 102, 153); font-weight: bold; "&gt;&gt;&lt;/span&gt;&lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: black; "&gt;  &lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;/ol&gt;&lt;/div&gt;&lt;p style="padding-top: 5px; padding-right: 0px; padding-bottom: 5px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "&gt;　　application 标签设置了程序的基本信息。如：android:icon 程序的图标，android:label 程序的名称等。文件中有一个名为 HelloWorld 的 Activity，并为其设置了 Intent-filter ，action 和 category 两个标签表明了该 Activity 为程序默认要运行的 Activity（因为可以建立多个继承自 Activity 的类，每个类都要在该文件进行配置，所以为其指定默认运行的 Activity 至关重要）。&lt;/p&gt;&lt;p style="padding-top: 5px; padding-right: 0px; padding-bottom: 5px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "&gt;　　了解了以上内容后，就可以运行我们的程序了。右键点击工程 &gt; Run As &gt; Android Application ，程序将启动运行。&lt;/p&gt;&lt;p style="padding-top: 5px; padding-right: 0px; padding-bottom: 5px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "&gt;&lt;img src="http://pic.yupoo.com/hiswing/3515597d491c/wk692oga.png" alt="" style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; border-top-style: none; border-right-style: none; border-bottom-style: none; border-left-style: none; border-width: initial; border-color: initial; max-width: 500px; " /&gt;&lt;/p&gt;&lt;p style="padding-top: 5px; padding-right: 0px; padding-bottom: 5px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "&gt;　　注意：模拟器将模拟 Android 手机启动过程，可能有点慢，请耐心等待。&lt;/p&gt;&lt;p style="padding-top: 5px; padding-right: 0px; padding-bottom: 5px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "&gt;&lt;img src="http://pic.yupoo.com/hiswing/8084097d491e/4ui9x39w.png" alt="" style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; border-top-style: none; border-right-style: none; border-bottom-style: none; border-left-style: none; border-width: initial; border-color: initial; max-width: 500px; " /&gt;&lt;/p&gt;&lt;p style="padding-top: 5px; padding-right: 0px; padding-bottom: 5px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "&gt;　　有了 ADT 我们不用编写一行代码就可以运行 HelloWorld，非常方便。不过 Activity 类的应用程序有着自己的运行方式，为了能更好的编写代码，我们必须了解其运行方式，如下：&lt;/p&gt;&lt;p style="padding-top: 5px; padding-right: 0px; padding-bottom: 5px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "&gt;　　onCreate -&gt; onRestore -&gt;onStart -&gt; onResume -&gt; onSave -&gt; onPause -&gt; onStop -&gt; onDestroy&lt;/p&gt;&lt;p style="padding-top: 5px; padding-right: 0px; padding-bottom: 5px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "&gt;　　onCreate -&gt; onRestore -&gt;onStart 为应用的启动，一般 Activity 用 onCreate。当程序失去焦点或者被关闭将会触发 onPause 状态，当程序再次被唤醒，将会回到 onResume 状态。&lt;/p&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4797191850097376689-4650786697939006477?l=jackyma1981.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://jackyma1981.blogspot.com/feeds/4650786697939006477/comments/default' title='帖子评论'/><link rel='replies' type='text/html' href='http://jackyma1981.blogspot.com/2010/07/android-hello-world.html#comment-form' title='9 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4797191850097376689/posts/default/4650786697939006477'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4797191850097376689/posts/default/4650786697939006477'/><link rel='alternate' type='text/html' href='http://jackyma1981.blogspot.com/2010/07/android-hello-world.html' title='收藏：第一个 Android 程序 — Hello World'/><author><name>jacky ma</name><uri>https://profiles.google.com/115194989602674585864</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh5.googleusercontent.com/-pOworGIeDAk/AAAAAAAAAAI/AAAAAAAAAW4/yeNXTusAYmY/s512-c/photo.jpg'/></author><thr:total>9</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4797191850097376689.post-1133647435291933405</id><published>2010-07-05T19:47:00.000-07:00</published><updated>2010-07-05T19:51:06.852-07:00</updated><title type='text'>收藏：Android 开发环境的安装</title><content type='html'>&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, Geneva, sans-serif; font-size: 14px; color: rgb(68, 68, 68); line-height: 23px; "&gt;&lt;p style="padding-top: 5px; padding-right: 0px; padding-bottom: 5px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "&gt;本文是为了日后学习方便做的收藏，原文作者保留一切权利。&lt;/p&gt;&lt;p style="padding-top: 5px; padding-right: 0px; padding-bottom: 5px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "&gt;原文出自&lt;a href="http://www.mxjava.com/android-setup.html"&gt;http://www.mxjava.com/android-setup.html&lt;/a&gt;&lt;/p&gt;&lt;p style="padding-top: 5px; padding-right: 0px; padding-bottom: 5px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "&gt;Google 的产品天生就拥有着超高的关注度，很多程序员在 Android 手机还没有上市之前就开始学习。相对他们来说我的起步比较晚，今天刚刚开始，但相对于那些还没有开始学习的朋友来说，我的起步还不算太晚。&lt;/p&gt;&lt;p style="padding-top: 5px; padding-right: 0px; padding-bottom: 5px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "&gt;学习 Android 最主要原因当然是这几年 Android 手机的流行，让我感觉到它的未来不可限量。到目前为止，仅仅三年的时间，各大手制造厂家都陆续推出了自己的 Android 手机，也成为了各国移动通讯服务商争相合作的焦点。另外几个原因是首先它是开放性的，底层核心是 Linux 。再者 Android SDK 使用我常用的开发语言 — JAVA。&lt;br /&gt;&lt;span id="more-686" style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "&gt;&lt;/span&gt;&lt;br /&gt;JAVA 开发第一件事永远是配置环境，采用 JAVA 作为开发言的 Android 也不例外。接下来就开始配置我们的 Android 开发环境。（本文仅针对 Android 环境进行说明，默认您的系统中已经安装了 JAVA SDK 和 Eclipse，若没有请安装。）&lt;/p&gt;&lt;p style="padding-top: 5px; padding-right: 0px; padding-bottom: 5px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "&gt;１、首先到官网下载安装 Android SDK。http://developer.android.com/sdk/　可惜的是天朝河蟹了该网站（http://www.android.com是可以访问的）。&lt;a href="http://www.uushare.com/user/hiswing/file/3147994" style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(51, 102, 255); text-decoration: underline; outline-style: none; outline-width: initial; outline-color: initial; "&gt;为了方便，本站提供了下载&lt;/a&gt;。解压后运行 SDK Setup.exe ，将会运行 Android SDK and AVD Manager 下载程序。选择“Settings”，勾选“Force https:// …”如图：&lt;/p&gt;&lt;p style="padding-top: 5px; padding-right: 0px; padding-bottom: 5px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "&gt;&lt;img src="http://pic.yupoo.com/hiswing/5023797a7ac0/1b101y5u.jpg" alt="" style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; border-top-style: none; border-right-style: none; border-bottom-style: none; border-left-style: none; border-width: initial; border-color: initial; max-width: 500px; " /&gt;&lt;/p&gt;&lt;p style="padding-top: 5px; padding-right: 0px; padding-bottom: 5px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "&gt;切换到“Avaliable Packages”，勾选要安装的 SDK Packages 和 API（建议全部选择），按下“Installed Selected”按钮开始安装。 若列表中没有选项，请按“Refresh”按钮刷新。&lt;/p&gt;&lt;p style="padding-top: 5px; padding-right: 0px; padding-bottom: 5px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "&gt;&lt;img src="http://pic.yupoo.com/hiswing/8217697a7ac0/rlprq8g8.jpg" alt="" style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; border-top-style: none; border-right-style: none; border-bottom-style: none; border-left-style: none; border-width: initial; border-color: initial; max-width: 500px; " /&gt;&lt;/p&gt;&lt;p style="padding-top: 5px; padding-right: 0px; padding-bottom: 5px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "&gt;２、IDE 使用 Eclipse ，所以需要安装 Eclipse ADT (Android Development Tools) Plugin，这是 Android 的开发工具。安装方法同安装普通 Eclipse 插件相同，启动 Eclipse ，选择菜单 Help – Install New Sofware ，单击 Add 按钮，在 Location 栏输入网址：http://dl-ssl.google.com/android/eclipse/ 后单击 OK 按钮。在 Install 窗口中选择刚刚输入的地址并选中 Developer Tools ，按下 Next 按钮开始安装。安装完成后，需要重新启动 Eclipse 才能使用 Android ADT 。&lt;/p&gt;&lt;p style="padding-top: 5px; padding-right: 0px; padding-bottom: 5px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "&gt;&lt;img src="http://pic.yupoo.com/hiswing/3298097a7ac0/4robtuu1.jpg" alt="" style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; border-top-style: none; border-right-style: none; border-bottom-style: none; border-left-style: none; border-width: initial; border-color: initial; max-width: 500px; " /&gt;&lt;/p&gt;&lt;p style="padding-top: 5px; padding-right: 0px; padding-bottom: 5px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "&gt;３、若要使用 Android SDK ，还要为其指定环境变量或在 ADT 中指定其路径。选择 Window – Preferences ，选择 Android ，单击 Browse 按钮，选择解压 Android SDK 的路径，单击 OK 按钮即可。&lt;/p&gt;&lt;p style="padding-top: 5px; padding-right: 0px; padding-bottom: 5px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "&gt;&lt;img src="http://pic.yupoo.com/hiswing/0622197a7ac1/qjhxn7f5.jpg" alt="" style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; border-top-style: none; border-right-style: none; border-bottom-style: none; border-left-style: none; border-width: initial; border-color: initial; max-width: 500px; " /&gt;&lt;/p&gt;&lt;p style="padding-top: 5px; padding-right: 0px; padding-bottom: 5px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "&gt;到此 Android 的开发环境就安装完成了。对于有 JAVA 环境配置基础的人来说，应该是很容易吧。&lt;/p&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4797191850097376689-1133647435291933405?l=jackyma1981.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://jackyma1981.blogspot.com/feeds/1133647435291933405/comments/default' title='帖子评论'/><link rel='replies' type='text/html' href='http://jackyma1981.blogspot.com/2010/07/android.html#comment-form' title='0 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4797191850097376689/posts/default/1133647435291933405'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4797191850097376689/posts/default/1133647435291933405'/><link rel='alternate' type='text/html' href='http://jackyma1981.blogspot.com/2010/07/android.html' title='收藏：Android 开发环境的安装'/><author><name>jacky ma</name><uri>https://profiles.google.com/115194989602674585864</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh5.googleusercontent.com/-pOworGIeDAk/AAAAAAAAAAI/AAAAAAAAAW4/yeNXTusAYmY/s512-c/photo.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4797191850097376689.post-4593918940924599437</id><published>2010-05-26T18:09:00.000-07:00</published><updated>2010-05-26T18:20:09.912-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Windows优化'/><title type='text'>无意发现的Google浏览器垃圾清除方法</title><content type='html'>因为最近电脑提示C盘空间不足，用了一些清理软件清理之后没有太多减少，就自己在C盘下面找有哪些东东占用空间多？&lt;div&gt;无意发现了Google浏览的安装路径竟然在“C:\Documents and Settings\Administrator\Local Settings\Application Data\Google\Chrome\”下面，而且在C:\Documents and Settings\Administrator\Local Settings\Application Data\Google\Chrome\User Data\Default\Cache下面还有一些应该是上网是留下的一些缓存文件，竟然有几百M，这些是那些清理软件扫描不到的地方，只能手动删除了。&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;另外在“C:\Documents and Settings\Administrator\Local Settings\Application Data\Google”文件夹下面还有Google地球，和照片管理Pasca的大量数据文件，目前正在找办法处理。&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4797191850097376689-4593918940924599437?l=jackyma1981.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://jackyma1981.blogspot.com/feeds/4593918940924599437/comments/default' title='帖子评论'/><link rel='replies' type='text/html' href='http://jackyma1981.blogspot.com/2010/05/google.html#comment-form' title='9 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4797191850097376689/posts/default/4593918940924599437'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4797191850097376689/posts/default/4593918940924599437'/><link rel='alternate' type='text/html' href='http://jackyma1981.blogspot.com/2010/05/google.html' title='无意发现的Google浏览器垃圾清除方法'/><author><name>jacky ma</name><uri>https://profiles.google.com/115194989602674585864</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh5.googleusercontent.com/-pOworGIeDAk/AAAAAAAAAAI/AAAAAAAAAW4/yeNXTusAYmY/s512-c/photo.jpg'/></author><thr:total>9</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4797191850097376689.post-5785787226137532752</id><published>2010-05-26T18:06:00.001-07:00</published><updated>2010-05-26T18:06:36.900-07:00</updated><title type='text'></title><content type='html'>&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4797191850097376689-5785787226137532752?l=jackyma1981.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://jackyma1981.blogspot.com/feeds/5785787226137532752/comments/default' title='帖子评论'/><link rel='replies' type='text/html' href='http://jackyma1981.blogspot.com/2010/05/blog-post.html#comment-form' title='0 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4797191850097376689/posts/default/5785787226137532752'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4797191850097376689/posts/default/5785787226137532752'/><link rel='alternate' type='text/html' href='http://jackyma1981.blogspot.com/2010/05/blog-post.html' title=''/><author><name>jacky ma</name><uri>https://profiles.google.com/115194989602674585864</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh5.googleusercontent.com/-pOworGIeDAk/AAAAAAAAAAI/AAAAAAAAAW4/yeNXTusAYmY/s512-c/photo.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4797191850097376689.post-3242459074591030971</id><published>2010-04-22T07:13:00.000-07:00</published><updated>2010-04-22T07:13:39.113-07:00</updated><title type='text'>Macで\（バックスラッシュ）を入力する</title><content type='html'>&lt;a href="http://mac.kumadoumei.net/article/23841827.html"&gt;くま同盟コンピュータLab 2.0: Macで\（バックスラッシュ）を入力する&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;文字列を改行するために「￥n」と入力しても「￥n」と表示がされるだけで改行されません。&lt;br /&gt;「￥」は本来は「エン」ではなく「バックスラッシュ」なのは理解しているのですがどうやって入力したらいいのやら・・・。&lt;br /&gt;で、「Option」+「￥」で入力できました。&lt;br /&gt;Windowsでは「エン」と「バックスラッシュ」は同じ文字の扱いですが、Jeditの環境設定に「円マーク」を「バックスラッシュ」に置き換えるとあるので、Macでは別の文字の扱いのようです。。&lt;br /&gt;jedit.png&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4797191850097376689-3242459074591030971?l=jackyma1981.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='related' href='http://mac.kumadoumei.net/article/23841827.html' title='Macで\（バックスラッシュ）を入力する'/><link rel='replies' type='application/atom+xml' href='http://jackyma1981.blogspot.com/feeds/3242459074591030971/comments/default' title='帖子评论'/><link rel='replies' type='text/html' href='http://jackyma1981.blogspot.com/2010/04/mac.html#comment-form' title='4 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4797191850097376689/posts/default/3242459074591030971'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4797191850097376689/posts/default/3242459074591030971'/><link rel='alternate' type='text/html' href='http://jackyma1981.blogspot.com/2010/04/mac.html' title='Macで\（バックスラッシュ）を入力する'/><author><name>jacky ma</name><uri>https://profiles.google.com/115194989602674585864</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh5.googleusercontent.com/-pOworGIeDAk/AAAAAAAAAAI/AAAAAAAAAW4/yeNXTusAYmY/s512-c/photo.jpg'/></author><thr:total>4</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4797191850097376689.post-8178752262047713200</id><published>2010-03-02T20:00:00.000-08:00</published><updated>2010-03-02T20:01:11.955-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='python学习'/><category scheme='http://www.blogger.com/atom/ns#' term='python'/><title type='text'>转 pickle——python对象的串行化</title><content type='html'>转贴来自&amp;刘鑫的专栏 pickle——python对象的串行化 &lt;br /&gt;&lt;br /&gt;最近感觉自己虽然玩了3年多的python,但仅仅停留在使用的阶段上，对python的很多内容还不算很了解，打算沉下心来，扎扎实实的学些东西了。&lt;br /&gt;对象的串行化感觉上是很有用的(但自己很少用到)，不过还是好好学习下吧。&lt;br /&gt;&lt;br /&gt;1)相关的python模块&lt;br /&gt;  在python 3.0里,和python相关的模块主要有2个：_pickle,marshal.&lt;br /&gt;  其中_pickle是对pickle的优化，是使用C语言对底层进行了一部分的优化。&lt;br /&gt;  marshal是python里原生的串行化类，但是在使用上pickle更加优秀，marshal的存在主要是为了支持python的*.pyc文件。&lt;br /&gt;  pickle模块和marshal模块有几方面的差别：&lt;br /&gt;  1&gt;pickle模块对已串行化的对象进行跟踪，因此对同一个对象的引用不需要再次串行化。marshal不这么做。&lt;br /&gt;  对于循环对象而言，他们包括对自己的引用，因此marshal不支持循环对象。&lt;br /&gt;  共享对象由于是指有多个实例指向同一个引用，pickle保存一个引用，并使得其他实例都指向该对象，来保证所有实例的一致性。&lt;br /&gt;  2&gt;marshal不能用来串行化用户自定义对象和它们的实例。pickle可以串行化这些对象，但前提是类的定义是可以引入的，并且和对象串行化的类在一个模块里。&lt;br /&gt;  3&gt;marshal不能跨版本，因为它主要是用来支持*.pyc文件的，解释器不需要保持对以前版本的兼容性。而pickle可以做到这一点。&lt;br /&gt;&lt;br /&gt;2)用法&lt;br /&gt;  pickle.dump(obj, file[, protocol]) &lt;br /&gt;  pickle.dumps(obj[, protocol])&lt;br /&gt;  pickle.load(file[, *, encoding="ASCII", errors="strict"])&lt;br /&gt;  pickle.loads(bytes_object[, *, encoding="ASCII", errors="strict"])&lt;br /&gt;&lt;br /&gt;3)异常&lt;br /&gt;  exception pickle.PickleError     基本的Error,从Exception继承而来&lt;br /&gt;  exception pickle.PicklingError   当一个不支持Pickle的对象被pickle被激发&lt;br /&gt;  exception pickle.UnpicklingError Unpickle出错时被激发，例如数据损坏或安全问题&lt;br /&gt;&lt;br /&gt;4)可以被pickle的对象&lt;br /&gt;  None,True,False&lt;br /&gt;  数字，复数&lt;br /&gt;  字符串，字符集&lt;br /&gt;  元组，列表，集合，字典&lt;br /&gt;  模块的顶层函数、内置函数、类&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4797191850097376689-8178752262047713200?l=jackyma1981.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://jackyma1981.blogspot.com/feeds/8178752262047713200/comments/default' title='帖子评论'/><link rel='replies' type='text/html' href='http://jackyma1981.blogspot.com/2010/03/picklepython.html#comment-form' title='4 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4797191850097376689/posts/default/8178752262047713200'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4797191850097376689/posts/default/8178752262047713200'/><link rel='alternate' type='text/html' href='http://jackyma1981.blogspot.com/2010/03/picklepython.html' title='转 pickle——python对象的串行化'/><author><name>jacky ma</name><uri>https://profiles.google.com/115194989602674585864</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh5.googleusercontent.com/-pOworGIeDAk/AAAAAAAAAAI/AAAAAAAAAW4/yeNXTusAYmY/s512-c/photo.jpg'/></author><thr:total>4</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4797191850097376689.post-8957073877887108620</id><published>2010-01-12T17:49:00.000-08:00</published><updated>2010-01-12T17:56:28.886-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='python学习'/><category scheme='http://www.blogger.com/atom/ns#' term='python'/><title type='text'>转：wxpython 换肤</title><content type='html'>原文：http://wiki.woodpecker.org.cn/moin/flyaflya&lt;br /&gt;&lt;br /&gt;如果只用通用控件（不用Panel)，可以实现完美换肤....&lt;br /&gt;&lt;br /&gt;&lt;span class="Apple-style-span"   style="  line-height: 18px; font-family:sans-serif;font-size:14px;"&gt;&lt;p class="line874"&gt;对newedit进行换肤，好玩....&lt;span class="anchor" id="line-62"&gt;&lt;/span&gt;&lt;span class="anchor" id="line-63"&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="line862"&gt;原理是用win32com调用&lt;a class="nonexistent" href="http://wiki.woodpecker.org.cn/moin/ActiveSkin" style="color: rgb(102, 102, 102); text-decoration: underline; "&gt;ActiveSkin&lt;/a&gt;实现的，因为wxpython的控件是native的，加上&lt;a class="nonexistent" href="http://wiki.woodpecker.org.cn/moin/ActiveSkin" style="color: rgb(102, 102, 102); text-decoration: underline; "&gt;ActiveSkin&lt;/a&gt;支持COM，我也是突发奇想试了一下，想不到成功了，不过&lt;a class="nonexistent" href="http://wiki.woodpecker.org.cn/moin/ActiveSkin" style="color: rgb(102, 102, 102); text-decoration: underline; "&gt;ActiveSkin&lt;/a&gt;是商业组件，而且现在已经停了，想买都没法买了，只有用盗版，而且只能在windows下用，有一些控件也不能很好支持，问题太多，所以我一直没公开这个技术，后来我试了很多支持COM的换肤控件包，都不关用。现在有人问起这个问题，就说一下。只需要增加三行代码。 &lt;span class="anchor" id="line-64"&gt;&lt;/span&gt;需要安装：&lt;a class="attachment" href="http://wiki.woodpecker.org.cn/moin/flyaflya?action=AttachFile&amp;amp;do=view&amp;amp;target=ActiveSkin43.rar" title="attachment:ActiveSkin43.rar" style="color: rgb(63, 89, 186); text-decoration: underline; "&gt;ActiveSkin43.rar&lt;/a&gt;　&lt;span class="anchor" id="line-65"&gt;&lt;/span&gt;&lt;span class="anchor" id="line-66"&gt;&lt;/span&gt;&lt;span class="anchor" id="line-67"&gt;&lt;/span&gt;&lt;span class="anchor" id="line-68"&gt;&lt;/span&gt;&lt;span class="anchor" id="line-69"&gt;&lt;/span&gt;&lt;span class="anchor" id="line-70"&gt;&lt;/span&gt;&lt;span class="anchor" id="line-71"&gt;&lt;/span&gt;&lt;span class="anchor" id="line-72"&gt;&lt;/span&gt;&lt;span class="anchor" id="line-73"&gt;&lt;/span&gt;&lt;span class="anchor" id="line-74"&gt;&lt;/span&gt;&lt;span class="anchor" id="line-75"&gt;&lt;/span&gt;&lt;span class="anchor" id="line-76"&gt;&lt;/span&gt;&lt;/p&gt;&lt;div class="codearea" dir="ltr" lang="en"&gt;&lt;a href="http://wiki.woodpecker.org.cn/moin/flyaflya#" onclick="return togglenumber('CA-b74073d77e821a4af7be73b264072bbbc5a4d1df', 1, 1);" class="codenumbers" style="color: rgb(63, 89, 186); text-decoration: underline; "&gt;切换行号显示&lt;/a&gt;&lt;pre dir="ltr" id="CA-b74073d77e821a4af7be73b264072bbbc5a4d1df" lang="en"&gt;&lt;span class="line"&gt;&lt;span class="LineNumber"&gt;   1 &lt;/span&gt;&lt;span class="ResWord"&gt;import&lt;/span&gt; &lt;span class="ID"&gt;wx&lt;/span&gt;&lt;span class="Operator"&gt;,&lt;/span&gt; &lt;span class="ID"&gt;win32com&lt;/span&gt;&lt;span class="Operator"&gt;.&lt;/span&gt;&lt;span class="ID"&gt;client&lt;/span&gt;&lt;/span&gt; &lt;span class="line"&gt;&lt;span class="LineNumber"&gt;   2 &lt;/span&gt;&lt;span class="Operator"&gt;.&lt;/span&gt;&lt;span class="Operator"&gt;.&lt;/span&gt;&lt;span class="Operator"&gt;.&lt;/span&gt;&lt;span class="Operator"&gt;.&lt;/span&gt;&lt;/span&gt; &lt;span class="line"&gt;&lt;span class="LineNumber"&gt;   3 &lt;/span&gt;&lt;span class="ResWord"&gt;class&lt;/span&gt; &lt;span class="ID"&gt;MyApp&lt;/span&gt;&lt;span class="Operator"&gt;(&lt;/span&gt;&lt;span class="ID"&gt;wx&lt;/span&gt;&lt;span class="Operator"&gt;.&lt;/span&gt;&lt;span class="ID"&gt;App&lt;/span&gt;&lt;span class="Operator"&gt;)&lt;/span&gt;&lt;span class="Operator"&gt;:&lt;/span&gt;&lt;/span&gt; &lt;span class="line"&gt;&lt;span class="LineNumber"&gt;   4 &lt;/span&gt;    &lt;span class="ResWord"&gt;def&lt;/span&gt; &lt;span class="ID"&gt;OnInit&lt;/span&gt;&lt;span class="Operator"&gt;(&lt;/span&gt;&lt;span class="ID"&gt;self&lt;/span&gt;&lt;span class="Operator"&gt;)&lt;/span&gt;&lt;span class="Operator"&gt;:&lt;/span&gt;&lt;/span&gt; &lt;span class="line"&gt;&lt;span class="LineNumber"&gt;   5 &lt;/span&gt;        &lt;span class="ID"&gt;self&lt;/span&gt;&lt;span class="Operator"&gt;.&lt;/span&gt;&lt;span class="ID"&gt;skinLib&lt;/span&gt; &lt;span class="Operator"&gt;=&lt;/span&gt; &lt;span class="ID"&gt;win32com&lt;/span&gt;&lt;span class="Operator"&gt;.&lt;/span&gt;&lt;span class="ID"&gt;client&lt;/span&gt;&lt;span class="Operator"&gt;.&lt;/span&gt;&lt;span class="ID"&gt;Dispatch&lt;/span&gt;&lt;span class="Operator"&gt;(&lt;/span&gt;&lt;span class="String"&gt;"ActiveSkin4.Skin2"&lt;/span&gt;&lt;span class="Operator"&gt;)&lt;/span&gt; &lt;span class="Comment"&gt;#载入ActiveSkin&lt;/span&gt;&lt;/span&gt; &lt;span class="line"&gt;&lt;span class="LineNumber"&gt;   6 &lt;/span&gt;        &lt;span class="ID"&gt;self&lt;/span&gt;&lt;span class="Operator"&gt;.&lt;/span&gt;&lt;span class="ID"&gt;skinLib&lt;/span&gt;&lt;span class="Operator"&gt;.&lt;/span&gt;&lt;span class="ID"&gt;LoadSkin&lt;/span&gt;&lt;span class="Operator"&gt;(&lt;/span&gt;&lt;span class="String"&gt;"Paper.skn"&lt;/span&gt;&lt;span class="Operator"&gt;)&lt;/span&gt; &lt;span class="Comment"&gt;#载入皮肤&lt;/span&gt;&lt;/span&gt; &lt;span class="line"&gt;&lt;span class="LineNumber"&gt;   7 &lt;/span&gt;        &lt;span class="ID"&gt;frame&lt;/span&gt; &lt;span class="Operator"&gt;=&lt;/span&gt; &lt;span class="ID"&gt;MyFrame&lt;/span&gt;&lt;span class="Operator"&gt;(&lt;/span&gt;&lt;span class="ID"&gt;None&lt;/span&gt;&lt;span class="Operator"&gt;,&lt;/span&gt; &lt;span class="String"&gt;"Simple wxPython App"&lt;/span&gt;&lt;span class="Operator"&gt;)&lt;/span&gt;&lt;/span&gt; &lt;span class="line"&gt;&lt;span class="LineNumber"&gt;   8 &lt;/span&gt;        &lt;span class="ID"&gt;self&lt;/span&gt;&lt;span class="Operator"&gt;.&lt;/span&gt;&lt;span class="ID"&gt;SetTopWindow&lt;/span&gt; &lt;span class="Operator"&gt;(&lt;/span&gt;&lt;span class="ID"&gt;frame&lt;/span&gt;&lt;span class="Operator"&gt;)&lt;/span&gt;&lt;/span&gt; &lt;span class="line"&gt;&lt;span class="LineNumber"&gt;   9 &lt;/span&gt;        &lt;span class="ID"&gt;self&lt;/span&gt;&lt;span class="Operator"&gt;.&lt;/span&gt;&lt;span class="ID"&gt;skinLib&lt;/span&gt;&lt;span class="Operator"&gt;.&lt;/span&gt;&lt;span class="ID"&gt;ApplySkin&lt;/span&gt;&lt;span class="Operator"&gt;(&lt;/span&gt;&lt;span class="ID"&gt;frame&lt;/span&gt;&lt;span class="Operator"&gt;.&lt;/span&gt;&lt;span class="ID"&gt;GetHandle&lt;/span&gt;&lt;span class="Operator"&gt;(&lt;/span&gt;&lt;span class="Operator"&gt;)&lt;/span&gt;&lt;span class="Operator"&gt;)&lt;/span&gt; &lt;span class="Comment"&gt;#使用皮肤&lt;/span&gt;&lt;span class="Text"&gt;&lt;/span&gt;&lt;/span&gt; &lt;/pre&gt;&lt;/div&gt;&lt;span class="anchor" id="line-77"&gt;&lt;/span&gt;&lt;span class="anchor" id="line-78"&gt;&lt;/span&gt;&lt;p class="line867"&gt;&lt;span class="anchor" id="line-79"&gt;&lt;/span&gt;&lt;/p&gt;&lt;div dir="ltr" id="DesignPattern.content" lang="en"&gt;&lt;span class="anchor" id="DesignPattern.top"&gt;&lt;/span&gt;&lt;span class="anchor" id="DesignPattern.line-5"&gt;&lt;/span&gt;&lt;span class="anchor" id="DesignPattern.line-6"&gt;&lt;/span&gt;&lt;p class="line862"&gt;-- flyaflya [2005-08-04 09:45:16]&lt;/p&gt;&lt;/div&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4797191850097376689-8957073877887108620?l=jackyma1981.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://jackyma1981.blogspot.com/feeds/8957073877887108620/comments/default' title='帖子评论'/><link rel='replies' type='text/html' href='http://jackyma1981.blogspot.com/2010/01/wxpython.html#comment-form' title='1 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4797191850097376689/posts/default/8957073877887108620'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4797191850097376689/posts/default/8957073877887108620'/><link rel='alternate' type='text/html' href='http://jackyma1981.blogspot.com/2010/01/wxpython.html' title='转：wxpython 换肤'/><author><name>jacky ma</name><uri>https://profiles.google.com/115194989602674585864</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh5.googleusercontent.com/-pOworGIeDAk/AAAAAAAAAAI/AAAAAAAAAW4/yeNXTusAYmY/s512-c/photo.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4797191850097376689.post-6774389562728041027</id><published>2009-11-17T00:38:00.000-08:00</published><updated>2009-11-17T01:03:17.604-08:00</updated><title type='text'>Windows7のインストール説明</title><content type='html'>&lt;div&gt;１．DVDをパソコンのドライバに入れて、自動的にインストール画面を出て来る。「今すぐインストール」をクリークして。&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;div&gt;&lt;a href="http://4.bp.blogspot.com/_6l_oWfVE7aE/SwJhjsIJ59I/AAAAAAAAAFM/77aNsyu6NL0/s1600/install_1.JPG"&gt;&lt;img style="WIDTH: 320px; HEIGHT: 237px; CURSOR: hand" id="BLOGGER_PHOTO_ID_5404989768566695890" border="0" alt="" src="http://4.bp.blogspot.com/_6l_oWfVE7aE/SwJhjsIJ59I/AAAAAAAAAFM/77aNsyu6NL0/s320/install_1.JPG" /&gt;&lt;/a&gt; &lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;br /&gt;２．インターネットに接続して更新プログラム取得。 &lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;a href="http://4.bp.blogspot.com/_6l_oWfVE7aE/SwJjsPcTEGI/AAAAAAAAAFU/eUMa55gJmyE/s1600/install_2.JPG"&gt;&lt;img style="WIDTH: 320px; HEIGHT: 242px; CURSOR: hand" id="BLOGGER_PHOTO_ID_5404992114508632162" border="0" alt="" src="http://4.bp.blogspot.com/_6l_oWfVE7aE/SwJjsPcTEGI/AAAAAAAAAFU/eUMa55gJmyE/s320/install_2.JPG" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;３．条項を同意して、「次へ」をクリークして次の画面出る&lt;br /&gt;&lt;a href="http://3.bp.blogspot.com/_6l_oWfVE7aE/SwJmB2N_wYI/AAAAAAAAAFc/vHeeduulu2w/s1600/install_3.JPG"&gt;&lt;img style="cursor:pointer; cursor:hand;width: 320px; height: 242px;" src="http://3.bp.blogspot.com/_6l_oWfVE7aE/SwJmB2N_wYI/AAAAAAAAAFc/vHeeduulu2w/s320/install_3.JPG" border="0" alt=""id="BLOGGER_PHOTO_ID_5404994684718137730" /&gt;&lt;/a&gt;&lt;br /&gt; &lt;br /&gt;４．「新規インストール」を選択して、&lt;br /&gt;&lt;a href="http://2.bp.blogspot.com/_6l_oWfVE7aE/SwJmOyMuG5I/AAAAAAAAAFk/hpzvAlbvsrI/s1600/install_4.JPG"&gt;&lt;img style="cursor:pointer; cursor:hand;width: 320px; height: 242px;" src="http://2.bp.blogspot.com/_6l_oWfVE7aE/SwJmOyMuG5I/AAAAAAAAAFk/hpzvAlbvsrI/s320/install_4.JPG" border="0" alt=""id="BLOGGER_PHOTO_ID_5404994906977344402" /&gt;&lt;/a&gt;&lt;br /&gt; &lt;br /&gt;５．インストール場所を選択して、「次へ」クリークとファイルをコピする。これから画面の説明に従って、インストール完了までしばらく待ちます。その期間何回のパソコン起動するはずです。&lt;br /&gt;&lt;a href="http://3.bp.blogspot.com/_6l_oWfVE7aE/SwJmWZzFCTI/AAAAAAAAAFs/IGtQ6yOxsPE/s1600/install_5.JPG"&gt;&lt;img style="cursor:pointer; cursor:hand;width: 320px; height: 238px;" src="http://3.bp.blogspot.com/_6l_oWfVE7aE/SwJmWZzFCTI/AAAAAAAAAFs/IGtQ6yOxsPE/s320/install_5.JPG" border="0" alt=""id="BLOGGER_PHOTO_ID_5404995037866297650" /&gt;&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4797191850097376689-6774389562728041027?l=jackyma1981.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://jackyma1981.blogspot.com/feeds/6774389562728041027/comments/default' title='帖子评论'/><link rel='replies' type='text/html' href='http://jackyma1981.blogspot.com/2009/11/windows7.html#comment-form' title='2 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4797191850097376689/posts/default/6774389562728041027'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4797191850097376689/posts/default/6774389562728041027'/><link rel='alternate' type='text/html' href='http://jackyma1981.blogspot.com/2009/11/windows7.html' title='Windows7のインストール説明'/><author><name>jacky ma</name><uri>https://profiles.google.com/115194989602674585864</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh5.googleusercontent.com/-pOworGIeDAk/AAAAAAAAAAI/AAAAAAAAAW4/yeNXTusAYmY/s512-c/photo.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://4.bp.blogspot.com/_6l_oWfVE7aE/SwJhjsIJ59I/AAAAAAAAAFM/77aNsyu6NL0/s72-c/install_1.JPG' height='72' width='72'/><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4797191850097376689.post-4366952633397210003</id><published>2009-11-12T17:15:00.000-08:00</published><updated>2009-11-12T17:25:34.957-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='wxpython'/><category scheme='http://www.blogger.com/atom/ns#' term='python学习'/><title type='text'>显示wxStaticBitmap的窗口</title><content type='html'>&lt;pre&gt;转载来源：&lt;a href="http://www.cppblog.com/jinq0123/archive/2008/04/07/FrameWithWxStaticBitmap.html"&gt;金庆的专栏&lt;/a&gt;&lt;br /&gt;import wx&lt;br /&gt;&lt;br /&gt;app = wx.App()&lt;br /&gt;fmMain = wx.Frame(parent=None)&lt;br /&gt;# If no panel, the bitmap will be incorrect on resizing.&lt;br /&gt;# pnl = wx.Panel(fmMain)     &lt;br /&gt;bm = wx.Bitmap('test.jpg', wx.BITMAP_TYPE_ANY)&lt;br /&gt;wx.StaticBitmap(fmMain, -1, bm)&lt;br /&gt;fmMain.Show()&lt;br /&gt;app.MainLoop()&lt;br /&gt;&lt;/pre&gt;&lt;span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: 'MS PGothic'; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;"&gt;&lt;span class="Apple-style-span" style="font-family: Verdana,Geneva,Arial,Helvetica,sans-serif; font-size: 13px; line-height: 16px;"&gt;&lt;p style="margin: 10px 0px; font-size: 13px; line-height: 19px; text-indent: 20px;"&gt;如果不创建wxPanel，只创建wxStaticBitmap，窗口大小变化时，图片显示会不正常，并且指定图片位置和大小无效。&lt;/p&gt;&lt;p style="margin: 10px 0px; font-size: 13px; line-height: 19px; text-indent: 20px;"&gt;wxStaticBitmap的父窗口是fmMain或pnl都可以。&lt;/p&gt;&lt;p style="margin: 10px 0px; font-size: 13px; line-height: 19px; text-indent: 20px;"&gt;转自别人的博客，具体为什么我也说不清，知道的朋友请指教！&lt;br /&gt;&lt;/p&gt;&lt;/span&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4797191850097376689-4366952633397210003?l=jackyma1981.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://jackyma1981.blogspot.com/feeds/4366952633397210003/comments/default' title='帖子评论'/><link rel='replies' type='text/html' href='http://jackyma1981.blogspot.com/2009/11/wxstaticbitmap.html#comment-form' title='0 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4797191850097376689/posts/default/4366952633397210003'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4797191850097376689/posts/default/4366952633397210003'/><link rel='alternate' type='text/html' href='http://jackyma1981.blogspot.com/2009/11/wxstaticbitmap.html' title='显示wxStaticBitmap的窗口'/><author><name>jacky ma</name><uri>https://profiles.google.com/115194989602674585864</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh5.googleusercontent.com/-pOworGIeDAk/AAAAAAAAAAI/AAAAAAAAAW4/yeNXTusAYmY/s512-c/photo.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4797191850097376689.post-7744260009972786029</id><published>2009-11-09T21:47:00.000-08:00</published><updated>2009-11-09T22:03:14.511-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='wxpyhton'/><title type='text'>代码顺序带来的问题，wxpython sizer 使用体验</title><content type='html'>昨天测试了一段代码，是关于notebook，和sizer运用的。代码如下：&lt;br /&gt;&lt;blockquote&gt;&lt;br /&gt;import wx&lt;br /&gt;&lt;br /&gt;#----------------------------------------------------------------------&lt;br /&gt;class MyTabbedDlg(wx.Dialog):&lt;br /&gt;    def __init__(self, parent):&lt;br /&gt;        title = "Resize the dialog and see how controls adapt!"&lt;br /&gt;        wx.Dialog.__init__(self, parent, -1, title,&lt;br /&gt;                           style=wx.DEFAULT_DIALOG_STYLE|wx.RESIZE_BORDER)&lt;br /&gt;&lt;br /&gt;        notebook = wx.Notebook(self, -1, size=(450,300))&lt;br /&gt;        panel1 = wx.Panel(notebook)&lt;br /&gt;        panel2 = wx.Panel(notebook)&lt;br /&gt;&lt;br /&gt;        notebook.AddPage(panel1, "Panel 1")&lt;br /&gt;        notebook.AddPage(panel2, "Panel 2")&lt;br /&gt;&lt;br /&gt;        dialog_sizer = wx.BoxSizer(wx.VERTICAL)&lt;br /&gt;        dialog_sizer.Add(notebook, 1, wx.EXPAND|wx.ALL, 5)&lt;br /&gt;&lt;br /&gt;        panel1_sizer = wx.BoxSizer(wx.VERTICAL)&lt;br /&gt;        text = wx.TextCtrl(panel1, -1, "Hi!", size=(400,90), style=wx.TE_MULTILINE)&lt;br /&gt;        button1 = wx.Button(panel1, -1, "I only resize horizontally...")&lt;br /&gt;        panel1_sizer.Add(text, 1, wx.EXPAND|wx.ALL, 10)&lt;br /&gt;        panel1_sizer.Add(button1, 0, wx.EXPAND|wx.ALL, 10)&lt;br /&gt;        panel1.SetSizer(panel1_sizer)&lt;br /&gt;&lt;br /&gt;        panel2_sizer = wx.BoxSizer(wx.HORIZONTAL)&lt;br /&gt;        button2 = wx.Button(panel2, -1, "I resize vertically")&lt;br /&gt;        button3 = wx.Button(panel2, -1, "I don't like resizing!")&lt;br /&gt;        panel2_sizer.Add(button2, 0, wx.EXPAND|wx.ALL, 20)&lt;br /&gt;        panel2_sizer.Add(button3, 0, wx.ALL, 100)&lt;br /&gt;        panel2.SetSizer(panel2_sizer)&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;        if "__WXMAC__" in wx.PlatformInfo:&lt;br /&gt;            self.SetSizer(dialog_sizer)&lt;br /&gt;        else:&lt;br /&gt;            self.SetSizerAndFit(dialog_sizer)&lt;br /&gt;        self.Centre()&lt;br /&gt;&lt;br /&gt;        self.Bind(wx.EVT_BUTTON, self.OnButton)&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;    def OnButton(self, evt):&lt;br /&gt;        self.EndModal(0)&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;#----------------------------------------------------------------------&lt;br /&gt;class MyApp(wx.App):&lt;br /&gt;    def OnInit(self):&lt;br /&gt;        dlg = MyTabbedDlg(None)&lt;br /&gt;        dlg.ShowModal()&lt;br /&gt;        dlg.Destroy()&lt;br /&gt;        return True&lt;br /&gt;&lt;br /&gt;myapp = MyApp(redirect=False)&lt;br /&gt;myapp.MainLoop()&lt;br /&gt;&lt;br /&gt;&lt;/blockquote&gt;&lt;br /&gt;运行后没有提示错误，就是panel1上的一个按钮，没有显示，panel2 的两个按钮重叠到一块了，&lt;br /&gt;如图所示：&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_6l_oWfVE7aE/SvkBWsJmOfI/AAAAAAAAAE8/wzrNWUrBe90/s1600-h/bug_1.JPG"&gt;&lt;img style="cursor:pointer; cursor:hand;width: 320px; height: 234px;" src="http://4.bp.blogspot.com/_6l_oWfVE7aE/SvkBWsJmOfI/AAAAAAAAAE8/wzrNWUrBe90/s320/bug_1.JPG" border="0" alt=""id="BLOGGER_PHOTO_ID_5402350717327784434" /&gt;&lt;/a&gt;&lt;br /&gt;用鼠标拖拽改变窗口大小后，问题就消失了，按钮安装设定的位置出现了。&lt;br /&gt;起初怀疑是sizer没有写好，可是按照教程上的例子比较了没有发现错误，实在是不知所以然。&lt;br /&gt;&lt;br /&gt;今天无意中把&lt;br /&gt;&lt;blockquote&gt;&lt;br /&gt;        notebook.AddPage(panel1, "Panel 1")&lt;br /&gt;        notebook.AddPage(panel2, "Panel 2")&lt;/blockquote&gt;&lt;br /&gt;这两句移到按钮定义语句之后，问题就解决了。&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_6l_oWfVE7aE/SvkB5eQ-gdI/AAAAAAAAAFE/uj1MU7S2jr0/s1600-h/fixed_1.bmp"&gt;&lt;img style="cursor:pointer; cursor:hand;width: 320px; height: 237px;" src="http://3.bp.blogspot.com/_6l_oWfVE7aE/SvkB5eQ-gdI/AAAAAAAAAFE/uj1MU7S2jr0/s320/fixed_1.bmp" border="0" alt=""id="BLOGGER_PHOTO_ID_5402351314896060882" /&gt;&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4797191850097376689-7744260009972786029?l=jackyma1981.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://jackyma1981.blogspot.com/feeds/7744260009972786029/comments/default' title='帖子评论'/><link rel='replies' type='text/html' href='http://jackyma1981.blogspot.com/2009/11/wxpython-sizer.html#comment-form' title='0 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4797191850097376689/posts/default/7744260009972786029'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4797191850097376689/posts/default/7744260009972786029'/><link rel='alternate' type='text/html' href='http://jackyma1981.blogspot.com/2009/11/wxpython-sizer.html' title='代码顺序带来的问题，wxpython sizer 使用体验'/><author><name>jacky ma</name><uri>https://profiles.google.com/115194989602674585864</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh5.googleusercontent.com/-pOworGIeDAk/AAAAAAAAAAI/AAAAAAAAAW4/yeNXTusAYmY/s512-c/photo.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://4.bp.blogspot.com/_6l_oWfVE7aE/SvkBWsJmOfI/AAAAAAAAAE8/wzrNWUrBe90/s72-c/bug_1.JPG' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4797191850097376689.post-8791468338021984832</id><published>2009-07-26T19:36:00.000-07:00</published><updated>2009-07-26T19:41:41.561-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='网页设计，代码收藏，Javascript'/><title type='text'>返回页面顶部的简单jsp代码实现</title><content type='html'>下面举两个简单的文字、图片效果&lt;br /&gt;1.文字实现，在相应位置放上就好&lt;br /&gt; href="javascript:scroll(0,0)"&gt;返回顶部&lt;br /&gt;文字的演示：&lt;a href="http://www.wdsxp.com/bbs" target="_blank"&gt;http://www.wdsxp.com/bbs&lt;/a&gt; 找到最下面TOP字样&lt;br /&gt;&lt;br /&gt;2.图片实现，也就是把按纽换成图片&lt;br /&gt;a href="javascript:scroll(0,0)"img src="template%5B%27images/footer.gif" border="0" height="28" width="190" &lt;br /&gt;把图片换成自己的，记得修改宽高&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4797191850097376689-8791468338021984832?l=jackyma1981.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://jackyma1981.blogspot.com/feeds/8791468338021984832/comments/default' title='帖子评论'/><link rel='replies' type='text/html' href='http://jackyma1981.blogspot.com/2009/07/jsp.html#comment-form' title='0 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4797191850097376689/posts/default/8791468338021984832'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4797191850097376689/posts/default/8791468338021984832'/><link rel='alternate' type='text/html' href='http://jackyma1981.blogspot.com/2009/07/jsp.html' title='返回页面顶部的简单jsp代码实现'/><author><name>jacky ma</name><uri>https://profiles.google.com/115194989602674585864</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh5.googleusercontent.com/-pOworGIeDAk/AAAAAAAAAAI/AAAAAAAAAW4/yeNXTusAYmY/s512-c/photo.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4797191850097376689.post-2333774140152315749</id><published>2009-07-25T07:07:00.000-07:00</published><updated>2009-07-25T07:10:21.908-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='网络技巧，突破网络限制'/><title type='text'>一劳永逸的翻墙方式</title><content type='html'>&lt;div id="msgcns!476CF61110E06082!2058" class="bvMsg"&gt;&lt;p&gt;&lt;span style="color:#00b050;"&gt;zhh:下文提供了一种翻墙方式。其中可以变通的步骤，包括代理的工具和浏览的工具。&lt;/span&gt; &lt;/p&gt;&lt;div style="margin-bottom: 10px;"&gt;&lt;span style="color:#00b050;"&gt;也可以用putty的工具plink.exe 下载地址：&lt;br /&gt;http://the.earth.li/~sgtatham/putty/latest/x86/plink.exe&lt;br /&gt;再在命令行下执行&lt;br /&gt;&lt;span style="background-color: rgb(0, 0, 0);" &gt;PLINK.EXE -C -N -D 127.0.0.1:7070 &lt;/span&gt;&lt;a href="mailto:user@address.com"&gt;&lt;span style="background-color: rgb(0, 0, 0);" &gt;user@address.com&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;/div&gt; &lt;div style="margin-bottom: 10px;"&gt;&lt;span style="color:#00b050;"&gt;linux下可以用&lt;/span&gt;&lt;/div&gt; &lt;div style="margin-bottom: 10px;"&gt;&lt;span style="color:#00b050;"&gt;&lt;span style="background-color: rgb(0, 0, 0);" &gt;ssh -CfNg -D 127.0.0.1:7070 &lt;/span&gt;&lt;a href="mailto:user@address.com"&gt;&lt;span style="background-color: rgb(0, 0, 0);" &gt;user@address.com&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;其中user是发邮件后所回邮件分配的用户，address.com是邮件分配的地址。执行命令后需要输入密码，正确输入后，不再有任何提示。&lt;br /&gt;保持该窗口不要关闭。在IE的选项里，连接，局域网设置里设置socks为127.0.0.1，端口7070，测试一下是否能正常上网，并找一家ip.cn, ip138.com这样的网站测一下自己的公网IP，看是否变为美国。&lt;br /&gt;该法同时可用于QQ，msn的穿墙。&lt;/span&gt;&lt;/div&gt; &lt;p&gt;本文将提供一种一劳永逸的翻墙方式（ssh -D），实施之后，那道墙——对你来说——将从此透明。 &lt;/p&gt;&lt;p&gt;本文面向的用户：使用Windows作为操作系统并且使用Firefox作为常用浏览器。 &lt;/p&gt;&lt;h2&gt;第一步：免费获取拥有SSH权限的帐号和密码。&lt;/h2&gt; &lt;p&gt;默认的免费获取方式：将本文转载到你自己的博客上，将转载后的文章网址发送到&lt;img title="" alt="f.ckgfw#gmail.com" src="http://photos.smugmug.com/photos/497999637_nw25h-O.png" /&gt;。 &lt;/p&gt;&lt;p&gt;转载方式：拷贝&lt;a href="https://dl.getdropbox.com/u/873345/static/embed.txt"&gt;文章代码&lt;/a&gt;至博客后台HTML编辑器中，直接发布即可，文章标题自拟，可在前后文插入自己的评论。 &lt;/p&gt;&lt;p&gt;经过人工审核，你将收到一封附有五个拥有SSH权限的帐号和密码的电子邮件，你可以将它们赠与你自己的读者。 &lt;/p&gt;&lt;p&gt;更多获取方式将在今后陆续激活，请关注我们的最新更新：&lt;a href="https://friendfeed.com/fuckgfw"&gt;https://friendfeed.com/fuckgfw&lt;/a&gt; &lt;/p&gt;&lt;h2&gt;第二步：配置MyEntunnel软件&lt;/h2&gt; &lt;p&gt;下载并安装MyEntunnel，该软件全名为My Encrypted Tunnel。 &lt;/p&gt;&lt;p&gt;一键下载：&lt;a href="https://dl.getdropbox.com/u/873345/download/myentunnel.exe"&gt;https://dl.getdropbox.com/u/873345/download/myentunnel.exe&lt;/a&gt; &lt;/p&gt;&lt;p&gt;&lt;img title="" alt="myentunnel" src="http://photos.smugmug.com/photos/497956295_FRKXY-O.jpg" /&gt; &lt;/p&gt;&lt;p&gt;按照上图将第一步收到的帐号信息填写到相应的地方后，点击&lt;img title="" alt="save" src="http://photos.smugmug.com/photos/497956305_GuUqV-O.jpg" /&gt;按钮，再点击&lt;img title="" alt="hide" src="http://photos.smugmug.com/photos/497956257_vDBHg-O.jpg" /&gt;按钮。 &lt;/p&gt;&lt;p&gt;第一次连接过程中会出现一个认证对话框，按照提示确认即可。以后的自动连接中将不再出现此认证对话框。 &lt;/p&gt;&lt;p&gt;最后点击&lt;img title="" alt="hide" src="http://photos.smugmug.com/photos/497956277_uqUyE-O.jpg" /&gt;按钮，使对话框隐藏到系统任务栏中。 &lt;/p&gt;&lt;p&gt;提示： &lt;/p&gt;&lt;p&gt;为MyEntunnel创建一个快捷方式，将其复制到系统的【启动】（C:\Documents and Settings\当前用户名（需要修改成你自己的）\「开始」菜单\程序\启动）文件夹中，今后开机便可自动启动软件，并自动连接服务器。 &lt;/p&gt;&lt;p&gt;&lt;img title="" alt="tray" src="http://photos.smugmug.com/photos/497956351_pNNkc-O.png" /&gt; &lt;/p&gt;&lt;p&gt;绿色代表连接成功且稳定；黄色代表正在连接或重新连接；红色代表连接失败。 &lt;/p&gt;&lt;h2&gt;第三步：配置Firefox浏览器&lt;/h2&gt; &lt;p&gt;假设你正使用&lt;a href="http://www.mozilla.com/firefox"&gt;Firefox浏览器&lt;/a&gt;阅读本文。 &lt;/p&gt;&lt;p&gt;一键安装：&lt;a href="http://autoproxy.mozdev.org/latest.xpi"&gt;http://autoproxy.mozdev.org/latest.xpi&lt;/a&gt; &lt;/p&gt;&lt;p&gt;&lt;img title="" alt="xpi-offical" src="http://photos.smugmug.com/photos/498951512_XzxSh-O.png" /&gt; &lt;/p&gt;&lt;p&gt;点击立即安装，安装后，重新启动Firefox。然后你会看到如下对话框，选择gfwlist (P.R.China)后，点击确定。 &lt;/p&gt;&lt;p&gt;&lt;img title="" alt="gfwlist" src="http://photos.smugmug.com/photos/497956357_vmp9W-O.png" /&gt; &lt;/p&gt;&lt;p&gt;接着你会看到Firefox主界面右上角出现有一个“福”字图案，点击“福”。 &lt;/p&gt;&lt;p&gt;&lt;img title="" alt="fu" src="http://photos.smugmug.com/photos/497956204_t4d3L-O.png" /&gt; &lt;/p&gt;&lt;p&gt;点击“代理服务器——编辑代理服务器”。 &lt;/p&gt;&lt;p&gt;&lt;img title="" alt="edit" src="http://photos.smugmug.com/photos/497956317_yWwtL-O.png" /&gt; &lt;/p&gt;&lt;p&gt;随即出现如下画面，你会看到如GAppProxy、Tor和Your Freedom这样一系列代理服务器名称。 &lt;/p&gt;&lt;p&gt;&lt;img title="" alt="before" src="http://photos.smugmug.com/photos/497956227_jQby9-O.png" /&gt; &lt;/p&gt;&lt;p&gt;将GAppProxy一栏的参数修改为如下图所示。 &lt;/p&gt;&lt;p&gt;&lt;img title="" alt="after" src="http://photos.smugmug.com/photos/497956232_ttQRj-O.png" /&gt; &lt;/p&gt;&lt;p&gt;修改完毕后，点击确定。至此配置已全部就绪。 &lt;/p&gt;&lt;p&gt;获取更多帮助，请关注反馈中心：&lt;a href="https://friendfeed.com/fuckgfw-feedback"&gt;https://friendfeed.com/fuckgfw-feedback&lt;/a&gt;&lt;a href="http://digg.com/d1nsDv"&gt;&lt;img title="I'm Bernie. Eat me!" alt="Bernie:" src="https://dl.getdropbox.com/u/873345/static/Bernie.png" align="right" border="0" /&gt;&lt;/a&gt;  &lt;/p&gt;&lt;h2&gt;第四步：支持fuckGFW&lt;/h2&gt; &lt;p&gt;获取详情，请关注捐赠与推广中心：&lt;a href="https://friendfeed.com/fuckgfw-donation-and-marketing"&gt;https://friendfeed.com/fuckgfw-donation-and-marketing&lt;/a&gt; &lt;/p&gt;&lt;h4&gt;版权信息：您可以自由复制、传播、演绎本作品且无需署名、无需注明原始出处。&lt;/h4&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4797191850097376689-2333774140152315749?l=jackyma1981.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://jackyma1981.blogspot.com/feeds/2333774140152315749/comments/default' title='帖子评论'/><link rel='replies' type='text/html' href='http://jackyma1981.blogspot.com/2009/07/blog-post.html#comment-form' title='0 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4797191850097376689/posts/default/2333774140152315749'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4797191850097376689/posts/default/2333774140152315749'/><link rel='alternate' type='text/html' href='http://jackyma1981.blogspot.com/2009/07/blog-post.html' title='一劳永逸的翻墙方式'/><author><name>jacky ma</name><uri>https://profiles.google.com/115194989602674585864</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh5.googleusercontent.com/-pOworGIeDAk/AAAAAAAAAAI/AAAAAAAAAW4/yeNXTusAYmY/s512-c/photo.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4797191850097376689.post-568836431315705652</id><published>2009-07-23T17:48:00.000-07:00</published><updated>2009-07-23T17:59:03.154-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='python学习'/><title type='text'>如何让python交互模式也能使用Tab键补全输入</title><content type='html'>别人的问题，自己做个收藏。&lt;br /&gt;&lt;a href="http://groups.google.com/group/python-cn/browse_thread/thread/272baca043c169fd?hl=zh-CN"&gt;http://groups.google.com/group/python-cn/browse_thread/thread/272baca043c169fd?hl=zh-CN&lt;/a&gt;&lt;br /&gt;&lt;p&gt;&lt;span class="fixed_width"  style="font-family:Courier,Monospaced;"&gt;牛人的回答：&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span class="fixed_width"  style="font-family:Courier,Monospaced;"&gt;交互模式使用 python 建议使用 ipython,&lt;br /&gt;执行&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;div id="qhide_174246" style="display: block;" class="qt"&gt;&lt;span class="fixed_width"  style="font-family:Courier,Monospaced;"&gt;&gt; sudo apt-get install ipython&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;span class="fixed_width"  style="font-family:Courier,Monospaced;"&gt;安装。&lt;br /&gt;&lt;/span&gt;&lt;p&gt;&lt;span class="fixed_width"  style="font-family:Courier,Monospaced;"&gt;不过 python 命令行其实也是支持补全的，&lt;br /&gt;在python 后先执行一句&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;div id="qhide_174247" style="display: block;" class="qt"&gt;&lt;span class="fixed_width"  style="font-family:Courier,Monospaced;"&gt;&gt; import readline, rlcompleter; readline.parse_and_bind(*"tab: complete"*)&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;span class="fixed_width"  style="font-family:Courier,Monospaced;"&gt;然后就可以按 *Tab 补全*了。&lt;br /&gt;&lt;/span&gt;&lt;p&gt;&lt;span class="fixed_width"  style="font-family:Courier,Monospaced;"&gt;在我这儿，我是让 python 命令行交互模式自动执行那语句，&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span class="fixed_width"  style="font-family:Courier,Monospaced;"&gt;即在* ~/.pythonstartup.py* 写入&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;div id="qhide_174248" style="display: block;" class="qt"&gt;&lt;span class="fixed_width"  style="font-family:Courier,Monospaced;"&gt;&gt; #!/usr/bin/python&lt;br /&gt;&gt; # -*- coding: UTF-8 -*-&lt;br /&gt;&lt;/span&gt;&lt;p&gt;&lt;span class="fixed_width"  style="font-family:Courier,Monospaced;"&gt;&gt; import readline, rlcompleter; readline.parse_and_bind("tab: complete") #&lt;br /&gt;&gt; 启用Tab补全&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span class="fixed_width"  style="font-family:Courier,Monospaced;"&gt;&gt; def igtk():&lt;br /&gt;&gt;     #import gtk, thread ; gtk.gdk.threads_init() ;&lt;br /&gt;&gt; thread.start_new_thread(gtk.main, ()) # 启用 Gtk 线程支持&lt;br /&gt;&gt;     globals()['gtk'] = __import__('gtk')&lt;br /&gt;&gt;     globals()['thread'] = __import__('thread')&lt;br /&gt;&gt;     gtk.gdk.threads_init()&lt;br /&gt;&gt;     thread.start_new_thread(gtk.main, ())&lt;br /&gt;&gt;     pass&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;/div&gt;&lt;span class="fixed_width"  style="font-family:Courier,Monospaced;"&gt;然后添加环境变量 PYTHONSTARTUP=~/.pythonstartup.py ，&lt;br /&gt;即在 *~/.bashrc* 末尾加一行&lt;br /&gt;&lt;/span&gt;&lt;div id="qhide_174249" style="display: block;" class="qt"&gt;&lt;span class="fixed_width"  style="font-family:Courier,Monospaced;"&gt;&gt; export PYTHONSTARTUP=~/.pythonstartup.py&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;span class="fixed_width"  style="font-family:Courier,Monospaced;"&gt;以后执行 python 命令进入交互模式，就直接可以* Tab 补全*了。&lt;br /&gt;&lt;/span&gt;&lt;p&gt;&lt;span class="fixed_width"  style="font-family:Courier,Monospaced;"&gt;上边例子还有个 igtk() 函数，&lt;br /&gt;是用于命令行测试 PyGtk 使用的，&lt;br /&gt;进入 Python 交互模式执行 igtk() 即可直接测试 Gtk 代码。&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4797191850097376689-568836431315705652?l=jackyma1981.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://jackyma1981.blogspot.com/feeds/568836431315705652/comments/default' title='帖子评论'/><link rel='replies' type='text/html' href='http://jackyma1981.blogspot.com/2009/07/pythontab.html#comment-form' title='0 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4797191850097376689/posts/default/568836431315705652'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4797191850097376689/posts/default/568836431315705652'/><link rel='alternate' type='text/html' href='http://jackyma1981.blogspot.com/2009/07/pythontab.html' title='如何让python交互模式也能使用Tab键补全输入'/><author><name>jacky ma</name><uri>https://profiles.google.com/115194989602674585864</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh5.googleusercontent.com/-pOworGIeDAk/AAAAAAAAAAI/AAAAAAAAAW4/yeNXTusAYmY/s512-c/photo.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4797191850097376689.post-1355579615739704721</id><published>2009-06-30T18:34:00.000-07:00</published><updated>2009-06-30T18:50:16.259-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='wxpython'/><title type='text'>转贴一个利用sizer的参考代码</title><content type='html'>&lt;div&gt;原帖地址：&lt;a href="http://wxforum.shadonet.com/viewtopic.php?t=24064"&gt;http://wxforum.shadonet.com/viewtopic.php?t=24064&lt;/a&gt;&lt;a href="http://2.bp.blogspot.com/_6l_oWfVE7aE/Skq_UoqL4VI/AAAAAAAAACo/VpLvVzp3oVc/s1600-h/image_png_part.png"&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;div&gt;&lt;img style="TEXT-ALIGN: center; MARGIN: 0px auto 10px; WIDTH: 191px; DISPLAY: block; HEIGHT: 265px; CURSOR: hand" id="BLOGGER_PHOTO_ID_5353302748576197362" border="0" alt="" src="http://2.bp.blogspot.com/_6l_oWfVE7aE/SkrAfKABqvI/AAAAAAAAACw/QRRdASwCKo0/s320/image_png_part.png" /&gt;&lt;br /&gt;&lt;br /&gt;实现如图的layout ：&lt;/div&gt;&lt;div&gt;&lt;br /&gt;//create sizer&lt;br /&gt;wxBoxSizer *sizer = new wxBoxSizer(wxVERTICAL);&lt;br /&gt;&lt;br /&gt;// top&lt;br /&gt;pPanelTop = new wxPanel(this, wxID_ANY, wxDefaultPosition, wxSize(320, 60) );&lt;br /&gt;wxColour color(_T("#FDFDFD"));&lt;br /&gt;pPanelTop-&gt;SetBackgroundColour(color);&lt;br /&gt;&lt;br /&gt;sizer-&gt;Add(pPanelTop, 0, wxALIGN_TOP wxEXPAND, 0);&lt;br /&gt;&lt;br /&gt;// center&lt;br /&gt;pPanelCenter = new wxPanel(this, wxID_ANY, wxDefaultPosition, wxSize(300, 400) );&lt;br /&gt;wxColour black_color(_T("BLACK"));&lt;br /&gt;pPanelCenter-&gt;SetBackgroundColour(black_color);&lt;br /&gt;&lt;br /&gt;pPanelLeft = new wxPanel(this, wxID_ANY, wxDefaultPosition, wxSize(10, 100) );&lt;br /&gt;pPanelRight = new wxPanel(this, wxID_ANY, wxDefaultPosition, wxSize(10, 100) );&lt;br /&gt;pPanelLeft-&gt;SetBackgroundColour(color);&lt;br /&gt;pPanelRight-&gt;SetBackgroundColour(color);&lt;br /&gt;&lt;br /&gt;wxBoxSizer *center_sizer = new wxBoxSizer(wxHORIZONTAL);&lt;br /&gt;center_sizer-&gt;Add(pPanelLeft, 0, wxEXPAND, 0);&lt;br /&gt;center_sizer-&gt;Add(pPanelCenter, 1, wxEXPAND, 0);&lt;br /&gt;center_sizer-&gt;Add(pPanelRight, 0, wxEXPAND, 0);&lt;br /&gt;&lt;br /&gt;// bottom&lt;br /&gt;pPanelBottom = new wxPanel(this, wxID_ANY, wxDefaultPosition, wxSize(100, 10) );&lt;br /&gt;pPanelBottom-&gt;SetBackgroundColour(color);&lt;br /&gt;&lt;br /&gt;sizer-&gt;Add(center_sizer, 1, wxEXPAND, 0);&lt;br /&gt;sizer-&gt;Add(pPanelBottom, 0, wxALIGN_BOTTOM wxEXPAND, 0);&lt;br /&gt;&lt;br /&gt;sizer-&gt;SetSizeHints(this);&lt;br /&gt;SetSizer(sizer);&lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4797191850097376689-1355579615739704721?l=jackyma1981.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://jackyma1981.blogspot.com/feeds/1355579615739704721/comments/default' title='帖子评论'/><link rel='replies' type='text/html' href='http://jackyma1981.blogspot.com/2009/06/sizer.html#comment-form' title='0 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4797191850097376689/posts/default/1355579615739704721'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4797191850097376689/posts/default/1355579615739704721'/><link rel='alternate' type='text/html' href='http://jackyma1981.blogspot.com/2009/06/sizer.html' title='转贴一个利用sizer的参考代码'/><author><name>jacky ma</name><uri>https://profiles.google.com/115194989602674585864</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh5.googleusercontent.com/-pOworGIeDAk/AAAAAAAAAAI/AAAAAAAAAW4/yeNXTusAYmY/s512-c/photo.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://2.bp.blogspot.com/_6l_oWfVE7aE/SkrAfKABqvI/AAAAAAAAACw/QRRdASwCKo0/s72-c/image_png_part.png' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4797191850097376689.post-2302372621517498177</id><published>2009-06-25T17:58:00.000-07:00</published><updated>2009-06-25T18:26:00.503-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='python视频教程'/><category scheme='http://www.blogger.com/atom/ns#' term='python'/><title type='text'>Python视频教程--（设置环境变量）Adding Python to DOS Path</title><content type='html'>自己作为一个PYthon的初学者，更能够理解一些初学者的迷惑的心情，和渴望有一个高手能给自己演示操作一下。这样或许能帮助我们更好的理解某些书面文字，今天上网搜到一个视频教程网，虽然是英文的但有些操作是可以看的，所以推荐给网友看看。&lt;br /&gt;&lt;br /&gt;直接点击下面网址，进入网站在线观看。&lt;br /&gt;&lt;br /&gt;    &lt;p&gt;视频所在网址: '&lt;a href="http://www.showmedo.com/videos/video?name=960000&amp;fromSeriesID=96"&gt;Adding Python to DOS Path&lt;/a&gt;' &lt;br /&gt;    at ShowMeDo from the &lt;a href="http://www.showmedo.com/videos/python"&gt;Python&lt;/a&gt; category.&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4797191850097376689-2302372621517498177?l=jackyma1981.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://jackyma1981.blogspot.com/feeds/2302372621517498177/comments/default' title='帖子评论'/><link rel='replies' type='text/html' href='http://jackyma1981.blogspot.com/2009/06/python-adding-python-to-dos-path.html#comment-form' title='0 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4797191850097376689/posts/default/2302372621517498177'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4797191850097376689/posts/default/2302372621517498177'/><link rel='alternate' type='text/html' href='http://jackyma1981.blogspot.com/2009/06/python-adding-python-to-dos-path.html' title='Python视频教程--（设置环境变量）Adding Python to DOS Path'/><author><name>jacky ma</name><uri>https://profiles.google.com/115194989602674585864</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh5.googleusercontent.com/-pOworGIeDAk/AAAAAAAAAAI/AAAAAAAAAW4/yeNXTusAYmY/s512-c/photo.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4797191850097376689.post-7498915444334367068</id><published>2009-06-24T22:57:00.000-07:00</published><updated>2009-06-24T23:08:26.733-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='wxpython demo'/><category scheme='http://www.blogger.com/atom/ns#' term='style'/><title type='text'>wxpython学习心得</title><content type='html'>今天调试自己的一个代码，发现在自己电脑上可以通过，转到单位电脑上就报错“NameError: global name 'INB_FIT_LABELTEXT' is not defined”，真的很奇怪，最后发现我个人电脑装的是wxpython 最新版本wxPython2.8-win32-unicode-&lt;span style="color: rgb(255, 102, 102);"&gt;2.8.10.1&lt;/span&gt;-py25，而单位的是wxPython2.8-win32-unicode-&lt;span style="color: rgb(255, 0, 0);"&gt;2.8.9.2&lt;/span&gt;-py25，我把单位电脑的wxpython升级之后，问题迎刃而解了。&lt;br /&gt;&lt;br /&gt;看来wxPython2.8-win32-unicode-2.8.9.2-py25里没有定义INB_FIT_LABELTEXT这个style。&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4797191850097376689-7498915444334367068?l=jackyma1981.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://jackyma1981.blogspot.com/feeds/7498915444334367068/comments/default' title='帖子评论'/><link rel='replies' type='text/html' href='http://jackyma1981.blogspot.com/2009/06/wxpython.html#comment-form' title='1 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4797191850097376689/posts/default/7498915444334367068'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4797191850097376689/posts/default/7498915444334367068'/><link rel='alternate' type='text/html' href='http://jackyma1981.blogspot.com/2009/06/wxpython.html' title='wxpython学习心得'/><author><name>jacky ma</name><uri>https://profiles.google.com/115194989602674585864</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh5.googleusercontent.com/-pOworGIeDAk/AAAAAAAAAAI/AAAAAAAAAW4/yeNXTusAYmY/s512-c/photo.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4797191850097376689.post-1108799948438731099</id><published>2009-06-24T19:30:00.000-07:00</published><updated>2009-06-24T19:37:56.205-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Windows优化，系统优化软件， 免费软件，日文系统'/><title type='text'>推荐一款性能可比Windows优化大师的多国语言版系统优化软件</title><content type='html'>最近发现一款比较不错的免费的系统优化软件，Glary Utilities。&lt;br /&gt;最大的特点是可以支持多国语言，可以装在日文，英文，中文等多个系统。&lt;br /&gt;下载地址是http://www.glaryutilities.com/gu.html?tag=download&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4797191850097376689-1108799948438731099?l=jackyma1981.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://jackyma1981.blogspot.com/feeds/1108799948438731099/comments/default' title='帖子评论'/><link rel='replies' type='text/html' href='http://jackyma1981.blogspot.com/2009/06/windows.html#comment-form' title='0 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4797191850097376689/posts/default/1108799948438731099'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4797191850097376689/posts/default/1108799948438731099'/><link rel='alternate' type='text/html' href='http://jackyma1981.blogspot.com/2009/06/windows.html' title='推荐一款性能可比Windows优化大师的多国语言版系统优化软件'/><author><name>jacky ma</name><uri>https://profiles.google.com/115194989602674585864</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh5.googleusercontent.com/-pOworGIeDAk/AAAAAAAAAAI/AAAAAAAAAW4/yeNXTusAYmY/s512-c/photo.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4797191850097376689.post-5917127589231004168</id><published>2009-06-24T07:33:00.000-07:00</published><updated>2009-06-24T07:46:15.679-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='wxpython demo'/><category scheme='http://www.blogger.com/atom/ns#' term='python'/><category scheme='http://www.blogger.com/atom/ns#' term='labelbook'/><title type='text'>wxpython demo labelbook学习心得</title><content type='html'>今天终于完成了一个自己第一个代码的完善工作－－一个wxpython的demo labelbook的学习代码。&lt;br /&gt;作为纪念想把代码写入博客，也算是给网友一个分享吧。&lt;br /&gt;再此也要感谢&lt;a class="ln" href="http://groups.google.com/group/python-cn?hl=zh-CN"&gt;python-cn`CPyUG`华蟒用户组(中文Py用户组)&lt;/a&gt;中一个叫汪文进的网友，他给了我很大的帮助使得我能够顺利完成。&lt;br /&gt;程序代码如下：&lt;br /&gt;import wx&lt;br /&gt;import wx.lib.colourselect as csel&lt;br /&gt;import os&lt;br /&gt;import sys&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;try:&lt;br /&gt;    dirName = os.path.dirname(os.path.abspath(__file__))&lt;br /&gt;except:&lt;br /&gt;    dirName = os.path.dirname(os.path.abspath(sys.argv[0]))&lt;br /&gt;&lt;br /&gt;bitmapDir = os.path.join(dirName, 'images')&lt;br /&gt;sys.path.append(os.path.split(dirName)[0])&lt;br /&gt;&lt;br /&gt;try:&lt;br /&gt;    from agw import labelbook as LB&lt;br /&gt;    from agw.fmresources import *&lt;br /&gt;except ImportError: # if it's not there locally, try the wxPython lib.&lt;br /&gt;    import wx.lib.agw.labelbook as LB&lt;br /&gt;    from wx.lib.agw.fmresources import *&lt;br /&gt;  &lt;br /&gt;#import images&lt;br /&gt;_pageTexts = ["Hello", "From", "wxPython", "LabelBook", "Demo"]&lt;br /&gt;#_pageIcons = []&lt;br /&gt;_pageIcons = ["roll.png", "charge.png", "add.png", "decrypted.png", "news.png"]&lt;br /&gt;&lt;br /&gt;#_pageIcons = ["icon-equiv.png","icon-minimiz.png","icon-product.png","icon-setup.png","product4x.png"]&lt;br /&gt;_pageColours = [wx.RED, wx.GREEN, wx.WHITE, wx.BLUE, "Pink"]&lt;br /&gt;&lt;br /&gt;class LabelBook(wx.Frame):&lt;br /&gt;    def __init__(self, parent):&lt;br /&gt;        wx.Frame.__init__(self, parent)&lt;br /&gt;        self.mainpanel = wx.Panel(self, -1)&lt;br /&gt;     &lt;br /&gt;        self.SetProperties()&lt;br /&gt;        self.CreateLabelBook()&lt;br /&gt;        self.DoLayout()&lt;br /&gt;&lt;br /&gt;        self.SetSize((600,500))&lt;br /&gt;&lt;br /&gt;        #self.SetIcon(images.Mondrian.GetIcon())&lt;br /&gt;        self.CenterOnScreen()&lt;br /&gt;&lt;br /&gt;        #self.initializing = False&lt;br /&gt;        self.SendSizeEvent()&lt;br /&gt;      &lt;br /&gt;    def SetProperties(self):&lt;br /&gt;&lt;br /&gt;        self.SetTitle("The success labelbook!-)")&lt;br /&gt;       &lt;br /&gt;      &lt;br /&gt;    def DoLayout(self):&lt;br /&gt;        mainsizer = wx.BoxSizer(wx.VERTICAL)&lt;br /&gt;        panelsizer = wx.BoxSizer(wx.VERTICAL)&lt;br /&gt;      &lt;br /&gt;        panelsizer.Add(self.book, 1, wx.EXPAND, 0)&lt;br /&gt;        self.mainpanel.SetSizer(panelsizer)&lt;br /&gt;        panelsizer.Layout()&lt;br /&gt;     &lt;br /&gt;        mainsizer.Add(self.mainpanel, 1, wx.EXPAND, 0)&lt;br /&gt;&lt;br /&gt;        self.SetSizer(mainsizer)&lt;br /&gt;        mainsizer.Layout()&lt;br /&gt;        self.Layout()&lt;br /&gt;&lt;br /&gt;    def CreateLabelBook(self):&lt;br /&gt;        style = self.GetBookStyles()&lt;br /&gt;              &lt;br /&gt;        self.book = LB.LabelBook(self.mainpanel, -1,style=style)                    &lt;br /&gt;        #self.book = LB.FlatImageBook(self.mainpanel, -1, style=style)          &lt;br /&gt;&lt;br /&gt;        self.imagelist = self.CreateImageList()&lt;br /&gt;        self.book.AssignImageList(self.imagelist)&lt;br /&gt;        #self.Refresh()&lt;br /&gt;&lt;br /&gt;        for indx, txts in enumerate(_pageTexts):&lt;br /&gt;            #label = "This is panel number %d"%(indx+1)&lt;br /&gt;            self.book.AddPage(TestPanel(self.book,_pageColours[indx]),&lt;br /&gt;                              txts, True, indx)&lt;br /&gt;&lt;br /&gt;        self.book.SetSelection(0)&lt;br /&gt;        #self.book.SetWindowStyleFlag(style=LB.INB_FIT_BUTTON)&lt;br /&gt;       &lt;br /&gt;        self.SendSizeEvent()&lt;br /&gt;&lt;br /&gt;    def GetBookStyles(self):&lt;br /&gt;       style = INB_FIT_BUTTON&lt;br /&gt;       &lt;br /&gt;        style |= LB.INB_FIT_LABELTEXT&lt;br /&gt;        #style |= INB_WEB_HILITE&lt;br /&gt;        style |= INB_USE_PIN_BUTTON&lt;br /&gt;        #style |= INB_BORDER&lt;br /&gt;        #style |= LB.INB_SHOW_ONLY_TEXT   #only used in FlatImageBook type&lt;br /&gt;       &lt;br /&gt;        style = self.GetBookOrientation(style)&lt;br /&gt;       &lt;br /&gt;       return style          &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;    def CreateImageList(self):&lt;br /&gt;&lt;br /&gt;        imagelist = wx.ImageList(32, 32)&lt;br /&gt;        for img in _pageIcons:&lt;br /&gt;            newImg = os.path.join(bitmapDir, "lb%s"%img)&lt;br /&gt;            bmp = wx.Bitmap(newImg, wx.BITMAP_TYPE_PNG)&lt;br /&gt;            imagelist.Add(bmp)&lt;br /&gt;      &lt;br /&gt;        #bmp = imagebmp.GetBitmap()&lt;br /&gt;        #for i in range(5):&lt;br /&gt;        #    imagelist.Add(bmp)&lt;br /&gt;&lt;br /&gt;        return imagelist&lt;br /&gt;&lt;br /&gt;    def GetBookOrientation(self, style):&lt;br /&gt;&lt;br /&gt;        style |= INB_LEFT&lt;br /&gt;        #style |= INB_RIGHT&lt;br /&gt;        #style |= LB.INB_TOP   #only used in FlatImageBook type&lt;br /&gt;        #style |= INB_BOTTOM   #only used in FlatImageBook type&lt;br /&gt;&lt;br /&gt;        return style&lt;br /&gt; &lt;br /&gt;#---------------------------------------------------------------------------&lt;br /&gt;class TestPanel(wx.Panel):&lt;br /&gt;    def __init__(self, parent,colour):&lt;br /&gt;        #self.log = log&lt;br /&gt;        wx.Panel.__init__(self, parent, -1)&lt;br /&gt;      &lt;br /&gt;        st = wx.StaticText(self, -1,&lt;br /&gt;                          "You can put nearly any type of window here,\n"&lt;br /&gt;                          "and if the platform supports it then the\n"&lt;br /&gt;                          "tabs can be on any side of the notebook.",&lt;br /&gt;                          (10, 10))&lt;br /&gt;&lt;br /&gt;        b = wx.Button(self, -1, " Test LabelBook And FlatImageBook ", (100,100))&lt;br /&gt;      &lt;br /&gt;      &lt;br /&gt;        self.Bind(wx.EVT_BUTTON, self.OnButton, b)&lt;br /&gt;        self.SetBackgroundColour(colour)&lt;br /&gt;&lt;br /&gt;    def OnButton(self, evt):&lt;br /&gt;        msg= "this is a botton!"&lt;br /&gt;        dlg = wx.MessageDialog(self,msg,"this my test",wx.OK | wx.ICON_INFORMATION)&lt;br /&gt;        dlg.ShowModal()&lt;br /&gt;        dlg.Destroy()&lt;br /&gt;&lt;br /&gt;if __name__ == '__main__':&lt;br /&gt;    app = wx.PySimpleApp()&lt;br /&gt;    frame = LabelBook(None)&lt;br /&gt;    frame.Show()&lt;br /&gt;    app.MainLoop()&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4797191850097376689-5917127589231004168?l=jackyma1981.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://jackyma1981.blogspot.com/feeds/5917127589231004168/comments/default' title='帖子评论'/><link rel='replies' type='text/html' href='http://jackyma1981.blogspot.com/2009/06/wxpython-demo-labelbook.html#comment-form' title='0 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4797191850097376689/posts/default/5917127589231004168'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4797191850097376689/posts/default/5917127589231004168'/><link rel='alternate' type='text/html' href='http://jackyma1981.blogspot.com/2009/06/wxpython-demo-labelbook.html' title='wxpython demo labelbook学习心得'/><author><name>jacky ma</name><uri>https://profiles.google.com/115194989602674585864</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh5.googleusercontent.com/-pOworGIeDAk/AAAAAAAAAAI/AAAAAAAAAW4/yeNXTusAYmY/s512-c/photo.jpg'/></author><thr:total>0</thr:total></entry></feed>
