<?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:blogger='http://schemas.google.com/blogger/2008' 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-5396871486277763708</id><updated>2024-09-14T09:04:20.382-07:00</updated><category term="Android"/><category term="Java Mail"/><category term="Java J2ME"/><category term="eclipse"/><category term="JAVA netBeans"/><category term="Java 名詞說明"/><category term="NET"/><category term="SQL"/><category term="Sony Ericsson"/><category term="linux"/><category term="sqlite"/><category term="中國大陸"/><category term="公民號碼"/><category term="其他"/><category term="無線AP"/><category term="身份證字號"/><title type='text'>Java2Tw</title><subtitle type='html'>寫給自己看，以後要找資料比較快...</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://java2tw.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5396871486277763708/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://java2tw.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><link rel='next' type='application/atom+xml' href='http://www.blogger.com/feeds/5396871486277763708/posts/default?start-index=26&amp;max-results=25&amp;redirect=false'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/07597836455479751847</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>38</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-5396871486277763708.post-2382639495494102386</id><published>2011-09-07T01:31:00.000-07:00</published><updated>2011-09-07T01:32:22.552-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Android"/><category scheme="http://www.blogger.com/atom/ns#" term="eclipse"/><title type='text'>SDK  升級到 android-12 模擬器出問題</title><content type='html'>今天要寫一些程式到Galaxy Tab 10.1時把SDK升到API Level 12,啟動模擬器時出現了&lt;br /&gt;
&lt;br /&gt;
invalid command-line parameter: Files\Android\android-sdk-windows\tools/emulator-arm.exe.&lt;br /&gt;
Hint: use &#39;@foo&#39; to launch a virtual device named &#39;foo&#39;.please use -help for more information&lt;br /&gt;
&lt;br /&gt;
問題點是發生在SDK資料夾的路徑問題,只要路徑有空白格就會出錯&lt;br /&gt;
&lt;br /&gt;
C:\Program Files\Android\android-sdk-windows&lt;br /&gt;
改成&lt;br /&gt;
C:\PROGRA~1\Android\android-sdk-windows&lt;br /&gt;
&lt;br /&gt;
模擬器就順利起來了</content><link rel='replies' type='application/atom+xml' href='http://java2tw.blogspot.com/feeds/2382639495494102386/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/5396871486277763708/2382639495494102386' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5396871486277763708/posts/default/2382639495494102386'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5396871486277763708/posts/default/2382639495494102386'/><link rel='alternate' type='text/html' href='http://java2tw.blogspot.com/2011/09/sdk-android-12.html' title='SDK  升級到 android-12 模擬器出問題'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/07597836455479751847</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5396871486277763708.post-5607858876376444978</id><published>2011-08-01T23:35:00.000-07:00</published><updated>2011-08-01T23:36:10.908-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Android"/><category scheme="http://www.blogger.com/atom/ns#" term="sqlite"/><title type='text'>SQLite query in android application</title><content type='html'>在Android 裡使用SQLite,最重要的&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #222222; font-family: Georgia, Utopia, &#39;Palatino Linotype&#39;, Palatino, serif; font-size: 15px; line-height: 21px;&quot;&gt;class 就是 SQLiteOpenHelper&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #222222; font-family: Georgia, Utopia, &#39;Palatino Linotype&#39;, Palatino, serif; font-size: 15px; line-height: 21px;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #222222; font-family: Georgia, Utopia, &#39;Palatino Linotype&#39;, Palatino, serif; font-size: 15px; line-height: 21px;&quot;&gt;重點來了&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #333333; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;h4 class=&quot;jd-details-title&quot; style=&quot;background-color: #e2e2e2; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #3a3a3a; font-size: 1.1em; margin-bottom: 0.65em; margin-left: 0px; margin-right: 0px; margin-top: 1.25em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;&lt;span class=&quot;sympad&quot; style=&quot;margin-right: 2px;&quot;&gt;getWritableDatabase&lt;/span&gt;()&lt;/h4&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: red; font-family: arial, sans-serif; line-height: 16px;&quot;&gt;Database upgrade may take a long time, you should not call this method from the application main thread, including from&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: arial, sans-serif; line-height: 16px;&quot;&gt;&lt;code style=&quot;font-family: monospace; line-height: 1em;&quot;&gt;&lt;a href=&quot;http://developer.android.com/reference/android/content/ContentProvider.html#onCreate()&quot;&gt;ContentProvider.onCreate()&lt;/a&gt;&lt;/code&gt;.&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: arial, sans-serif; line-height: 16px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: red;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #333333; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;h4 class=&quot;jd-details-title&quot; style=&quot;background-color: #e2e2e2; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #3a3a3a; font-size: 1.1em; margin-bottom: 0.65em; margin-left: 0px; margin-right: 0px; margin-top: 1.25em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;&lt;span class=&quot;sympad&quot; style=&quot;margin-right: 2px;&quot;&gt;getReadableDatabase()&lt;/span&gt;&lt;/h4&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: arial, sans-serif; line-height: 16px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: red;&quot;&gt;Like&amp;nbsp;&lt;code style=&quot;font-family: monospace; line-height: 1em;&quot;&gt;&lt;a href=&quot;http://developer.android.com/reference/android/database/sqlite/SQLiteOpenHelper.html#getWritableDatabase()&quot;&gt;getWritableDatabase()&lt;/a&gt;&lt;/code&gt;, this method may take a long time to return, so you should not call it from the application main thread, including from&amp;nbsp;&lt;code style=&quot;font-family: monospace; line-height: 1em;&quot;&gt;&lt;a href=&quot;http://developer.android.com/reference/android/content/ContentProvider.html#onCreate()&quot;&gt;ContentProvider.onCreate()&lt;/a&gt;&lt;/code&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: orange;&quot;&gt;.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #333333; font-family: arial, sans-serif; font-size: 13px; line-height: 16px;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #333333; font-family: arial, sans-serif; font-size: 13px; line-height: 16px;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #222222; font-family: Georgia, Utopia, &#39;Palatino Linotype&#39;, Palatino, serif; font-size: 15px; line-height: 21px;&quot;&gt;說實在的,在對資料庫的抓取或異動還滿難用的....&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #333333; font-family: arial, sans-serif; font-size: x-small;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;line-height: 16px;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #333333; font-family: arial, sans-serif; font-size: x-small;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;line-height: 16px;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #333333; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;h4 class=&quot;jd-details-title&quot; style=&quot;background-color: #e2e2e2; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #3a3a3a; font-size: 1.1em; margin-bottom: 0.65em; margin-left: 0px; margin-right: 0px; margin-top: 1.25em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;&lt;span class=&quot;normal&quot; style=&quot;font-size: 0.9em; font-weight: normal;&quot;&gt;public&amp;nbsp;&lt;a href=&quot;http://developer.android.com/reference/android/database/Cursor.html&quot; style=&quot;color: #006699;&quot;&gt;Cursor&lt;/a&gt;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;sympad&quot; style=&quot;margin-right: 2px;&quot;&gt;query&lt;/span&gt;&amp;nbsp;&lt;span class=&quot;normal&quot; style=&quot;font-size: 0.9em; font-weight: normal;&quot;&gt;(boolean distinct,&amp;nbsp;&lt;a href=&quot;http://developer.android.com/reference/java/lang/String.html&quot; style=&quot;color: #006699;&quot;&gt;String&lt;/a&gt;&amp;nbsp;table,&amp;nbsp;&lt;a href=&quot;http://developer.android.com/reference/java/lang/String.html&quot; style=&quot;color: #006699;&quot;&gt;String[]&lt;/a&gt;&amp;nbsp;columns,&amp;nbsp;&lt;a href=&quot;http://developer.android.com/reference/java/lang/String.html&quot; style=&quot;color: #006699;&quot;&gt;String&lt;/a&gt;&amp;nbsp;selection,&amp;nbsp;&lt;a href=&quot;http://developer.android.com/reference/java/lang/String.html&quot; style=&quot;color: #006699;&quot;&gt;String[]&lt;/a&gt;&amp;nbsp;selectionArgs,&amp;nbsp;&lt;a href=&quot;http://developer.android.com/reference/java/lang/String.html&quot; style=&quot;color: #006699;&quot;&gt;String&lt;/a&gt;&amp;nbsp;groupBy,&amp;nbsp;&lt;a href=&quot;http://developer.android.com/reference/java/lang/String.html&quot; style=&quot;color: #006699;&quot;&gt;String&lt;/a&gt;&amp;nbsp;having,&amp;nbsp;&lt;a href=&quot;http://developer.android.com/reference/java/lang/String.html&quot; style=&quot;color: #006699;&quot;&gt;String&lt;/a&gt;&amp;nbsp;orderBy,&amp;nbsp;&lt;a href=&quot;http://developer.android.com/reference/java/lang/String.html&quot; style=&quot;color: #006699;&quot;&gt;String&lt;/a&gt;&amp;nbsp;limit)&lt;/span&gt;&lt;/h4&gt;&lt;div class=&quot;api-level&quot; style=&quot;border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #999999; float: right; font-size: 0.8em; font-weight: normal; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: -25px; padding-bottom: 0px; padding-left: 7px; padding-right: 7px; padding-top: 0px;&quot;&gt;&lt;div style=&quot;border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;Since:&amp;nbsp;&lt;a href=&quot;http://developer.android.com/guide/appendix/api-levels.html#level1&quot; style=&quot;color: #999999; text-decoration: none;&quot;&gt;API Level 1&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;jd-details-descr&quot; style=&quot;border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; margin-bottom: 0.5em; margin-left: 0.25em; margin-right: 0.25em; margin-top: 0.5em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;&lt;div class=&quot;jd-tagdata jd-tagdescr&quot; style=&quot;border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; line-height: 1em; margin-bottom: 0.75em; margin-left: 0px; margin-right: 0px; margin-top: 0.25em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;&lt;div style=&quot;border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; line-height: 1.3em; margin-bottom: 0.5em; margin-left: 0px; margin-right: 0px; margin-top: 0.5em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;Query the given URL, returning a&amp;nbsp;&lt;code style=&quot;color: #007000; font-family: monospace; line-height: 1em;&quot;&gt;&lt;a href=&quot;http://developer.android.com/reference/android/database/Cursor.html&quot; style=&quot;color: #006699;&quot;&gt;Cursor&lt;/a&gt;&lt;/code&gt;&amp;nbsp;over the result set.&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;jd-tagdata&quot; style=&quot;border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; margin-bottom: 0.5em; margin-left: 1em; margin-right: 1em; margin-top: 0.5em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;&lt;h5 class=&quot;jd-tagtitle&quot; style=&quot;border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #3a3a3a; font-size: 1em; margin-bottom: 0.65em; margin-left: 0px; margin-right: 0px; margin-top: 1em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;Parameters&lt;/h5&gt;&lt;table class=&quot;jd-tagtable&quot; style=&quot;border-bottom-width: 0px; border-collapse: collapse; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; empty-cells: show; font-size: 1em; margin-bottom: 1em; margin-left: 1em; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;&lt;tbody style=&quot;border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;
&lt;tr style=&quot;border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;&lt;th style=&quot;background-color: white; border-bottom-style: none; border-bottom-width: 1px; border-color: initial; border-color: initial; border-left-style: none; border-left-width: 1px; border-right-style: none; border-right-width: 1px; border-style: initial; border-top-style: none; border-top-width: 1px; border-width: initial; font-style: italic; font-weight: normal; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 2px; padding-left: 10px; padding-right: 10px; padding-top: 2px; text-align: left; vertical-align: top;&quot;&gt;distinct&lt;/th&gt;&lt;td style=&quot;background-color: white; border-bottom-style: none; border-bottom-width: 1px; border-color: initial; border-color: initial; border-left-style: none; border-left-width: 1px; border-right-style: none; border-right-width: 1px; border-style: initial; border-top-style: none; border-top-width: 1px; border-width: initial; font-weight: normal; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 2px; padding-left: 10px; padding-right: 10px; padding-top: 2px; text-align: left; vertical-align: top;&quot;&gt;要不要 DISTINCT, TRUE/FALSE&lt;/td&gt;&lt;/tr&gt;
&lt;tr style=&quot;border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;&lt;th style=&quot;background-color: white; border-bottom-style: none; border-bottom-width: 1px; border-color: initial; border-color: initial; border-left-style: none; border-left-width: 1px; border-right-style: none; border-right-width: 1px; border-style: initial; border-top-style: none; border-top-width: 1px; border-width: initial; font-style: italic; font-weight: normal; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 2px; padding-left: 10px; padding-right: 10px; padding-top: 2px; text-align: left; vertical-align: top;&quot;&gt;table&lt;/th&gt;&lt;td style=&quot;background-color: white; border-bottom-style: none; border-bottom-width: 1px; border-color: initial; border-color: initial; border-left-style: none; border-left-width: 1px; border-right-style: none; border-right-width: 1px; border-style: initial; border-top-style: none; border-top-width: 1px; border-width: initial; font-weight: normal; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 2px; padding-left: 10px; padding-right: 10px; padding-top: 2px; text-align: left; vertical-align: top;&quot;&gt;表格名稱&lt;/td&gt;&lt;/tr&gt;
&lt;tr style=&quot;border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;&lt;th style=&quot;background-color: white; border-bottom-style: none; border-bottom-width: 1px; border-color: initial; border-color: initial; border-left-style: none; border-left-width: 1px; border-right-style: none; border-right-width: 1px; border-style: initial; border-top-style: none; border-top-width: 1px; border-width: initial; font-style: italic; font-weight: normal; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 2px; padding-left: 10px; padding-right: 10px; padding-top: 2px; text-align: left; vertical-align: top;&quot;&gt;columns&lt;/th&gt;&lt;td style=&quot;background-color: white; border-bottom-style: none; border-bottom-width: 1px; border-color: initial; border-color: initial; border-left-style: none; border-left-width: 1px; border-right-style: none; border-right-width: 1px; border-style: initial; border-top-style: none; border-top-width: 1px; border-width: initial; font-weight: normal; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 2px; padding-left: 10px; padding-right: 10px; padding-top: 2px; text-align: left; vertical-align: top;&quot;&gt;new String[]{&quot;column01&quot;,&quot;column02&quot;,&quot;column03&quot;};&lt;/td&gt;&lt;/tr&gt;
&lt;tr style=&quot;border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;&lt;th style=&quot;background-color: white; border-bottom-style: none; border-bottom-width: 1px; border-color: initial; border-color: initial; border-left-style: none; border-left-width: 1px; border-right-style: none; border-right-width: 1px; border-style: initial; border-top-style: none; border-top-width: 1px; border-width: initial; font-style: italic; font-weight: normal; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 2px; padding-left: 10px; padding-right: 10px; padding-top: 2px; text-align: left; vertical-align: top;&quot;&gt;selection&lt;/th&gt;&lt;td style=&quot;background-color: white; border-bottom-style: none; border-bottom-width: 1px; border-color: initial; border-color: initial; border-left-style: none; border-left-width: 1px; border-right-style: none; border-right-width: 1px; border-style: initial; border-top-style: none; border-top-width: 1px; border-width: initial; font-weight: normal; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 2px; padding-left: 10px; padding-right: 10px; padding-top: 2px; text-align: left; vertical-align: top;&quot;&gt;&amp;nbsp;&quot;column01 = ? AND&amp;nbsp;&quot;column02 = ?&quot;;&lt;/td&gt;&lt;/tr&gt;
&lt;tr style=&quot;border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;&lt;th style=&quot;background-color: white; border-bottom-style: none; border-bottom-width: 1px; border-color: initial; border-color: initial; border-left-style: none; border-left-width: 1px; border-right-style: none; border-right-width: 1px; border-style: initial; border-top-style: none; border-top-width: 1px; border-width: initial; font-style: italic; font-weight: normal; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 2px; padding-left: 10px; padding-right: 10px; padding-top: 2px; text-align: left; vertical-align: top;&quot;&gt;selectionArgs&lt;/th&gt;&lt;td style=&quot;background-color: white; border-bottom-style: none; border-bottom-width: 1px; border-color: initial; border-color: initial; border-left-style: none; border-left-width: 1px; border-right-style: none; border-right-width: 1px; border-style: initial; border-top-style: none; border-top-width: 1px; border-width: initial; font-weight: normal; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 2px; padding-left: 10px; padding-right: 10px; padding-top: 2px; text-align: left; vertical-align: top;&quot;&gt;new String[]{&quot;A&quot;,&quot;B&quot;,&quot;C&quot;};&lt;br /&gt;
&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #b45f06;&quot;&gt;selection 與 &amp;nbsp;selectionArgs 是配對的&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-style: italic;&quot;&gt; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr style=&quot;border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;&lt;th style=&quot;background-color: white; border-bottom-style: none; border-bottom-width: 1px; border-color: initial; border-color: initial; border-left-style: none; border-left-width: 1px; border-right-style: none; border-right-width: 1px; border-style: initial; border-top-style: none; border-top-width: 1px; border-width: initial; font-style: italic; font-weight: normal; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 2px; padding-left: 10px; padding-right: 10px; padding-top: 2px; text-align: left; vertical-align: top;&quot;&gt;groupBy&lt;/th&gt;&lt;td style=&quot;background-color: white; border-bottom-style: none; border-bottom-width: 1px; border-color: initial; border-color: initial; border-left-style: none; border-left-width: 1px; border-right-style: none; border-right-width: 1px; border-style: initial; border-top-style: none; border-top-width: 1px; border-width: initial; font-weight: normal; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 2px; padding-left: 10px; padding-right: 10px; padding-top: 2px; text-align: left; vertical-align: top;&quot;&gt;A filter declaring how to group rows, formatted as an SQL GROUP BY clause (excluding the GROUP BY itself). Passing null will cause the rows to not be grouped.&lt;/td&gt;&lt;/tr&gt;
&lt;tr style=&quot;border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;&lt;th style=&quot;background-color: white; border-bottom-style: none; border-bottom-width: 1px; border-color: initial; border-color: initial; border-left-style: none; border-left-width: 1px; border-right-style: none; border-right-width: 1px; border-style: initial; border-top-style: none; border-top-width: 1px; border-width: initial; font-style: italic; font-weight: normal; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 2px; padding-left: 10px; padding-right: 10px; padding-top: 2px; text-align: left; vertical-align: top;&quot;&gt;having&lt;/th&gt;&lt;td style=&quot;background-color: white; border-bottom-style: none; border-bottom-width: 1px; border-color: initial; border-color: initial; border-left-style: none; border-left-width: 1px; border-right-style: none; border-right-width: 1px; border-style: initial; border-top-style: none; border-top-width: 1px; border-width: initial; font-weight: normal; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 2px; padding-left: 10px; padding-right: 10px; padding-top: 2px; text-align: left; vertical-align: top;&quot;&gt;A filter declare which row groups to include in the cursor, if row grouping is being used, formatted as an SQL HAVING clause (excluding the HAVING itself). Passing null will cause all row groups to be included, and is required when row grouping is not being used.&lt;/td&gt;&lt;/tr&gt;
&lt;tr style=&quot;border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;&lt;th style=&quot;background-color: white; border-bottom-style: none; border-bottom-width: 1px; border-color: initial; border-color: initial; border-left-style: none; border-left-width: 1px; border-right-style: none; border-right-width: 1px; border-style: initial; border-top-style: none; border-top-width: 1px; border-width: initial; font-style: italic; font-weight: normal; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 2px; padding-left: 10px; padding-right: 10px; padding-top: 2px; text-align: left; vertical-align: top;&quot;&gt;orderBy&lt;/th&gt;&lt;td style=&quot;background-color: white; border-bottom-style: none; border-bottom-width: 1px; border-color: initial; border-color: initial; border-left-style: none; border-left-width: 1px; border-right-style: none; border-right-width: 1px; border-style: initial; border-top-style: none; border-top-width: 1px; border-width: initial; font-weight: normal; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 2px; padding-left: 10px; padding-right: 10px; padding-top: 2px; text-align: left; vertical-align: top;&quot;&gt;How to order the rows, formatted as an SQL ORDER BY clause (excluding the ORDER BY itself). Passing null will use the default sort order, which may be unordered.&lt;/td&gt;&lt;/tr&gt;
&lt;tr style=&quot;border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;&lt;th style=&quot;background-color: white; border-bottom-style: none; border-bottom-width: 1px; border-color: initial; border-color: initial; border-left-style: none; border-left-width: 1px; border-right-style: none; border-right-width: 1px; border-style: initial; border-top-style: none; border-top-width: 1px; border-width: initial; font-style: italic; font-weight: normal; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 2px; padding-left: 10px; padding-right: 10px; padding-top: 2px; text-align: left; vertical-align: top;&quot;&gt;limit&lt;/th&gt;&lt;td style=&quot;background-color: white; border-bottom-style: none; border-bottom-width: 1px; border-color: initial; border-color: initial; border-left-style: none; border-left-width: 1px; border-right-style: none; border-right-width: 1px; border-style: initial; border-top-style: none; border-top-width: 1px; border-width: initial; font-weight: normal; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 2px; padding-left: 10px; padding-right: 10px; padding-top: 2px; text-align: left; vertical-align: top;&quot;&gt;Limits the number of rows returned by the query, formatted as LIMIT clause. Passing null denotes no LIMIT clause.&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;&lt;div class=&quot;jd-tagdata&quot; style=&quot;border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; margin-bottom: 0.5em; margin-left: 1em; margin-right: 1em; margin-top: 0.5em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;&lt;h5 class=&quot;jd-tagtitle&quot; style=&quot;border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #3a3a3a; font-size: 1em; margin-bottom: 0.65em; margin-left: 0px; margin-right: 0px; margin-top: 1em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;Returns&lt;/h5&gt;&lt;ul class=&quot;nolist&quot; style=&quot;border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; line-height: 1.3em; list-style-image: initial; list-style-position: initial; list-style-type: none; margin-bottom: 1em; margin-left: 1em; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;&lt;li style=&quot;border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; line-height: 1.3em; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 2px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;A&amp;nbsp;&lt;code style=&quot;color: #007000; font-family: monospace; line-height: 1em;&quot;&gt;&lt;a href=&quot;http://developer.android.com/reference/android/database/Cursor.html&quot; style=&quot;color: #006699;&quot;&gt;Cursor&lt;/a&gt;&lt;/code&gt;&amp;nbsp;object, which is positioned before the first entry. Note that&amp;nbsp;&lt;code style=&quot;color: #007000; font-family: monospace; line-height: 1em;&quot;&gt;&lt;a href=&quot;http://developer.android.com/reference/android/database/Cursor.html&quot; style=&quot;color: #006699;&quot;&gt;Cursor&lt;/a&gt;&lt;/code&gt;s are not synchronized, see the documentation for more details.&lt;/li&gt;
&lt;li style=&quot;border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; line-height: 1.3em; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 2px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;&lt;br /&gt;
&lt;/li&gt;
&lt;/ul&gt;&lt;/div&gt;&lt;/div&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #222222; font-family: Georgia, Utopia, &#39;Palatino Linotype&#39;, Palatino, serif;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: 15px; line-height: 21px;&quot;&gt;一般QUERY&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
SQLiteDatabase db = SQLiteOpenHelper.getReadableDatabase();&lt;br /&gt;
Cursor cursor = db.query(TABLE_NAME, new String[] { &quot;COLUMN01&quot;,&quot;COLUMN02&quot; },&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;    &lt;/span&gt;&quot;cCarBocePartsIdn LIKE ?&quot;, new String[] { key+&quot;%&quot; }, null, null, null);</content><link rel='replies' type='application/atom+xml' href='http://java2tw.blogspot.com/feeds/5607858876376444978/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/5396871486277763708/5607858876376444978' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5396871486277763708/posts/default/5607858876376444978'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5396871486277763708/posts/default/5607858876376444978'/><link rel='alternate' type='text/html' href='http://java2tw.blogspot.com/2011/08/sqlite-query-in-android-application.html' title='SQLite query in android application'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/07597836455479751847</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5396871486277763708.post-2545605387823087239</id><published>2011-07-13T01:50:00.000-07:00</published><updated>2011-07-13T01:50:13.501-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Android"/><title type='text'>Activity &amp; Service 生命週期表</title><content type='html'>&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;/div&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiPHps07dDxSEreBFAwmGwEdFqx90EH5JCYD0xF5t7ENx4hzhPCoRYCGDZOkgg98_rmWij0jY2AJd0ydwSZPtSz7hgX91OBxKPazMQfinDuEv2gy-p-4TKTNigmeGs9F6HIrjhhN3hWEQRI/s1600/service_lifecycle.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;320&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiPHps07dDxSEreBFAwmGwEdFqx90EH5JCYD0xF5t7ENx4hzhPCoRYCGDZOkgg98_rmWij0jY2AJd0ydwSZPtSz7hgX91OBxKPazMQfinDuEv2gy-p-4TKTNigmeGs9F6HIrjhhN3hWEQRI/s320/service_lifecycle.png&quot; width=&quot;265&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgtO34ZrDNn6JKUORiFEAi3uYgXPC5fZtbeY-mpI-RLN1rPl4GgMCuqVuIdvauhACcvyXh89dW-A-3_Ec4YQCg9BTg1eEcLsI_UsqwDrRa8CBXua5qi9MeBPrP6_M4mo0YXvdadaM7dDfy3/s1600/activity_lifecycle.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;320&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgtO34ZrDNn6JKUORiFEAi3uYgXPC5fZtbeY-mpI-RLN1rPl4GgMCuqVuIdvauhACcvyXh89dW-A-3_Ec4YQCg9BTg1eEcLsI_UsqwDrRa8CBXua5qi9MeBPrP6_M4mo0YXvdadaM7dDfy3/s320/activity_lifecycle.png&quot; width=&quot;245&quot; /&gt;&lt;/a&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://java2tw.blogspot.com/feeds/2545605387823087239/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/5396871486277763708/2545605387823087239' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5396871486277763708/posts/default/2545605387823087239'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5396871486277763708/posts/default/2545605387823087239'/><link rel='alternate' type='text/html' href='http://java2tw.blogspot.com/2011/07/activity-service.html' title='Activity &amp; Service 生命週期表'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/07597836455479751847</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiPHps07dDxSEreBFAwmGwEdFqx90EH5JCYD0xF5t7ENx4hzhPCoRYCGDZOkgg98_rmWij0jY2AJd0ydwSZPtSz7hgX91OBxKPazMQfinDuEv2gy-p-4TKTNigmeGs9F6HIrjhhN3hWEQRI/s72-c/service_lifecycle.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5396871486277763708.post-2259233285442705471</id><published>2011-06-25T01:46:00.001-07:00</published><updated>2011-06-25T01:46:12.806-07:00</updated><title type='text'>慢跑的新鞋子</title><content type='html'>&lt;div&gt;&lt;p&gt;&amp;#32893;&amp;#35498;adidas CLIMA COOL &amp;#36889;&amp;#31995;&amp;#21015;&amp;#30340;&amp;#38795;&amp;#36996;&amp;#28415;&amp;#19981;&amp;#37679;&amp;#31359;&amp;#30340;.&lt;/p&gt;
&lt;br/&gt;&lt;img src=&#39;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjqYzCI6Ic5tMjZoSy_rb4o3OqdDE13Us6AAqmsCb7fC3V3FMwJdf6MPw-c0trrsNMETzeREDr1RURF2AkPtCwmnQvIUQUcvaptdyQZj0IcVngq-4RLrP9oICr6qt4a7CvifCeDH7DidBRt/&#39; /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://java2tw.blogspot.com/feeds/2259233285442705471/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/5396871486277763708/2259233285442705471' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5396871486277763708/posts/default/2259233285442705471'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5396871486277763708/posts/default/2259233285442705471'/><link rel='alternate' type='text/html' href='http://java2tw.blogspot.com/2011/06/blog-post_25.html' title='慢跑的新鞋子'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/07597836455479751847</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjqYzCI6Ic5tMjZoSy_rb4o3OqdDE13Us6AAqmsCb7fC3V3FMwJdf6MPw-c0trrsNMETzeREDr1RURF2AkPtCwmnQvIUQUcvaptdyQZj0IcVngq-4RLrP9oICr6qt4a7CvifCeDH7DidBRt/s72-c" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5396871486277763708.post-7999605209568049004</id><published>2011-06-04T20:14:00.001-07:00</published><updated>2011-06-04T20:14:39.646-07:00</updated><title type='text'>停車位</title><content type='html'>&lt;div&gt;&lt;p&gt;&amp;#25105;&amp;#23478;&amp;#26049;&amp;#37002;&amp;#30340;&amp;#20572;&amp;#36554;&amp;#20301;&amp;#38263;&amp;#39321;&amp;#33735;&amp;#20102;&lt;/p&gt;
&lt;br/&gt;&lt;img src=&#39;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhLuWJQIvLNl7baYkQxFGqCMlofLVDCwtw2Ci0Uz1JsOpuZnj9WSGL9rUHb58lvr46ujcozA_Z6xs-d2t_X41b50isVyipfM2DZNjwVtEK4JV_LKpmiLwaQ8q9XzIqEwU2CoIi4Bfb86HIb/&#39; /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://java2tw.blogspot.com/feeds/7999605209568049004/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/5396871486277763708/7999605209568049004' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5396871486277763708/posts/default/7999605209568049004'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5396871486277763708/posts/default/7999605209568049004'/><link rel='alternate' type='text/html' href='http://java2tw.blogspot.com/2011/06/blog-post.html' title='停車位'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/07597836455479751847</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhLuWJQIvLNl7baYkQxFGqCMlofLVDCwtw2Ci0Uz1JsOpuZnj9WSGL9rUHb58lvr46ujcozA_Z6xs-d2t_X41b50isVyipfM2DZNjwVtEK4JV_LKpmiLwaQ8q9XzIqEwU2CoIi4Bfb86HIb/s72-c" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5396871486277763708.post-7445863827052179247</id><published>2011-05-22T21:34:00.000-07:00</published><updated>2011-05-22T21:34:24.801-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Android"/><title type='text'>狗熊迷路了...</title><content type='html'>我的HTC Hero狗熊機，送修回來後用個幾天突然間發現......狗熊迷路了.......&lt;br /&gt;
GPS完全收不到衛星訊號，原來那幾天都是靠基地台定位的.....&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
所以又送神腦維修了去找回路感了....</content><link rel='replies' type='application/atom+xml' href='http://java2tw.blogspot.com/feeds/7445863827052179247/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/5396871486277763708/7445863827052179247' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5396871486277763708/posts/default/7445863827052179247'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5396871486277763708/posts/default/7445863827052179247'/><link rel='alternate' type='text/html' href='http://java2tw.blogspot.com/2011/05/blog-post_22.html' title='狗熊迷路了...'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/07597836455479751847</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5396871486277763708.post-7175160860273115834</id><published>2011-05-10T23:21:00.000-07:00</published><updated>2011-05-10T23:21:23.367-07:00</updated><title type='text'>我的英雄變狗熊了</title><content type='html'>最近幫我的手機刷了許多的不同版本的ROM想要讓老英雄速度快一點&lt;br /&gt;
結果是有快一點....不過刷上癮之後就開始亂搞，砍掉一堆系統的APK看會不會快一點...&lt;br /&gt;
&lt;br /&gt;
昨天又要重刷的時候，我也不知道幹了什麼蠢事......&lt;br /&gt;
從此HERO就安眠了......</content><link rel='replies' type='application/atom+xml' href='http://java2tw.blogspot.com/feeds/7175160860273115834/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/5396871486277763708/7175160860273115834' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5396871486277763708/posts/default/7175160860273115834'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5396871486277763708/posts/default/7175160860273115834'/><link rel='alternate' type='text/html' href='http://java2tw.blogspot.com/2011/05/blog-post.html' title='我的英雄變狗熊了'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/07597836455479751847</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5396871486277763708.post-6813602700337786247</id><published>2011-02-13T18:44:00.000-08:00</published><updated>2011-02-13T18:44:53.741-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="eclipse"/><title type='text'>變更Eclipse workspace的路徑</title><content type='html'>設定檔的路徑：&lt;br /&gt;
/eclipse/configuration/.settings/org.eclipse.ui.ide.prefs&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
#Thu Jun 17 15:13:08 CST 2010&lt;br /&gt;
RECENT_WORKSPACES_PROTOCOL=3&lt;br /&gt;
MAX_RECENT_WORKSPACES=5&lt;br /&gt;
SHOW_WORKSPACE_SELECTION_DIALOG=false&lt;br /&gt;
eclipse.preferences.version=1&lt;br /&gt;
RECENT_WORKSPACES=E:\\My Dropbox\\Android\\Developer\\workspace</content><link rel='replies' type='application/atom+xml' href='http://java2tw.blogspot.com/feeds/6813602700337786247/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/5396871486277763708/6813602700337786247' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5396871486277763708/posts/default/6813602700337786247'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5396871486277763708/posts/default/6813602700337786247'/><link rel='alternate' type='text/html' href='http://java2tw.blogspot.com/2011/02/eclipse-workspace.html' title='變更Eclipse workspace的路徑'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/07597836455479751847</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5396871486277763708.post-8700740778844616161</id><published>2010-12-16T18:08:00.000-08:00</published><updated>2010-12-24T02:10:42.884-08:00</updated><title type='text'>SQL Console</title><content type='html'>SQL Console可以從手機直接連接至資料庫,只要登入的權限足夠即可以執行相關的SQL指令並取得目前資料庫所有的TABLE與VIEW,且及時的從螢幕上得到結果,且可以匯出該查詢的結果至SD卡.&lt;br /&gt;
支援: MS SQL Server , MySQL , PostgreSQL.&lt;br /&gt;
之後將會持續更新資料庫種類&lt;br /&gt;
&lt;br /&gt;
2010/12/24&lt;br /&gt;
1.新增MSSQL的Procedure列表,並可即時查看原始碼或是匯出至SD卡 /SD/AnySQL Console/MSSQL/Procedure名稱.txt&lt;br /&gt;
2.介面修正</content><link rel='replies' type='application/atom+xml' href='http://java2tw.blogspot.com/feeds/8700740778844616161/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/5396871486277763708/8700740778844616161' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5396871486277763708/posts/default/8700740778844616161'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5396871486277763708/posts/default/8700740778844616161'/><link rel='alternate' type='text/html' href='http://java2tw.blogspot.com/2010/12/sql-console.html' title='SQL Console'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/07597836455479751847</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5396871486277763708.post-2529934201688625314</id><published>2010-09-13T22:57:00.000-07:00</published><updated>2010-09-13T22:57:42.169-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Android"/><title type='text'>哪裡有車位</title><content type='html'>功能說明：&lt;br /&gt;
&lt;br /&gt;
可以即時讀取&quot;臺北市停車管理工程處&quot;網頁所提供的臺北市公有停車最新的剩餘車位。&lt;br /&gt;
&lt;br /&gt;
點選畫面上的圖示可以得知收費相關資訊,地址,電話 。&lt;br /&gt;
&lt;br /&gt;
&quot;＊臺北市停車管理工程處的網頁速度有點慢所以請見諒!!&quot;。&lt;br /&gt;
&lt;br /&gt;
iPhone 的台北愛泊車要收錢,我們Android的通通免費啦!!!&lt;br /&gt;
&lt;br /&gt;
已測試環境:&lt;br /&gt;
1.HTC Hero 2.1&lt;br /&gt;
2.Motorola Milestone 2.1</content><link rel='replies' type='application/atom+xml' href='http://java2tw.blogspot.com/feeds/2529934201688625314/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/5396871486277763708/2529934201688625314' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5396871486277763708/posts/default/2529934201688625314'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5396871486277763708/posts/default/2529934201688625314'/><link rel='alternate' type='text/html' href='http://java2tw.blogspot.com/2010/09/blog-post.html' title='哪裡有車位'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/07597836455479751847</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5396871486277763708.post-1396138464976688378</id><published>2010-08-19T03:27:00.000-07:00</published><updated>2010-08-19T03:27:27.860-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Android"/><title type='text'>Android 多國語系開發方式</title><content type='html'>Android 多國語系開發方式&lt;br /&gt;
1. 複製 res/values 的資料改名成對應的語系資料夾&lt;br /&gt;
2. 將文字內容改成該語系即可&lt;br /&gt;
&lt;br /&gt;
支援的語系目錄檔名:&lt;br /&gt;
繁體中文: values-zh-rTW&lt;br /&gt;
簡體中文: values-zh-rCN&lt;br /&gt;
日文: values-ja&lt;br /&gt;
英文: values-en&lt;br /&gt;
美式英文: values-en-rUS&lt;br /&gt;
英式英文: values-en-rUK</content><link rel='replies' type='application/atom+xml' href='http://java2tw.blogspot.com/feeds/1396138464976688378/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/5396871486277763708/1396138464976688378' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5396871486277763708/posts/default/1396138464976688378'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5396871486277763708/posts/default/1396138464976688378'/><link rel='alternate' type='text/html' href='http://java2tw.blogspot.com/2010/08/android.html' title='Android 多國語系開發方式'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/07597836455479751847</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5396871486277763708.post-2665805129082816257</id><published>2010-08-18T03:42:00.000-07:00</published><updated>2010-08-18T03:42:06.606-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Android"/><title type='text'>燃燒吧,脂肪!!!</title><content type='html'>燃燒吧,脂肪!是一套跑步專用卡路里計算工具，它能計算每一次跑步所減少的卡路里與距離，並且將累加每次運動所減少的卡路里與距離,所以..大家一起來燃燒脂肪吧!!＊作者使用這個軟體之後短短一個半月從86公斤掉到了76公斤，由此證明這個軟體有效，絕對不會像地下電台賣減肥藥一樣誇大不實!!!!</content><link rel='replies' type='application/atom+xml' href='http://java2tw.blogspot.com/feeds/2665805129082816257/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/5396871486277763708/2665805129082816257' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5396871486277763708/posts/default/2665805129082816257'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5396871486277763708/posts/default/2665805129082816257'/><link rel='alternate' type='text/html' href='http://java2tw.blogspot.com/2010/08/blog-post.html' title='燃燒吧,脂肪!!!'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/07597836455479751847</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5396871486277763708.post-4840370006559507638</id><published>2010-05-01T07:31:00.000-07:00</published><updated>2010-05-01T07:33:29.037-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Android"/><title type='text'>打電話</title><content type='html'>&amp;nbsp;button.setOnClickListener(new Button.OnClickListener(){&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp;@Override&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp;public void onClick(View v) {&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp;Intent intent = new Intent(&quot;android.intent.action.CALL&quot;&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;,Uri.parse(&quot;tel:&quot;+editText.getText().toString()));&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp;startActivity(intent);&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp;}&lt;br /&gt;
});&lt;br /&gt;
&lt;br /&gt;
記得加這一條&lt;br /&gt;
&lt;br /&gt;
uses-permission android:name=&quot;android.permission.CALL_PHONE&quot;</content><link rel='replies' type='application/atom+xml' href='http://java2tw.blogspot.com/feeds/4840370006559507638/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/5396871486277763708/4840370006559507638' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5396871486277763708/posts/default/4840370006559507638'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5396871486277763708/posts/default/4840370006559507638'/><link rel='alternate' type='text/html' href='http://java2tw.blogspot.com/2010/05/blog-post.html' title='打電話'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/07597836455479751847</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5396871486277763708.post-6106834000193743128</id><published>2010-04-29T23:32:00.000-07:00</published><updated>2010-04-29T23:32:58.477-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Android"/><title type='text'>AlertDialog 使用</title><content type='html'>&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;public class main extends Activity {&lt;/span&gt;&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;private Button AlertButton;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;white-space: pre;&quot;&gt;    public void onCreate(Bundle savedInstanceState) {&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;&lt;/span&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;super.onCreate(savedInstanceState);&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot;&gt;&lt;/span&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;        setContentView(R.layout.main);&lt;/span&gt;&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;AlertButton = (Button) findViewById(R.id.AlertButton);&lt;/span&gt;&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &lt;br /&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;AlertButton.setOnClickListener(new Button.OnClickListener() {&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;@Override&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;public void onClick(View arg0) {&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;new AlertDialog.Builder(main.this).setTitle(&quot;AlertTest&quot;)&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;.setMessage(&quot;Alert Body&quot;).setPositiveButton(&quot;Exit&quot;&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;,new DialogInterface.OnClickListener() {&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;@Override&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;public void onClick(DialogInterface dialog,int which) {&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;//要做的事情.....&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}).show();&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;});&lt;br /&gt;
}</content><link rel='replies' type='application/atom+xml' href='http://java2tw.blogspot.com/feeds/6106834000193743128/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/5396871486277763708/6106834000193743128' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5396871486277763708/posts/default/6106834000193743128'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5396871486277763708/posts/default/6106834000193743128'/><link rel='alternate' type='text/html' href='http://java2tw.blogspot.com/2010/04/alertdialog.html' title='AlertDialog 使用'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/07597836455479751847</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5396871486277763708.post-7469136246278798054</id><published>2010-04-29T08:03:00.000-07:00</published><updated>2010-04-29T23:25:08.319-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Android"/><title type='text'>不同的Activity之間資料的傳遞</title><content type='html'>//發送端&lt;br /&gt;
&lt;br /&gt;
import andoird.os.Bundle;&lt;br /&gt;
....&lt;br /&gt;
..&lt;br /&gt;
.&lt;br /&gt;
public class sendData extends Activity{&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp;public onCreate(Bundle states) {&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;super.onCreate(states);&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;setContentView(R.layout.main);&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;......&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;....&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;..&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Intent intent = new Intent();&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;intent.setClass(sendData.this,&amp;nbsp;receiveData.class);&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Bundle bundle = new Bundle();&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;bundle.putString(&quot;Jason&quot;,&quot;Jason&quot;);&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;bundle.putDouble(&quot;double&quot;,9.99d);&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;intent.putExtras(bundle);&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;startActivity(intent);&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp;}&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
//接收端&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: 13px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: medium;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: 13px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: medium;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;import andoird.os.Bundle;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;...&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;..&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;.&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;public class&amp;nbsp;receiveData&amp;nbsp;extends Activity{&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;public onCreate(Bundle states) {&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;super.onCreate(states);&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;setContentView(R.layout.main);&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;......&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;....&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;..&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Bundle bundle = this.getIntent().getExtras();&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;String MyName = bundle.getString(&quot;Jason&quot;);&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;double width = bundle.getDouble(&quot;double&quot;);&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;}&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;}&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://java2tw.blogspot.com/feeds/7469136246278798054/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/5396871486277763708/7469136246278798054' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5396871486277763708/posts/default/7469136246278798054'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5396871486277763708/posts/default/7469136246278798054'/><link rel='alternate' type='text/html' href='http://java2tw.blogspot.com/2010/04/activity.html' title='不同的Activity之間資料的傳遞'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/07597836455479751847</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5396871486277763708.post-3921637399116452353</id><published>2010-01-06T19:42:00.000-08:00</published><updated>2010-01-06T20:05:38.698-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="中國大陸"/><category scheme="http://www.blogger.com/atom/ns#" term="公民號碼"/><category scheme="http://www.blogger.com/atom/ns#" term="其他"/><category scheme="http://www.blogger.com/atom/ns#" term="身份證字號"/><title type='text'>大陸公民身份號碼驗證規則</title><content type='html'>大陸的身份證為18位，舊的身份證是15位。&lt;br /&gt;
公民身份號碼是特徵組合碼，由十七位數字和一位數字檢核碼組成。&lt;br /&gt;
&lt;br /&gt;
從左至右依次為：&lt;br /&gt;
&amp;nbsp;&amp;nbsp; 1.六位數字地址碼。&lt;br /&gt;
&amp;nbsp;&amp;nbsp; 2.八位數字出生日期碼。&lt;br /&gt;
&amp;nbsp;&amp;nbsp; 3.三位數字流水號。&lt;br /&gt;
&amp;nbsp;&amp;nbsp; 4.一位數字檢核碼。&lt;br /&gt;
&lt;br /&gt;
地址碼：&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #990000;&quot;&gt;第01位到第06位&lt;span style=&quot;color: black;&quot;&gt;表示編碼對象戶籍所在縣&lt;span style=&quot;color: #cc0000;&quot;&gt;應該是指出生地&lt;/span&gt;的行政區代碼。&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&amp;nbsp;&amp;nbsp; 這裡可以查到所有的行政區編碼&lt;a href=&quot;http://www.stats.gov.cn/tjbz/index.htm&quot;&gt;中華人民共和國國家統計局&lt;/a&gt;。&lt;br /&gt;
&lt;br /&gt;
生日碼：&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: #990000;&quot;&gt;第07位到第14位&lt;/span&gt;表示編碼對像出生的年、月、日，當然是用西元年四碼&lt;br /&gt;
範例：1978年02月01日就用19780201。&lt;br /&gt;
&lt;br /&gt;
流水號：&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #990000;&quot;&gt;第15位到第17位&lt;span style=&quot;color: black;&quot;&gt;為同一地址碼內，對同一天出生的人員編定的流水號。&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&amp;nbsp;&amp;nbsp; 第17位奇數分給男性，偶數分給女性。跟台灣的身分證字號類似。&lt;br /&gt;
&amp;nbsp;&amp;nbsp; 對岸大陸目前的出生率有這麼低嗎??&lt;br /&gt;
&lt;br /&gt;
校驗碼：&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;&amp;nbsp;&amp;nbsp; 第18位&lt;/span&gt;是根據前面十七位數字，計算出來的檢核碼。&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp; 第18位數字的計算方法為：&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp;1.將前面的身份證號碼17位數分別乘上一組係數。&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 係數：&lt;span style=&quot;color: #38761d;&quot;&gt;&lt;b&gt;7910584216379105842&lt;span style=&quot;color: black; font-weight: normal;&quot;&gt;。&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp;2.將這17位數字和系數相乘的結果加總。&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp;3.將第二步驟的機總數字除以11取餘數。&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp;4.餘數級代表核驗碼的Index &lt;span style=&quot;color: #b45f06;&quot;&gt;&lt;b&gt;核驗碼10,X,9,8,7,6,5,4,3,2&lt;/b&gt;&lt;/span&gt;。&lt;br /&gt;
&lt;br /&gt;
程式碼：&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp;public static boolean isPRCId(String cId) {&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;boolean isPRCId = false;&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;//改為大寫&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;cId = cId.toUpperCase();&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;//長度檢查&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;if (cId.trim().length() != 18) {&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;return false;&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;//數字檢查&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;//前17碼必須為數字&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;for (int i = 0; i &amp;lt; cId.length() - 1; i++) {&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;char c = cId.charAt(i);&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;if (c &amp;lt; &#39;0&#39; || c &amp;gt; &#39;9&#39;) {&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;return false;&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;//生日碼檢核&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;if (isACDay(cId.substring(6, 14)) == false) {&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;return false;&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;//計算係數&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;int[] key = {7, 9, 10, 5, 8, 4, 2, 1, 6, 3, 7, 9, 10, 5, 8, 4, 2};&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;char[] sparate = cId.substring(0, 17).toCharArray();&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;int[] value = new int[17];&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;for (int i = 0; i &amp;lt; 17; i++) {&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;value[i] = Integer.parseInt(String.valueOf(sparate[i]));&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;int nValue = 0;&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;for (int i = 0; i &amp;lt; 17; i++) {&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;nValue = nValue + (key[i] * value[i]);&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;int cIdLastValueIndex = 0;&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;cIdLastValueIndex = nValue % 11;&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;String[] cIdLastValue = {&quot;1&quot;, &quot;0&quot;, &quot;X&quot;, &quot;9&quot;, &quot;8&quot;, &quot;7&quot;, &quot;6&quot;, &quot;5&quot;, &quot;4&quot;, &quot;3&quot;, &quot;2&quot;};&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;if (cId.substring(17).equals(cIdLastValue[cIdLastValueIndex])) {&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;isPRCId = true;&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;} else {&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;isPRCId = false;&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;return isPRCId;&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp;}</content><link rel='replies' type='application/atom+xml' href='http://java2tw.blogspot.com/feeds/3921637399116452353/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/5396871486277763708/3921637399116452353' title='1 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5396871486277763708/posts/default/3921637399116452353'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5396871486277763708/posts/default/3921637399116452353'/><link rel='alternate' type='text/html' href='http://java2tw.blogspot.com/2010/01/blog-post.html' title='大陸公民身份號碼驗證規則'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/07597836455479751847</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5396871486277763708.post-7752942570756789701</id><published>2009-12-23T22:05:00.000-08:00</published><updated>2010-01-21T17:07:36.962-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Android"/><category scheme="http://www.blogger.com/atom/ns#" term="無線AP"/><title type='text'>HTC Hero變成無線AP(免刷機)</title><content type='html'>先下載兩個檔案&lt;br /&gt;
1.Instant Root &amp;nbsp;&lt;a href=&quot;http://neilandtheresa.co.uk/Android/InstantRoot.apk&quot;&gt;Instant Root 下載點&lt;/a&gt;&lt;br /&gt;
2.Wireless Tether&amp;nbsp;&lt;a href=&quot;http://android-wifi-tether.googlecode.com/files/wireless_tether_1_70-pre1_htc.apk&quot;&gt;wireless tether 下載點&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
步驟一 : 先裝Instant Root&lt;br /&gt;
步驟二 : 再裝Wireless Tether&lt;br /&gt;
&lt;br /&gt;
然後就開啟Wireless Tether來用啦.......&lt;br /&gt;
國外網站有說安裝了Instant Root就不要再安裝官方的更新檔,反正到時候hero有釋放Android 2.1時,再把Instant Root移掉就好了!!!!&lt;br /&gt;
&lt;br /&gt;
Instant 移除的方法&lt;br /&gt;
&lt;br /&gt;
You can undo the changes made by this app by installing and opening a terminal emulator (there are several on the market) and typing the following:&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: #cc0000;&quot;&gt;su&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #cc0000;&quot;&gt;mount -o remount,rw /dev/block/mtdblock3 /system&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #cc0000;&quot;&gt;rm /system/bin/su&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #cc0000;&quot;&gt;rm /system/xbin/su&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #cc0000;&quot;&gt;rmdir /system/xbin&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #cc0000;&quot;&gt;mount -o remount,ro /dev/block/mtdblock3 /system&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #cc0000;&quot;&gt;exit&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #cc0000;&quot;&gt;exit&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #cc0000;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #cc0000;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #38761d;&quot;&gt;後記:&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #38761d;&quot;&gt;用了大半個月之後突然間&lt;span style=&quot;color: black;&quot;&gt;Wireless Tether&lt;/span&gt;開不起來了......慘.......&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #38761d;&quot;&gt;所以我最後還是刷機了.....&lt;/span&gt;</content><link rel='replies' type='application/atom+xml' href='http://java2tw.blogspot.com/feeds/7752942570756789701/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/5396871486277763708/7752942570756789701' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5396871486277763708/posts/default/7752942570756789701'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5396871486277763708/posts/default/7752942570756789701'/><link rel='alternate' type='text/html' href='http://java2tw.blogspot.com/2009/12/htc-heroap.html' title='HTC Hero變成無線AP(免刷機)'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/07597836455479751847</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5396871486277763708.post-3926637548307905779</id><published>2009-09-06T23:59:00.000-07:00</published><updated>2009-09-07T00:41:52.740-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Android"/><title type='text'>動態Spinner來變更Image</title><content type='html'>&lt;div&gt;所需功能&lt;/div&gt;&lt;div&gt;&lt;ol&gt;&lt;li&gt;取得res/drawable資料夾下的所有檔案名稱&lt;/li&gt;
&lt;li&gt;由檔案名稱取得ResourceID&lt;/li&gt;
&lt;li&gt;點選並顯示圖檔&lt;/li&gt;
&lt;/ol&gt;&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;package java2.tw;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;import java.lang.reflect.Field;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;import java.util.ArrayList;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;import java.util.List;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;import android.app.Activity;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;import android.os.Bundle;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;import android.view.View;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;import android.widget.AdapterView;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;import android.widget.ArrayAdapter;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;import android.widget.ImageView;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;import android.widget.Spinner;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;import android.widget.Toast;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;import android.widget.AdapterView.OnItemSelectedListener;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;public class mySpinner extends Activity {&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;private Spinner mySpinner;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;private ImageView myImageView;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;private ArrayAdapter&lt;string&gt; myArrayAdapter;&lt;/string&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;static String[] myResource;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;@Override&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;public void onCreate(Bundle savedInstanceState) {&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;super.onCreate(savedInstanceState);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;setContentView(R.layout.main);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;mySpinner = (Spinner) findViewById(R.id.mySpinner);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;myImageView = (ImageView) findViewById(R.id.myImageView);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;getResourceName();&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;myArrayAdapter = new ArrayAdapter&lt;string&gt;(this,&lt;/string&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;android.R.layout.simple_spinner_item, myResource);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;mySpinner.setAdapter(myArrayAdapter);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;mySpinner.setOnItemSelectedListener(new OnItemSelectedListener() {&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt;@Override&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt;public void onItemSelected(AdapterView arg0, View arg1,&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;    &lt;/span&gt;int arg2, long arg3) {&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;    &lt;/span&gt;myImageView.setImageResource(getResourceIDByName(&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;     &lt;/span&gt;R.drawable.class, myResource[arg2]));&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt;}&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt;@Override&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt;public void onNothingSelected(AdapterView arg0) {&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt;}&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;});&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;}&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;private void getResourceName() {&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;String[] resource;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;List&lt;string&gt; list = new ArrayList&lt;string&gt;();&lt;/string&gt;&lt;/string&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;for (Field f : R.drawable.class.getDeclaredFields()) {&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt;try {&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;    &lt;/span&gt;list.add(f.getName());&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt;} catch (Exception e) {&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;    &lt;/span&gt;Toast.makeText(this, &quot;圖片目錄載入失敗&quot;, Toast.LENGTH_SHORT).show();&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt;}&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;}&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;resource = new String[list.size()];&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;&lt;/span&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;for (int i = 0; i &amp;lt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt;resource[i] = list.get(i);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;}&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;&lt;/span&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;myResource = resource;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;}&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;private int getResourceIDByName(Class aClass, String resourceName) {&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;&lt;/span&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;Field[] drawableFields = aClass.getFields();&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;int resourceID = 0;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;for (Field f : drawableFields) {&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt;if (resourceName.equals(f.getName())) {&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;    &lt;/span&gt;try {&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;     &lt;/span&gt;resourceID = f.getInt(null);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;    &lt;/span&gt;} catch (IllegalArgumentException e) {&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;     &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;e.printStackTrace();&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;    &lt;/span&gt;} catch (IllegalAccessException e) {&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;     &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;e.printStackTrace();&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;    &lt;/span&gt;}&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt;}&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;}&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;return resourceID;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;}&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;}&lt;/span&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://java2tw.blogspot.com/feeds/3926637548307905779/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/5396871486277763708/3926637548307905779' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5396871486277763708/posts/default/3926637548307905779'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5396871486277763708/posts/default/3926637548307905779'/><link rel='alternate' type='text/html' href='http://java2tw.blogspot.com/2009/09/android_06.html' title='動態Spinner來變更Image'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/07597836455479751847</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5396871486277763708.post-2546273978605291405</id><published>2009-09-06T20:02:00.000-07:00</published><updated>2009-09-07T00:04:55.810-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Android"/><title type='text'>在Android程式中取得圖檔方法</title><content type='html'>&lt;b&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;color:#FF0000;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-size:medium;&quot;&gt;單一圖檔:&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;color:#FF0000;&quot;&gt;&lt;b&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-size:medium;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;color:#FF0000;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;color: rgb(0, 102, 0);  line-height: 21px; font-family:verdana;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-size:medium;&quot;&gt;方法一:&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;color:#FF0000;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;color: rgb(0, 102, 0);  line-height: 21px; font-family:verdana;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(0, 0, 0); font-weight: normal; &quot;&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-size:medium;&quot;&gt;Field f= (Field)R.drawable.class.&lt;span class=&quot;Apple-style-span&quot;  style=&quot;color:#CC0000;&quot;&gt;getDeclaredField&lt;/span&gt;(&quot;dsc00002&quot;);&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;color:#FF0000;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;color: rgb(0, 102, 0);  line-height: 21px; font-family:verdana;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(0, 0, 0); font-weight: normal; &quot;&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-size:medium;&quot;&gt;int imageID =f.getInt(R.drawable.class);&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot; line-height: 21px; font-family:verdana;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-weight: normal; &quot;&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-size:medium;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;color:#666666;&quot;&gt;ImageView imageView= new ImageView(this);&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot; line-height: 21px; font-family:verdana;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-weight: normal; &quot;&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-size:medium;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;color:#666666;&quot;&gt;imageView.setImageResource(imageID);&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot;   style=&quot;  line-height: 21px; font-family:verdana;font-size:14px;&quot;&gt;&lt;p style=&quot;padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 1em; margin-right: 0px; margin-bottom: 0.5em; margin-left: 0px; &quot;&gt;&lt;/p&gt;&lt;h4 class=&quot;jd-details-title&quot;&gt;&lt;span class=&quot;normal&quot;&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-size:small;&quot;&gt;public &lt;/span&gt;&lt;a href=&quot;http://www.blogger.com/reference/java/lang/reflect/Field.html&quot;&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-size:small;&quot;&gt;Field&lt;/span&gt;&lt;/a&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-size:small;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;sympad&quot;&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-size:small;&quot;&gt;getDeclaredField&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-size:small;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;normal&quot;&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-size:small;&quot;&gt;(&lt;/span&gt;&lt;a href=&quot;http://www.blogger.com/reference/java/lang/String.html&quot;&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-size:small;&quot;&gt;String&lt;/span&gt;&lt;/a&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-size:small;&quot;&gt; name)&lt;/span&gt;&lt;/span&gt;&lt;/h4&gt;&lt;h4 class=&quot;jd-details-title&quot;&gt;&lt;span class=&quot;normal&quot;&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-size:small;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot; font-weight: normal; font-size:48px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-size:small;&quot;&gt;Returns a &lt;/span&gt;&lt;code class=&quot;Code prettyprint&quot;&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-size:small;&quot;&gt;Field&lt;/span&gt;&lt;/code&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-size:small;&quot;&gt; object for the field  with the specified name which is declared in the class represente by this &lt;/span&gt;&lt;code class=&quot;Code prettyprint&quot;&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-size:small;&quot;&gt;Class&lt;/span&gt;&lt;/code&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-size:small;&quot;&gt;.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/h4&gt;&lt;div class=&quot;jd-details-descr&quot;&gt; &lt;div class=&quot;jd-tagdata&quot;&gt; &lt;h5 class=&quot;jd-tagtitle&quot;&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-size:small;&quot;&gt;Parameters&lt;/span&gt;&lt;/h5&gt; &lt;table class=&quot;jd-tagtable&quot;&gt; &lt;tbody&gt; &lt;tr&gt; &lt;th&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-size:small;&quot;&gt;name  &lt;/span&gt;&lt;/th&gt;&lt;td&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-size:small;&quot;&gt;the name of the requested field.&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt; &lt;div class=&quot;jd-tagdata&quot;&gt; &lt;h5 class=&quot;jd-tagtitle&quot;&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-size:small;&quot;&gt;Returns&lt;/span&gt;&lt;/h5&gt; &lt;ul class=&quot;nolist&quot;&gt; &lt;li&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-size:small;&quot;&gt;the requested field in the class represented by this class.&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;/div&gt;&lt;/div&gt;&lt;p&gt;&lt;/p&gt;&lt;p style=&quot;padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 1em; margin-right: 0px; margin-bottom: 0.5em; margin-left: 0px; &quot;&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;color:#006600;&quot;&gt;&lt;b&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-size:medium;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-family:arial;&quot;&gt;方法二:&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 1em; margin-right: 0px; margin-bottom: 0.5em; margin-left: 0px; &quot;&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;color:#006600;&quot;&gt;&lt;b&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-size:medium;&quot;&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(0, 0, 0); font-weight: normal; &quot;&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-size:medium;&quot;&gt;int imageID =this.getResources().&lt;span class=&quot;Apple-style-span&quot;  style=&quot;color:#CC0000;&quot;&gt;getIdentifier&lt;/span&gt;(this.getPackageName()+&quot;:drawable/dsc00002&quot;, null,null);&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 1em; margin-right: 0px; margin-bottom: 0.5em; margin-left: 0px; &quot;&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-size:medium;&quot;&gt;//int imageID = this.getResources().&lt;span class=&quot;Apple-style-span&quot;  style=&quot;color:#990000;&quot;&gt;getIdentifier&lt;/span&gt;(&quot;dsc00002&quot;, &quot;drawable&quot;, this.getPackageName());&lt;/span&gt;&lt;/p&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-size:medium;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;color:#666666;&quot;&gt;        ImageView imageview = new ImageView(this);&lt;br /&gt;   imageview.setImageResource(imageID);&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;p&gt;&lt;/p&gt;&lt;p style=&quot;padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 1em; margin-right: 0px; margin-bottom: 0.5em; margin-left: 0px; &quot;&gt;&lt;/p&gt;&lt;div class=&quot;jd-details&quot;&gt;&lt;h4 class=&quot;jd-details-title&quot;&gt;&lt;span class=&quot;normal&quot;&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-size:small;&quot;&gt;public int &lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;sympad&quot;&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-size:small;&quot;&gt;getIdentifier&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-size:small;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;normal&quot;&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-size:small;&quot;&gt;(&lt;/span&gt;&lt;a href=&quot;http://www.blogger.com/reference/java/lang/String.html&quot;&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-size:small;&quot;&gt;String&lt;/span&gt;&lt;/a&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-size:small;&quot;&gt; name, &lt;/span&gt;&lt;a href=&quot;http://www.blogger.com/reference/java/lang/String.html&quot;&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-size:small;&quot;&gt;String&lt;/span&gt;&lt;/a&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-size:small;&quot;&gt; defType, &lt;/span&gt;&lt;a href=&quot;http://www.blogger.com/reference/java/lang/String.html&quot;&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-size:small;&quot;&gt;String&lt;/span&gt;&lt;/a&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-size:small;&quot;&gt; defPackage)&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-size:small;&quot;&gt;  &lt;/span&gt;&lt;/h4&gt; &lt;div class=&quot;jd-details-descr&quot;&gt; &lt;div class=&quot;jd-tagdata jd-tagdescr&quot;&gt; &lt;p&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-size:small;&quot;&gt;Return a resource identifier for the given resource name. A fully qualified  resource name is of the form &quot;package:type/entry&quot;. The first two components  (package and type) are optional if defType and defPackage, respectively, are  specified here.  &lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-size:small;&quot;&gt;Note: use of this function is discouraged. It is much more efficient to  retrieve resources by identifier than by name.&lt;/span&gt;&lt;/p&gt;&lt;/div&gt; &lt;div class=&quot;jd-tagdata&quot;&gt; &lt;h5 class=&quot;jd-tagtitle&quot;&gt;&lt;div class=&quot;jd-tagdata&quot;&gt;       &lt;h5 class=&quot;jd-tagtitle&quot;&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-size:small;&quot;&gt;Parameters&lt;/span&gt;&lt;/h5&gt;       &lt;table class=&quot;jd-tagtable&quot;&gt;         &lt;tbody&gt;&lt;tr&gt;           &lt;th&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-size:small;&quot;&gt;name           &lt;/span&gt;&lt;/th&gt;&lt;td&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-size:small;&quot;&gt;The name of the desired resource.&lt;/span&gt;&lt;/td&gt;         &lt;/tr&gt;         &lt;tr&gt;           &lt;th&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-size:small;&quot;&gt;defType           &lt;/span&gt;&lt;/th&gt;&lt;td&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-size:small;&quot;&gt;Optional default resource type to find, if &quot;type/&quot; is                 not included in the name.  Can be null to require an                 explicit type.&lt;/span&gt;&lt;/td&gt;         &lt;/tr&gt;         &lt;tr&gt;           &lt;th&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-size:small;&quot;&gt;defPackage           &lt;/span&gt;&lt;/th&gt;&lt;td&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-size:small;&quot;&gt;Optional default package to find, if &quot;package:&quot; is                    not included in the name.  Can be null to require an                    explicit package.&lt;/span&gt;&lt;/td&gt;         &lt;/tr&gt;       &lt;/tbody&gt;&lt;/table&gt;   &lt;/div&gt;   &lt;div class=&quot;jd-tagdata&quot;&gt;       &lt;h5 class=&quot;jd-tagtitle&quot;&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-size:small;&quot;&gt;Returns&lt;/span&gt;&lt;/h5&gt;       &lt;ul class=&quot;nolist&quot;&gt;&lt;li&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-size:small;&quot;&gt;int The associated resource identifier.  Returns 0 if no such          resource was found.  (0 is not a valid resource ID.) &lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;/div&gt;&lt;/h5&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;p&gt;&lt;/p&gt;&lt;p style=&quot;padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 1em; margin-right: 0px; margin-bottom: 0.5em; margin-left: 0px; &quot;&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot; line-height: normal; color: rgb(255, 0, 0); font-weight: bold; font-family:Georgia;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-size:medium;&quot;&gt;批次圖檔:&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 1em; margin-right: 0px; margin-bottom: 0.5em; margin-left: 0px; &quot;&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-family:Georgia;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;white-space: pre;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-family:Georgia;&quot;&gt;&lt;p style=&quot;padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 1em; margin-right: 0px; margin-bottom: 0.5em; margin-left: 0px; &quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt; &lt;/span&gt;public int[] getImageID() {&lt;/p&gt;&lt;p style=&quot;padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 1em; margin-right: 0px; margin-bottom: 0.5em; margin-left: 0px; &quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;  &lt;/span&gt;int[] output;&lt;/p&gt;&lt;p style=&quot;padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 1em; margin-right: 0px; margin-bottom: 0.5em; margin-left: 0px; &quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;  &lt;/span&gt;List&lt;integer&gt; list = new ArrayList&lt;integer&gt;();&lt;/p&gt;&lt;p style=&quot;padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 1em; margin-right: 0px; margin-bottom: 0.5em; margin-left: 0px; &quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;  &lt;/span&gt;for (Field f : R.drawable.class.getDeclaredFields()) {&lt;/p&gt;&lt;p style=&quot;padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 1em; margin-right: 0px; margin-bottom: 0.5em; margin-left: 0px; &quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;   &lt;/span&gt;try {&lt;/p&gt;&lt;p style=&quot;padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 1em; margin-right: 0px; margin-bottom: 0.5em; margin-left: 0px; &quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;    &lt;/span&gt;Object object = f.get(R.drawable.class);&lt;/p&gt;&lt;p style=&quot;padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 1em; margin-right: 0px; margin-bottom: 0.5em; margin-left: 0px; &quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;    &lt;/span&gt;if (object instanceof Integer) {&lt;/p&gt;&lt;p style=&quot;padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 1em; margin-right: 0px; margin-bottom: 0.5em; margin-left: 0px; &quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;     &lt;/span&gt;list.add((Integer) object);&lt;/p&gt;&lt;p style=&quot;padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 1em; margin-right: 0px; margin-bottom: 0.5em; margin-left: 0px; &quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;    &lt;/span&gt;}&lt;/p&gt;&lt;p style=&quot;padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 1em; margin-right: 0px; margin-bottom: 0.5em; margin-left: 0px; &quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;   &lt;/span&gt;} catch (Exception e) {&lt;/p&gt;&lt;p style=&quot;padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 1em; margin-right: 0px; margin-bottom: 0.5em; margin-left: 0px; &quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;    &lt;/span&gt;Toast.makeText(myContext, &quot;圖片載入失敗&quot;, Toast.LENGTH_SHORT).show();&lt;/p&gt;&lt;p style=&quot;padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 1em; margin-right: 0px; margin-bottom: 0.5em; margin-left: 0px; &quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;   &lt;/span&gt;}&lt;/p&gt;&lt;p style=&quot;padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 1em; margin-right: 0px; margin-bottom: 0.5em; margin-left: 0px; &quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;  &lt;/span&gt;}&lt;/p&gt;&lt;p style=&quot;padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 1em; margin-right: 0px; margin-bottom: 0.5em; margin-left: 0px; &quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;  &lt;/span&gt;output = new int[list.size()];&lt;/p&gt;&lt;p style=&quot;padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 1em; margin-right: 0px; margin-bottom: 0.5em; margin-left: 0px; &quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;  &lt;/span&gt;for (int i = 0; i &lt;&gt;&lt;p style=&quot;padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 1em; margin-right: 0px; margin-bottom: 0.5em; margin-left: 0px; &quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;   &lt;/span&gt;output[i] = list.get(i).intValue();&lt;/p&gt;&lt;p style=&quot;padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 1em; margin-right: 0px; margin-bottom: 0.5em; margin-left: 0px; &quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;  &lt;/span&gt;}&lt;/p&gt;&lt;p style=&quot;padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 1em; margin-right: 0px; margin-bottom: 0.5em; margin-left: 0px; &quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;  &lt;/span&gt;return output;&lt;/p&gt;&lt;p style=&quot;padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 1em; margin-right: 0px; margin-bottom: 0.5em; margin-left: 0px; &quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt; &lt;/span&gt;}&lt;/p&gt;&lt;/span&gt;&lt;p&gt;&lt;/p&gt;&lt;span class=&quot;Apple-style-span&quot;    style=&quot;font-family:Georgia;font-size:180%;color:#FF0000;&quot;&gt;&lt;b&gt;&lt;p style=&quot;padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 1em; margin-right: 0px; margin-bottom: 0.5em; margin-left: 0px; &quot;&gt;&lt;span class=&quot;Apple-style-span&quot;   style=&quot;font-size:130%;color:#000000;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot; font-weight: normal; white-space: pre;font-size:16px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot;    style=&quot;font-family:Georgia;font-size:180%;color:#FF0000;&quot;&gt;&lt;/span&gt;&lt;p&gt;&lt;/p&gt;&lt;/div&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://java2tw.blogspot.com/feeds/2546273978605291405/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/5396871486277763708/2546273978605291405' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5396871486277763708/posts/default/2546273978605291405'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5396871486277763708/posts/default/2546273978605291405'/><link rel='alternate' type='text/html' href='http://java2tw.blogspot.com/2009/09/android.html' title='在Android程式中取得圖檔方法'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/07597836455479751847</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5396871486277763708.post-9076458158839201495</id><published>2008-10-22T02:39:00.000-07:00</published><updated>2008-10-22T02:48:02.758-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="linux"/><title type='text'>Linux Date 指令運用</title><content type='html'>&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: AppleGothic; font-size: 14px; line-height: 24px; &quot;&gt;&lt;span style=&quot;font-weight: bold; color: rgb(0, 0, 255); margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; &quot;&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(0, 0, 0); font-family: Verdana; font-size: 13px; font-weight: normal; line-height: 18px; &quot;&gt;利用date 指令來取得,格式如下 &lt;br /&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(204, 102, 0);&quot;&gt;date &quot;+%Y %m %d %H:%M:%S&quot;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(204, 102, 0); font-family: Verdana; font-size: 13px; font-weight: normal; line-height: 18px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(204, 102, 0); font-family: Verdana; font-size: 13px; font-weight: normal; line-height: 18px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(255, 0, 0);&quot;&gt;Display the current time in the given FORMAT, or set the system date.&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(0, 0, 0); font-family: Verdana; font-size: 13px; font-weight: normal; line-height: 18px; &quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(204, 102, 0);&quot;&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(0, 0, 0);&quot;&gt;-d, --date=STRING&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(0, 0, 0);&quot;&gt;              display time described by STRING, not `now&#39;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(0, 0, 0);&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(255, 0, 0);&quot;&gt;FORMAT controls the output:&lt;/span&gt;&lt;br /&gt;%Y     year (1970...)&lt;br /&gt;%m     month (01..12)&lt;br /&gt;%d     day of month (01..31)&lt;br /&gt;%H     hour (00..23)&lt;br /&gt;%M     minute (00..59)&lt;br /&gt;%S     second (00..60); the 60 is necessary to accommodate a leap  sec&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(0, 0, 255); font-family: AppleGothic; font-size: 14px; font-weight: bold; line-height: 24px; &quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(0, 0, 0); font-family: Verdana; font-size: 13px; font-weight: normal; line-height: 18px;&quot;&gt;ond&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(0, 0, 0); font-family: Verdana; font-size: 13px; font-weight: normal; line-height: 18px; &quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(0, 0, 0); font-family: Verdana; font-size: 13px; font-weight: normal; line-height: 18px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;當天&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(0, 0, 0);&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-weight: normal;&quot;&gt;date +%Y%m%d&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;前一天&lt;/span&gt;&lt;br /&gt;# date --date=&#39;1 days ago&#39; +%Y%m%d&lt;br /&gt;# date -d &#39;1 days ago&#39; +%Y%m%d&lt;br /&gt;# date -d yesterday +%Y%m%d&lt;br /&gt;&lt;span style=&quot;font-weight: bold; color: rgb(0, 0, 255); margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; &quot;&gt;明天&lt;/span&gt;&lt;br /&gt;# date --date=&#39;1 days&#39; +%Y%m%d&lt;br /&gt;# date -d &#39;1 days&#39; +%Y%m%d&lt;br /&gt;# date -d tomorrow +%Y%m%d&lt;/span&gt;</content><link rel='replies' type='application/atom+xml' href='http://java2tw.blogspot.com/feeds/9076458158839201495/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/5396871486277763708/9076458158839201495' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5396871486277763708/posts/default/9076458158839201495'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5396871486277763708/posts/default/9076458158839201495'/><link rel='alternate' type='text/html' href='http://java2tw.blogspot.com/2008/10/linux-date.html' title='Linux Date 指令運用'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/07597836455479751847</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5396871486277763708.post-7942532741139277401</id><published>2008-10-19T20:30:00.000-07:00</published><updated>2008-10-19T20:40:37.020-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="NET"/><title type='text'>網路設定備份與啟動</title><content type='html'>&lt;div&gt;快速切換IP組態&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;網路設定檔備份&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(204, 0, 0);&quot;&gt;netsh -C interface dump&gt;C:\Office_AP1.txt&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(102, 102, 102);&quot;&gt;/*****************備份出來的內容_開始*************/&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(102, 102, 102);&quot;&gt;#=========&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(102, 102, 102);&quot;&gt;# 介面設定&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(102, 102, 102);&quot;&gt;#=========&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(102, 102, 102);&quot;&gt;pushd interface&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(102, 102, 102);&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(102, 102, 102);&quot;&gt;reset all&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(102, 102, 102);&quot;&gt;popd&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(102, 102, 102);&quot;&gt;# 介面設定結束&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(102, 102, 102);&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(102, 102, 102);&quot;&gt;#=========&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(102, 102, 102);&quot;&gt;# 介面設定&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(102, 102, 102);&quot;&gt;#=========&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(102, 102, 102);&quot;&gt;pushd interface ipv6&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(102, 102, 102);&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(102, 102, 102);&quot;&gt;uninstall&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(102, 102, 102);&quot;&gt;popd&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(102, 102, 102);&quot;&gt;# 介面設定結束&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(102, 102, 102);&quot;&gt;# ----------------------------------&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(102, 102, 102);&quot;&gt;# ISATAP 設定&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(102, 102, 102);&quot;&gt;# ----------------------------------&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(102, 102, 102);&quot;&gt;pushd interface ipv6 isatap&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(102, 102, 102);&quot;&gt;popd&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(102, 102, 102);&quot;&gt;# ISATAP 設定結束&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(102, 102, 102);&quot;&gt;# ----------------------------------&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(102, 102, 102);&quot;&gt;# 6to4 設定&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(102, 102, 102);&quot;&gt;# ----------------------------------&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(102, 102, 102);&quot;&gt;pushd interface ipv6 6to4&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(102, 102, 102);&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(102, 102, 102);&quot;&gt;reset&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(102, 102, 102);&quot;&gt;popd&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(102, 102, 102);&quot;&gt;# 6to4 設定結束&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(102, 102, 102);&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(102, 102, 102);&quot;&gt;#========================&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(102, 102, 102);&quot;&gt;# 連接埠 Proxy 設定&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(102, 102, 102);&quot;&gt;#========================&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(102, 102, 102);&quot;&gt;pushd interface portproxy&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(102, 102, 102);&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(102, 102, 102);&quot;&gt;reset&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(102, 102, 102);&quot;&gt;popd&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(102, 102, 102);&quot;&gt;# 連接埠 Proxy 設定結束&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(102, 102, 102);&quot;&gt;# ---------------------------------- &lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(102, 102, 102);&quot;&gt;# 介面 IP 設定         &lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(102, 102, 102);&quot;&gt;# ---------------------------------- &lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(102, 102, 102);&quot;&gt;pushd interface ip&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(102, 102, 102);&quot;&gt;# &quot;無線網路連線&quot; 的介面 IP 設定&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(102, 102, 102);&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(102, 102, 102);&quot;&gt;set address name=&quot;無線網路連線&quot; source=static addr=172.16.1.2 mask=255.255.255.0&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(102, 102, 102);&quot;&gt;set address name=&quot;無線網路連線&quot; gateway=172.16.1.1 gwmetric=0&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(102, 102, 102);&quot;&gt;set dns name=&quot;無線網路連線&quot; source=static addr=168.95.1.1 register=PRIMARY&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(102, 102, 102);&quot;&gt;add dns name=&quot;無線網路連線&quot; addr=168.95.192.1 index=2&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(102, 102, 102);&quot;&gt;set wins name=&quot;無線網路連線&quot; source=static addr=none&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(102, 102, 102);&quot;&gt;popd&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(102, 102, 102);&quot;&gt;# 介面 IP 設定結束&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(102, 102, 102);&quot;&gt;/*****************備份出來的內容_結束*************/&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;文字檔載入變更IP組態&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(204, 0, 0);&quot;&gt;netsh -f C:\Office_AP1.txt&lt;/span&gt;&lt;/span&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;這樣就不用每次手工去改IP,不過如果是不同無線基地台的話還是得手動去切換基地台才可以...&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://java2tw.blogspot.com/feeds/7942532741139277401/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/5396871486277763708/7942532741139277401' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5396871486277763708/posts/default/7942532741139277401'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5396871486277763708/posts/default/7942532741139277401'/><link rel='alternate' type='text/html' href='http://java2tw.blogspot.com/2008/10/blog-post.html' title='網路設定備份與啟動'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/07597836455479751847</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5396871486277763708.post-6452793852224880356</id><published>2008-10-12T23:08:00.000-07:00</published><updated>2008-10-19T20:40:05.296-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Java Mail"/><title type='text'>JMail 開發紀錄(2-3) - mail.cfg backup 功能新增</title><content type='html'>&lt;span class=&quot;Apple-style-span&quot;   style=&quot;  white-space: pre;font-family:Arial;font-size:13px;&quot;&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-size:small;&quot;&gt;新增郵件備份機制 backup=true/false&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;/span&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;  white-space: pre;font-family:Arial;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-size:small;&quot;&gt;當備份機制啟動時,在工作目錄下會新增一個backup資料夾,裡面會有每個帳號(日期分類)的個別備份檔案&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;  white-space: pre;font-family:Arial;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-size:small;&quot;&gt;例如:&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;  white-space: pre;font-family:Arial;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(204, 102, 0);&quot;&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-size:small;&quot;&gt;sender_smtp15985.jmail&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;  white-space: pre;font-family:Arial;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(204, 102, 0);&quot;&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-size:small;&quot;&gt;receiver_pop15986.jmail&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;  white-space: pre;font-family:Arial;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-size:small;&quot;&gt;兩種類型檔案,其中 sender為寄件者備份 / receiver為收件者備份&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot;   style=&quot;  white-space: pre;font-family:Arial;font-size:13px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://java2tw.blogspot.com/feeds/6452793852224880356/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/5396871486277763708/6452793852224880356' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5396871486277763708/posts/default/6452793852224880356'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5396871486277763708/posts/default/6452793852224880356'/><link rel='alternate' type='text/html' href='http://java2tw.blogspot.com/2008/10/jmail-2-3-mailcfg-backup.html' title='JMail 開發紀錄(2-3) - mail.cfg backup 功能新增'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/07597836455479751847</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5396871486277763708.post-5150500213829129043</id><published>2008-10-11T21:27:00.000-07:00</published><updated>2008-10-19T20:40:26.772-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Java Mail"/><title type='text'>JMail 開發紀錄(2-2) - mail.cfg NIC.Check 名稱變更</title><content type='html'>&lt;div&gt;#This option rejects mail sent from domains that do not have an entry in DNS.&lt;br /&gt;&lt;/div&gt;&lt;div&gt;#Fully qualified domain name check&lt;/div&gt;&lt;div&gt;#Default option=true&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;原為&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(204, 0, 0);&quot;&gt;NIC.Check=true&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;現在變更為&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(204, 0, 0);&quot;&gt;FQDN.Check = true&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(204, 0, 0);&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;功能無異動只有名稱修改&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://java2tw.blogspot.com/feeds/5150500213829129043/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/5396871486277763708/5150500213829129043' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5396871486277763708/posts/default/5150500213829129043'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5396871486277763708/posts/default/5150500213829129043'/><link rel='alternate' type='text/html' href='http://java2tw.blogspot.com/2008/10/jmail-2-2-mailcfg-niccheck.html' title='JMail 開發紀錄(2-2) - mail.cfg NIC.Check 名稱變更'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/07597836455479751847</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5396871486277763708.post-4828613367383013162</id><published>2008-10-09T11:53:00.000-07:00</published><updated>2008-10-19T20:40:51.086-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Java Mail"/><title type='text'>JMail 開發紀錄(2-1) - mail.cfg BlockDomain功能新增</title><content type='html'>新增&lt;div&gt;#Blocked.Domain&lt;/div&gt;&lt;div&gt;Blocked.domain=gmail.com&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;這樣只要是由gmail.com或是rv-out-0708.google.com或是xxxxx.gmail.com來的信都會被封鎖&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://java2tw.blogspot.com/feeds/4828613367383013162/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/5396871486277763708/4828613367383013162' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5396871486277763708/posts/default/4828613367383013162'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5396871486277763708/posts/default/4828613367383013162'/><link rel='alternate' type='text/html' href='http://java2tw.blogspot.com/2008/10/jmail-2-1-mailcfg-blockdomain.html' title='JMail 開發紀錄(2-1) - mail.cfg BlockDomain功能新增'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/07597836455479751847</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5396871486277763708.post-2980396072414491646</id><published>2008-10-09T02:27:00.000-07:00</published><updated>2008-10-19T20:41:01.055-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Java Mail"/><title type='text'>JMail 開發紀錄(4) - 使用外部套件說明</title><content type='html'>log紀錄&lt;div&gt;1.commons-logging-1.1.1.jar&lt;/div&gt;&lt;div&gt;2.commons-logging.jar&lt;/div&gt;&lt;div&gt;3.log4j-1.2.15.jar&lt;/div&gt;&lt;div&gt;4.log4j.jar&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;2.dns查詢&lt;/div&gt;&lt;div&gt;dnsjava-2.0.6.jar&lt;/div&gt;&lt;div&gt;這個套件要是檢查NIC與RBL與XBL所必須使用的,因為要反查IP.....&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://java2tw.blogspot.com/feeds/2980396072414491646/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/5396871486277763708/2980396072414491646' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5396871486277763708/posts/default/2980396072414491646'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5396871486277763708/posts/default/2980396072414491646'/><link rel='alternate' type='text/html' href='http://java2tw.blogspot.com/2008/10/jmail-4.html' title='JMail 開發紀錄(4) - 使用外部套件說明'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/07597836455479751847</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry></feed>