<?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-2000647162170215861</id><updated>2024-08-28T17:01:08.790-07:00</updated><category term="Android"/><category term="Android筆記"/><category term="OpenGL ES"/><category term="adb"/><category term="4.0"/><category term="ARGB_8888"/><category term="CTS"/><category term="Creating Release Keys and Signing Builds"/><category term="GirdView"/><category term="GridView"/><category term="How Android Finds the Best-matching Resource"/><category term="Launcher"/><category term="Null Pointer Exception"/><category term="ScrollBar"/><category term="Singing key"/><category term="Triangle"/><category term="WebView"/><category term="common.py"/><category term="local file"/><category term="password"/><category term="permission deny"/><category term="polygon"/><category term="pull"/><category term="push"/><category term="resource"/><category term="screen lock"/><category term="setBackground"/><category term="system/app"/><category term="信任"/><category term="取得安裝程式列表"/><category term="取得安裝程式時間"/><category term="咖啡杯"/><category term="安裝apk"/><category term="安裝時間"/><category term="專案管理"/><category term="打嗝"/><category term="排序"/><category term="移除"/><category term="置換"/><category term="讓事情發生"/><category term="領導"/><title type='text'>寒石天地</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://hanshuo69.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2000647162170215861/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://hanshuo69.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>hanshuo</name><uri>http://www.blogger.com/profile/08843640407038735342</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>17</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-2000647162170215861.post-3530325675473768464</id><published>2012-11-09T03:13:00.001-08:00</published><updated>2012-11-09T03:13:55.221-08:00</updated><title type='text'>[C語言考題-1]strcpy()實作 </title><summary type="text">Question:已知strcpy函數的原型是&amp;nbsp;char* strcpy(char* strDest,const char* strSrc);
1.不使用原始函式庫，請實現strcpy函數
2.解釋為什麼要返回char* &amp;nbsp;--&amp;gt;其實我還是不知道為何要return? 沒return也可以run說...

以下收集幾種&quot;寫&quot;法，目前我的程度還沒辦法明確告訴您哪一個最&quot;好&quot;，但都可以執行，請自行參考：

