首先一樣要準備以下物品:S8500 Wave實機一台,傳輸線一條,並安裝好Samsung Kies 軟體。
![[教學] Bada開發套件安裝與範例執行 2](http://attach.mobile01.com/attach/201007/mobile01-0e239d182c4bd5bd3ca4b30971a3c275.jpg)
![[教學] Bada開發套件安裝與範例執行 2](http://attach.mobile01.com/attach/201007/mobile01-0987843b0e4668bf8cf30168704ca6bd.jpg)
http://www.samsungapps.com/about/onPc.as
![[教學] Bada開發套件安裝與範例執行 2](http://attach.mobile01.com/attach/201007/mobile01-8dba85393ee144c1164d8df391ea02e5.jpg)
接下來將手機的USB連線設定成大容量儲存裝置
![[教學] Bada開發套件安裝與範例執行 2](http://attach.mobile01.com/attach/201007/mobile01-76fbaa353d44e7e64fd06aae5628b2dc.jpg)
![[教學] Bada開發套件安裝與範例執行 2](http://attach.mobile01.com/attach/201007/mobile01-b92273e68564fc3ce6e2f2d10b9c33c8.jpg)
然後接上usb傳輸線。再將 C:\bada\1.0.0b3\Tools\sbuild 目錄裡面的 rootCACert.cer 檔案直接複製進手機磁碟機中的 Other 目錄。
![[教學] Bada開發套件安裝與範例執行 2](http://attach.mobile01.com/attach/201007/mobile01-df8c33dc80fc1f459fba19c77c01f79a.jpg)
傳進去以後,中斷usb連線。在手機裡面執行 [我的檔案] ,點選 [其他] 就會看到剛剛傳進去的檔案,然後點一下執行安裝,按 [是] 安裝完成。
接下來再把USB連線設定成 USB偵錯:
![[教學] Bada開發套件安裝與範例執行 2](http://attach.mobile01.com/attach/201007/mobile01-8ce22fb7f6f1d99f98697f25ad2d341f.jpg)
再將USB傳輸線接上手機。則會看到電腦會安裝對手機通訊用的驅動程式。(來不及抓圖..沒了)
接下來就可以直接在手機上執行程式啦!趕快啟動 bada IDE 吧:
在 Window -> Show View -> Other 選 bada->Output,就可以開啟手機與電腦之間執行時的偵錯訊息框。
![[教學] Bada開發套件安裝與範例執行 2](http://attach.mobile01.com/attach/201007/mobile01-7ce7fd1572c2ca0589f439c74cfe42af.jpg)
![[教學] Bada開發套件安裝與範例執行 2](http://attach.mobile01.com/attach/201007/mobile01-155438ceea389947fd4d0e9930cb51e7.jpg)
![[教學] Bada開發套件安裝與範例執行 2](http://attach.mobile01.com/attach/201007/mobile01-478756291cb0f5870c4ce569f8aba0c9.jpg)
把先前匯入的專案 Calculator 點一下,然後進行以實機為目標的專案建置 (Debug 模式可進行程式的相關除錯工作,等到要釋出時再以Release方式建置,程式速度較快):
![[教學] Bada開發套件安裝與範例執行 2](http://attach.mobile01.com/attach/201007/mobile01-5eb34f3b4d18dfc362251c1d388dcf1f.jpg)
建置無誤後,直接以實機為目標執行程式:
![[教學] Bada開發套件安裝與範例執行 2](http://attach.mobile01.com/attach/201007/mobile01-67e3603b1fd5ef8c8e3f3318a3845430.jpg)
最後就可以看到計算機出現在手機上!
![[教學] Bada開發套件安裝與範例執行 2](http://attach.mobile01.com/attach/201007/mobile01-3c14b3e3e256ad2c049af716cdf650da.jpg)
而且該程式也會出現在選單中囉。
![[教學] Bada開發套件安裝與範例執行 2](http://attach.mobile01.com/attach/201007/mobile01-92675b2256353aa67cd4fd901f517259.jpg)
趕快也來試試吧… 台灣的研發能力都輸人一大截啦~人家中國都知道要用嵌入式系統的研發做翻身,台灣要拿什麼翻身哩!