寫法一(網路上最常看到的)
char* strcpy(char* strDest,const char* strSrc)
{
 if((strDest == NULL) || (strSrc == NULL)) //[1]
  throw &quot;Invalid Arguments&quot;; //[2]
 char* strDestCopy = strDest; //[3]
 </summary><link rel='replies' type='application/atom+xml' href='http://hanshuo69.blogspot.com/feeds/3530325675473768464/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://hanshuo69.blogspot.com/2012/11/c-1strcpy.html#comment-form' title='2 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2000647162170215861/posts/default/3530325675473768464'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2000647162170215861/posts/default/3530325675473768464'/><link rel='alternate' type='text/html' href='http://hanshuo69.blogspot.com/2012/11/c-1strcpy.html' title='[C語言考題-1]strcpy()實作 '/><author><name>hanshuo</name><uri>http://www.blogger.com/profile/08843640407038735342</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>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2000647162170215861.post-1657354195077659522</id><published>2012-06-26T20:31:00.000-07:00</published><updated>2012-06-27T18:43:55.514-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Android筆記"/><category scheme="http://www.blogger.com/atom/ns#" term="common.py"/><category scheme="http://www.blogger.com/atom/ns#" term="Creating Release Keys and Signing Builds"/><category scheme="http://www.blogger.com/atom/ns#" term="password"/><category scheme="http://www.blogger.com/atom/ns#" term="Singing key"/><title type='text'>簽章自動輸入密碼(Auto Sing Key)</title><summary type="text">這篇是：Creating Release Keys and Signing Builds&amp;nbsp;的延伸。

&amp;nbsp;當您作到
./build/tools/releasetools/sign_target_files_apks -d vendor/&amp;lt;vendor_name&amp;gt;/security/&amp;lt;product_name&amp;gt; &amp;lt;product_name&amp;gt;-target_files.zip signed-target-files.zip
這一步後，都會詢問密碼，而且一次都是問四次，對於重複使用者或自動化來說，都是不太方便的。
我找到一個地方是在寫這段流程的Python程式，建議大家可以從這個地方來修改：
位置在 build\tools\releasetools\common.py
line:562
 result[k] = </summary><link rel='replies' type='application/atom+xml' href='http://hanshuo69.blogspot.com/feeds/1657354195077659522/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://hanshuo69.blogspot.com/2012/06/auto-singing-key.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2000647162170215861/posts/default/1657354195077659522'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2000647162170215861/posts/default/1657354195077659522'/><link rel='alternate' type='text/html' href='http://hanshuo69.blogspot.com/2012/06/auto-singing-key.html' title='簽章自動輸入密碼(Auto Sing Key)'/><author><name>hanshuo</name><uri>http://www.blogger.com/profile/08843640407038735342</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-2000647162170215861.post-5386494424471409021</id><published>2012-06-07T20:20:00.000-07:00</published><updated>2012-07-03T19:14:47.776-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="4.0"/><category scheme="http://www.blogger.com/atom/ns#" term="Android"/><category scheme="http://www.blogger.com/atom/ns#" term="Android筆記"/><category scheme="http://www.blogger.com/atom/ns#" term="CTS"/><title type='text'>Android 4.0 CTS 設備設定</title><summary type="text">
還是需以官方文件為準，只是有些部份我覺得寫得不是很清楚或是過時，可以參考看看！ 

1.確認裝置手機或平台是user-build

2.settings--&gt;Backup &amp; reset--&gt;Factorydata reset

3.平台插入一張空的sd卡(沒有空的他也會把你刪掉)

4.平台安裝APK：CtsDelegatingAccessibilityService.apk，CtsDeviceAdmin.apk

5.settings打開Wi-Fi，並確定ap可連外

6.settings--&gt;Security--&gt;Screenlock--&gt;None

7.settings--&gt;Security--&gt;Deviceadministrators--&gt;Enable

8.settings--&gt;Display--&gt;Sleep--&gt;30minutes或None

9.settings--&gt;</summary><link rel='replies' type='application/atom+xml' href='http://hanshuo69.blogspot.com/feeds/5386494424471409021/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://hanshuo69.blogspot.com/2012/06/android-40-cts.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2000647162170215861/posts/default/5386494424471409021'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2000647162170215861/posts/default/5386494424471409021'/><link rel='alternate' type='text/html' href='http://hanshuo69.blogspot.com/2012/06/android-40-cts.html' title='Android 4.0 CTS 設備設定'/><author><name>hanshuo</name><uri>http://www.blogger.com/profile/08843640407038735342</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-2000647162170215861.post-9138276842932420591</id><published>2012-06-05T19:52:00.003-07:00</published><updated>2012-06-05T20:05:21.409-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="permission deny"/><category scheme="http://www.blogger.com/atom/ns#" term="system/app"/><title type='text'>system/app權限開啟</title><summary type="text">有時候會需要push apk 到system/app下，才有足夠的權限。

remount 不行的話，可以用以下指令：

mount -o rw,remount /dev/mmcblkp0 /system
</summary><link rel='replies' type='application/atom+xml' href='http://hanshuo69.blogspot.com/feeds/9138276842932420591/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://hanshuo69.blogspot.com/2012/06/systemapp.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2000647162170215861/posts/default/9138276842932420591'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2000647162170215861/posts/default/9138276842932420591'/><link rel='alternate' type='text/html' href='http://hanshuo69.blogspot.com/2012/06/systemapp.html' title='system/app權限開啟'/><author><name>hanshuo</name><uri>http://www.blogger.com/profile/08843640407038735342</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-2000647162170215861.post-2364510607609705741</id><published>2012-04-17T22:21:00.000-07:00</published><updated>2012-04-25T02:40:01.391-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Android"/><category scheme="http://www.blogger.com/atom/ns#" term="Android筆記"/><category scheme="http://www.blogger.com/atom/ns#" term="screen lock"/><title type='text'>螢幕鎖(Screen Lock)開啟/關閉</title><summary type="text">預設是開啟的，要關閉有兩個地方要改：

1.&amp;nbsp;frameworks\policies\base\phone\com\android\internal\policy\impl\KeyguardViewMediator.java

  private boolean mExternallyEnabled = true;
  //set to false if you want disable Screen Lock


2. frameworks/base/packages/SettingsProvider/res/values/defaults.xml

 60000
 // set to -1 if you want disable Screen Lock


兩個都要設定才ok~</summary><link rel='replies' type='application/atom+xml' href='http://hanshuo69.blogspot.com/feeds/2364510607609705741/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://hanshuo69.blogspot.com/2012/04/screen-lock.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2000647162170215861/posts/default/2364510607609705741'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2000647162170215861/posts/default/2364510607609705741'/><link rel='alternate' type='text/html' href='http://hanshuo69.blogspot.com/2012/04/screen-lock.html' title='螢幕鎖(Screen Lock)開啟/關閉'/><author><name>hanshuo</name><uri>http://www.blogger.com/profile/08843640407038735342</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-2000647162170215861.post-7793165663988169168</id><published>2012-03-08T21:42:00.001-08:00</published><updated>2012-03-08T21:42:40.652-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="adb"/><category scheme="http://www.blogger.com/atom/ns#" term="Android"/><category scheme="http://www.blogger.com/atom/ns#" term="local file"/><category scheme="http://www.blogger.com/atom/ns#" term="pull"/><category scheme="http://www.blogger.com/atom/ns#" term="push"/><title type='text'>本地和設備間傳遞檔案</title><summary type="text">從設備取得檔案

adb pull /data/data/com.example.sample &amp;nbsp; ./sample/

從本機上傳檔案
adb push ./sample/ &amp;nbsp;/sdcard/sample/

當然也可以用DDMS，但是有時候指令是方便許多～


參考</summary><link rel='replies' type='application/atom+xml' href='http://hanshuo69.blogspot.com/feeds/7793165663988169168/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://hanshuo69.blogspot.com/2012/03/blog-post_08.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2000647162170215861/posts/default/7793165663988169168'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2000647162170215861/posts/default/7793165663988169168'/><link rel='alternate' type='text/html' href='http://hanshuo69.blogspot.com/2012/03/blog-post_08.html' title='本地和設備間傳遞檔案'/><author><name>hanshuo</name><uri>http://www.blogger.com/profile/08843640407038735342</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-2000647162170215861.post-640383193605029475</id><published>2012-03-04T19:45:00.001-08:00</published><updated>2012-07-02T20:51:37.864-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Android"/><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="安裝apk"/><category scheme="http://www.blogger.com/atom/ns#" term="安裝時間"/><category scheme="http://www.blogger.com/atom/ns#" term="排序"/><title type='text'>安裝程式按安裝時間排序</title><summary type="text">結合「取得安裝程式列表」和「取得安裝程式時間」這兩個功能就可以完成。

取得安裝程式列表：
private void bindAllApps() {
        
        Intent mainIntent = new Intent(Intent.ACTION_MAIN, null);
        mainIntent.addCategory(Intent.CATEGORY_LAUNCHER);
        mAllApps = mPackageManager.queryIntentActivities(mainIntent, 0);    
        sortappInstalledTime(mAllApps);
    }

根據安裝時間排序：
public void sortappInstalledTime(List&amp;lt;ResolveInfo&amp;gt; </summary><link rel='replies' type='application/atom+xml' href='http://hanshuo69.blogspot.com/feeds/640383193605029475/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://hanshuo69.blogspot.com/2012/03/blog-post.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2000647162170215861/posts/default/640383193605029475'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2000647162170215861/posts/default/640383193605029475'/><link rel='alternate' type='text/html' href='http://hanshuo69.blogspot.com/2012/03/blog-post.html' title='安裝程式按安裝時間排序'/><author><name>hanshuo</name><uri>http://www.blogger.com/profile/08843640407038735342</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-2000647162170215861.post-7620842304122492440</id><published>2012-02-16T19:47:00.000-08:00</published><updated>2012-02-16T19:47:47.740-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Android"/><category scheme="http://www.blogger.com/atom/ns#" term="Android筆記"/><category scheme="http://www.blogger.com/atom/ns#" term="GridView"/><category scheme="http://www.blogger.com/atom/ns#" term="Null Pointer Exception"/><title type='text'>GridView Null Pointer Exception</title><summary type="text">error log:

 W/dalvikvm( 727): threadid=1: thread exiting with uncaught exception (group=0x2aac47e8)  
 E/AndroidRuntime( 727): FATAL EXCEPTION: main  
 E/AndroidRuntime( 727): java.lang.NullPointerException  
 E/AndroidRuntime( 727):    at android.widget.GridView.setupChild(GridView.java:1246)  
 E/AndroidRuntime( 727):    at android.widget.GridView.makeAndAddView(GridView.java:1222)  
 E/</summary><link rel='replies' type='application/atom+xml' href='http://hanshuo69.blogspot.com/feeds/7620842304122492440/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://hanshuo69.blogspot.com/2012/02/gridview-null-pointer-exception.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2000647162170215861/posts/default/7620842304122492440'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2000647162170215861/posts/default/7620842304122492440'/><link rel='alternate' type='text/html' href='http://hanshuo69.blogspot.com/2012/02/gridview-null-pointer-exception.html' title='GridView Null Pointer Exception'/><author><name>hanshuo</name><uri>http://www.blogger.com/profile/08843640407038735342</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-2000647162170215861.post-540868338419758028</id><published>2012-02-15T01:43:00.000-08:00</published><updated>2012-02-15T01:43:20.772-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Android"/><category scheme="http://www.blogger.com/atom/ns#" term="Android筆記"/><category scheme="http://www.blogger.com/atom/ns#" term="ARGB_8888"/><category scheme="http://www.blogger.com/atom/ns#" term="setBackground"/><title type='text'>提高背景圖的設定</title><summary type="text">在一般手機螢幕的圖檔，其實解析度稍微低一些，並不會太明顯。
但是在電視的環境就會要更高的要求。
因此要求出圖的設計師都要提供32bit圖檔。
但是android預設的解析度是&amp;nbsp;RGB_565，因此要另外更改設定成ARGB_8888才行，否則會有color loss的狀況。

我的狀況是在背景圖，可以用下面的code來設定。
Code:

&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; BitmapFactory.Options options = new BitmapFactory.Options();
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; options.inPreferredConfig = Bitmap.Config.ARGB_8888;&amp;nbsp; &amp;nbsp;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Bitmap </summary><link rel='replies' type='application/atom+xml' href='http://hanshuo69.blogspot.com/feeds/540868338419758028/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://hanshuo69.blogspot.com/2012/02/blog-post.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2000647162170215861/posts/default/540868338419758028'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2000647162170215861/posts/default/540868338419758028'/><link rel='alternate' type='text/html' href='http://hanshuo69.blogspot.com/2012/02/blog-post.html' title='提高背景圖的設定'/><author><name>hanshuo</name><uri>http://www.blogger.com/profile/08843640407038735342</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-2000647162170215861.post-1278557525756113442</id><published>2012-02-09T21:29:00.000-08:00</published><updated>2012-02-16T19:37:27.349-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="adb"/><category scheme="http://www.blogger.com/atom/ns#" term="Android"/><category scheme="http://www.blogger.com/atom/ns#" term="Android筆記"/><category scheme="http://www.blogger.com/atom/ns#" term="Launcher"/><category scheme="http://www.blogger.com/atom/ns#" term="移除"/><category scheme="http://www.blogger.com/atom/ns#" term="置換"/><title type='text'>如何移除與置換預設Launcher</title><summary type="text">
如果想要把預設的Launcher給換掉，可以利用以下方法

使用adb工具，下以下指令：

adb remount

adb shell rm system/app/Launcher2.apk

adb uninstall com.android.launcher

adb install Launcher_xxx.apk (or use eclipse Run ..)

這樣就可以了喔~</summary><link rel='replies' type='application/atom+xml' href='http://hanshuo69.blogspot.com/feeds/1278557525756113442/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://hanshuo69.blogspot.com/2012/02/launcher.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2000647162170215861/posts/default/1278557525756113442'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2000647162170215861/posts/default/1278557525756113442'/><link rel='alternate' type='text/html' href='http://hanshuo69.blogspot.com/2012/02/launcher.html' title='如何移除與置換預設Launcher'/><author><name>hanshuo</name><uri>http://www.blogger.com/profile/08843640407038735342</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-2000647162170215861.post-941373513763622465</id><published>2012-02-09T17:36:00.000-08:00</published><updated>2012-02-12T18:09:35.512-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Android"/><category scheme="http://www.blogger.com/atom/ns#" term="How Android Finds the Best-matching Resource"/><category scheme="http://www.blogger.com/atom/ns#" term="resource"/><title type='text'>Android如何找到最適合的資源檔</title><summary type="text">參考官方的說明：How Android Finds the Best-matching Resource




1. 消除和設備設定不符合的資源資料夾(qualifier)，例如語言設定為en，就會把 fr-rCA消除掉
&amp;nbsp; &amp;nbsp;&amp;nbsp;drawable/
  drawable-en/
  drawable-fr-rCA/
  drawable-en-port/
  drawable-en-notouch-12key/
  drawable-port-ldpi/
  drawable-port-notouch-12key/


  例外：螢幕解析度在這個階段是唯一衝突但是不會刪的資源資料夾，例如device是hdpi但是ldpi還是會留著 。(想瞭解更多請參考Supporting Multiple Screens)


2.選擇下一個最高順位的qualifier
</summary><link rel='replies' type='application/atom+xml' href='http://hanshuo69.blogspot.com/feeds/941373513763622465/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://hanshuo69.blogspot.com/2012/02/android.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2000647162170215861/posts/default/941373513763622465'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2000647162170215861/posts/default/941373513763622465'/><link rel='alternate' type='text/html' href='http://hanshuo69.blogspot.com/2012/02/android.html' title='Android如何找到最適合的資源檔'/><author><name>hanshuo</name><uri>http://www.blogger.com/profile/08843640407038735342</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-2000647162170215861.post-4223057151183042919</id><published>2012-02-08T19:15:00.000-08:00</published><updated>2012-02-08T19:15:34.115-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Android"/><category scheme="http://www.blogger.com/atom/ns#" term="GirdView"/><category scheme="http://www.blogger.com/atom/ns#" term="ScrollBar"/><category scheme="http://www.blogger.com/atom/ns#" term="WebView"/><title type='text'>Android View ScrollBar 設定</title><summary type="text">
WebView 和 GridView的ScrollBar 設定

.setVerticalScrollBarEnabled(false); &amp;nbsp;//取消Vertical ScrollBar顯示

.setHorizontalScrollBarEnabled(false); //取消Horizontal ScrollBar顯示

.setScrollBarStyle(View.SCROLLBARS_XXX) ;// 設定ScrollBar樣式

樣式請參考這裡

.setHorizontalScrollbarOverlay(boolean overlay); 
//設定Horizontal ScrollBar是否覆蓋樣式

.setVerticalScrollbarOverlay(boolean overlay); 
//設定
Vertical ScrollBar&amp;nbsp;&amp;</summary><link rel='replies' type='application/atom+xml' href='http://hanshuo69.blogspot.com/feeds/4223057151183042919/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://hanshuo69.blogspot.com/2012/02/android-view-scrollbar.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2000647162170215861/posts/default/4223057151183042919'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2000647162170215861/posts/default/4223057151183042919'/><link rel='alternate' type='text/html' href='http://hanshuo69.blogspot.com/2012/02/android-view-scrollbar.html' title='Android View ScrollBar 設定'/><author><name>hanshuo</name><uri>http://www.blogger.com/profile/08843640407038735342</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-2000647162170215861.post-4605008146246559927</id><published>2011-10-05T02:10:00.000-07:00</published><updated>2011-12-08T22:16:38.849-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Android"/><category scheme="http://www.blogger.com/atom/ns#" term="OpenGL ES"/><category scheme="http://www.blogger.com/atom/ns#" term="polygon"/><category scheme="http://www.blogger.com/atom/ns#" term="Triangle"/><title type='text'>OpenGL ES for Android的學習(二)：建立多邊形(polygon)</title><summary type="text">一般來說，學繪圖的HelloWorld應該是要來劃一個三角形(Triangle)，下面我綜合參考了
Jayway Team Blog:OpenGL ES Tutorial for Android –Part II– Building a polygon
3D Graphics using OpenGL ES (Including Nehe&#39;s Port)Example 2
來完成建立多邊形這個教學！


在開始建立程式前，先補充說明在建立3D模型時，需要用到的一些子元素

(頂點、邊、表面和多邊形)，他們都能獨立的分別被實做出來。


頂點(Vertex)



&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;頂點是構成3D模型的最小建物，他是由兩個或兩個以上的邊交界而成的點。一個頂點可以在所有相關聯的邊、面和多邊形中共用。頂點也可以是照相機或光源位置的表示。在</summary><link rel='replies' type='application/atom+xml' href='http://hanshuo69.blogspot.com/feeds/4605008146246559927/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://hanshuo69.blogspot.com/2011/10/opengl-es-for-androidpolygon.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2000647162170215861/posts/default/4605008146246559927'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2000647162170215861/posts/default/4605008146246559927'/><link rel='alternate' type='text/html' href='http://hanshuo69.blogspot.com/2011/10/opengl-es-for-androidpolygon.html' title='OpenGL ES for Android的學習(二)：建立多邊形(polygon)'/><author><name>hanshuo</name><uri>http://www.blogger.com/profile/08843640407038735342</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/AVvXsEgC7syju_R_KeSXR1Wj93AnjAOfklG9n3zYJfdTIxKunLdDq0P5fog-isaRRoE4_VE6GsIUQq4CTB8ye62eMV_jsVYbRflhmZuaoXGLLGfETbQydHNqMTo_DuP-pAjKDhWEkix6IW_RFf4/s72-c/triangle.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2000647162170215861.post-3448328842549798118</id><published>2011-10-04T21:00:00.000-07:00</published><updated>2011-10-05T02:44:26.769-07:00</updated><title type='text'>OpenGL ES for Android的學習(零)：寫在前面</title><summary type="text">最近工作上要朝Android 3D的方向做研發，OpenGL ES我想是必須學習的一個主題，想說就在這裡邊寫邊學習。目前大部分是官方文件與國外部落格的整理，想看就看吧！



</summary><link rel='replies' type='application/atom+xml' href='http://hanshuo69.blogspot.com/feeds/3448328842549798118/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://hanshuo69.blogspot.com/2011/10/opengl-es-for-android_04.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2000647162170215861/posts/default/3448328842549798118'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2000647162170215861/posts/default/3448328842549798118'/><link rel='alternate' type='text/html' href='http://hanshuo69.blogspot.com/2011/10/opengl-es-for-android_04.html' title='OpenGL ES for Android的學習(零)：寫在前面'/><author><name>hanshuo</name><uri>http://www.blogger.com/profile/08843640407038735342</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/AVvXsEimrzBuGhrW52nowBd0zGZn1Wzcx79KYCFjMMm435FxJopgjwifVM_RCbSwGiUTZHTEHHb_O0kJA6wFoKyffkOcxNmrtBk_SMkjmMJFBJqBS0yD3XUSwOkkr1c4OI-lG6KXxTuKzgmUAbU/s72-c/andesk800bg.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2000647162170215861.post-8548621851445423197</id><published>2011-10-04T20:48:00.000-07:00</published><updated>2011-10-04T23:00:01.618-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Android"/><category scheme="http://www.blogger.com/atom/ns#" term="OpenGL ES"/><title type='text'>OpenGL ES for Android的學習(一)：基礎概念</title><summary type="text">
Android對於OpenGL的支援，可以透過framework的API和NDK兩種，這裡要教學的是前者。GLSurfaceView和GLSurfaceView.Renderer是OpenGL ES API中最基礎了兩個類別，透過它你可以創造與操作影像。如果你的目標是將OpenGL應用在你的App，瞭解如何在activity中實作這些類別是第一要務。



l&amp;nbsp;&amp;nbsp; GLSurfaceView (Class Link)

顧名思義，他是View的一種,你可以透過OpenGL API呼叫它，你可以對它畫圖(draw)和作其他操作，功能上和SurfaceView是很類似的。

它主要的特徵有：

n&amp;nbsp;&amp;nbsp; 管理一個surface：它是在記憶體中的特別區塊，能夠被覆合成為Android的View。

n&amp;nbsp;&amp;nbsp; 管理一個EGL：使</summary><link rel='replies' type='application/atom+xml' href='http://hanshuo69.blogspot.com/feeds/8548621851445423197/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://hanshuo69.blogspot.com/2011/10/opengl-es-for-android.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2000647162170215861/posts/default/8548621851445423197'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2000647162170215861/posts/default/8548621851445423197'/><link rel='alternate' type='text/html' href='http://hanshuo69.blogspot.com/2011/10/opengl-es-for-android.html' title='OpenGL ES for Android的學習(一)：基礎概念'/><author><name>hanshuo</name><uri>http://www.blogger.com/profile/08843640407038735342</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-2000647162170215861.post-2289709424701612112</id><published>2011-06-02T00:03:00.000-07:00</published><updated>2012-02-09T21:31:36.945-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><summary type="text">

博客來連結

這本書我一直擺在我的書架上，每當在專案進行中有些&quot;阻礙&quot;時，我都會從中找看看有沒有類似的問題。書的作者是資訊專案背景的人，所以很多的情境都會和工作中遇到的很類似。值得推薦給資訊從業人員的一本好書!
今天翻到了第十二章：領導為何是以信任為基礎
為何是想翻這章，晚點再寫，先把一些重點記下來~
當中提到有效承諾的元素有：

做承諾的人是樂意這麼做。
承諾不是草率做出來的，必須仔細考慮牽涉到的工作、資源、以及進度。
雙方對於該做什麼、由誰來做、以及何時來做，有達成協議。
承諾被坦率且公開地陳述。
即使需要協助，有責任的人要設法達成承諾。
在承諾的日期來臨前，如果有事發生，影響某一方履行承諾，要事先通知，並再次協商新承諾。
</summary><link rel='replies' type='application/atom+xml' href='http://hanshuo69.blogspot.com/feeds/2289709424701612112/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://hanshuo69.blogspot.com/2011/06/blog-post_02.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2000647162170215861/posts/default/2289709424701612112'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2000647162170215861/posts/default/2289709424701612112'/><link rel='alternate' type='text/html' href='http://hanshuo69.blogspot.com/2011/06/blog-post_02.html' title='[筆記]領導為何是以信任為基礎'/><author><name>hanshuo</name><uri>http://www.blogger.com/profile/08843640407038735342</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-2000647162170215861.post-7388798859758348225</id><published>2011-06-01T19:44:00.000-07:00</published><updated>2012-02-09T21:30:58.448-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="咖啡杯"/><category scheme="http://www.blogger.com/atom/ns#" term="打嗝"/><title type='text'>[生活]咖啡杯打嗝法</title><summary type="text">我家的妹妹很討厭人家一直拍他背，但是不打嗝又不行~

上週感謝Matata阿姨的教學，使用咖啡杯打嗝法，真得還蠻有效的~

有嗝的時候轉個五六下就出來了~

簡單步驟 ：

1.讓寶寶做在你的大腿上

2.用虎口托住他的下巴

3.然後以屁屁為中心點轉圈圈，盡量不要只轉脖子，要整隻轉。

還有拍成短片

 









本法僅供參考，若有不適還是請教專家吧~</summary><link rel='replies' type='application/atom+xml' href='http://hanshuo69.blogspot.com/feeds/7388798859758348225/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://hanshuo69.blogspot.com/2011/06/blog-post.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2000647162170215861/posts/default/7388798859758348225'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2000647162170215861/posts/default/7388798859758348225'/><link rel='alternate' type='text/html' href='http://hanshuo69.blogspot.com/2011/06/blog-post.html' title='[生活]咖啡杯打嗝法'/><author><name>hanshuo</name><uri>http://www.blogger.com/profile/08843640407038735342</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>