出處 Sensor Simulator
下載工具包並解壓縮,
-> 執行bin/sensorsimulator-x.x.x.jar 啟動控制工具
-> 安裝bin/SensorSimulatorSettings-x.x.x.apk到模擬器裡
-> 開啟模擬器裡的SensorSimulator
-> 確認IP位址與控制工具顯示的一樣
-> 選Testing標籤,按Connect連接
-> 成功的話,模擬器會顯示目前控制工具的各項Senser數值
-> 在控制工具裡模擬各Senser功能
2011年12月21日
在Android模擬器(emulator)安裝APK
例如放在C碟的 C:\MyName.apk 放在D碟的SDK
執行
-> cmd
-> d:
-> cd D:\vutsix\android-sdk-windows\platform-tools
-> adb install C:\MyName.apk
說明:
先把cmd工作資料夾選到platform-tools,使用adb工具的install參數,最後接apk的存放路徑。成功的話會出現success。
如果要移除
adb shell rm data/app/MyName.apk
執行
-> cmd
-> d:
-> cd D:\vutsix\android-sdk-windows\platform-tools
-> adb install C:\MyName.apk
說明:
先把cmd工作資料夾選到platform-tools,使用adb工具的install參數,最後接apk的存放路徑。成功的話會出現success。
如果要移除
adb shell rm data/app/MyName.apk
2011年12月19日
Word無法建立工作檔。 檢查暫存環境變數
遇到這種狀況,就是暫存/快取區有問題。
會發生Word無法編輯、PowerPoint檔存好的圖片都不見的狀況。
原因可能是改過IE Temporary Internet Files暫存路徑,
例如把暫存路徑設在Ramdisk上,但如果取消Ramdisk後,IE暫存設定雖然會看到路徑已經自動改回預設,但系統登錄檔沒有改。
執行 -> regedit
找
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders
中的Cache機碼
這邊應該還是原本、但已無法使用的路徑
改回預設值 %USERPROFILE%\AppData\Local\Microsoft\Windows\Temporary Internet Files
_
會發生Word無法編輯、PowerPoint檔存好的圖片都不見的狀況。
原因可能是改過IE Temporary Internet Files暫存路徑,
例如把暫存路徑設在Ramdisk上,但如果取消Ramdisk後,IE暫存設定雖然會看到路徑已經自動改回預設,但系統登錄檔沒有改。
執行 -> regedit
找
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders
中的Cache機碼
這邊應該還是原本、但已無法使用的路徑
改回預設值 %USERPROFILE%\AppData\Local\Microsoft\Windows\Temporary Internet Files
_
2011年12月18日
DreamSpark
DreamSpark is simple:
It’s about giving students Microsoft professional tools at no charge.
https://www.dreamspark.com/
使用Windows Live帳號登入
我用學校信箱驗證
It’s about giving students Microsoft professional tools at no charge.
https://www.dreamspark.com/
使用Windows Live帳號登入
我用學校信箱驗證
2011年12月17日
android ERROR:Unknown option 'crunch'
開發Android時,當eclipse跑出如下面錯誤
android ERROR:Unknown option 'crunch'
Android Asset Packaging Tool
Usage:
aapt l[ist] [-v] [-a] file.{zip,jar,apk}
試著更新SDK Manager
android ERROR:Unknown option 'crunch'
Android Asset Packaging Tool
Usage:
aapt l[ist] [-v] [-a] file.{zip,jar,apk}
試著更新SDK Manager
2011年12月14日
2011年11月16日
2011年11月5日
2011年9月21日
2011年8月26日
2011年8月12日
android 隱藏標題列/狀態列
android 隱藏 標題列 與 狀態列
(title bar and notification bar)
在onCreate()裡加入
/*隱藏標題列*/
requestWindowFeature(Window.FEATURE_NO_TITLE);
/*隱藏狀態列*/
getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, WindowManager.LayoutParams.FLAG_FULLSCREEN);
皆在
setContentView();
之前敘述。
(title bar and notification bar)
在onCreate()裡加入
/*隱藏標題列*/
requestWindowFeature(Window.FEATURE_NO_TITLE);
/*隱藏狀態列*/
getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, WindowManager.LayoutParams.FLAG_FULLSCREEN);
皆在
setContentView();
之前敘述。
在eclipse建立android虛擬平台/模擬器
Window -> Android SDK and AVD Manager
Virtual Devices: New... -> Target 選擇模擬器平台
Installed Packages: 可查看SDK已安裝的工具包及可用的平台,
Update All..可更新SDK項目
Virtual Devices: New... -> Target 選擇模擬器平台
Installed Packages: 可查看SDK已安裝的工具包及可用的平台,
Update All..可更新SDK項目
在eclipse設置android開發環境
i 下載eclipse、JDK(Java Development Kit)、Android SDK
eclipse可下載 for Java 或for Java EE Developers 版
ii 於eclipse安裝ADT (Android Development Tools)
Help -> Install New Software -> Add..
-> Name隨便,Location http://dl-ssl.google.com/android/eclipse/
-> Name隨便,Location http://dl-ssl.google.com/android/eclipse/
-> OK -> Developer Tools項全選 -> Next開始安裝
iii 於eclipse設定Android SDK
Window -> Preferences -> Android
SDK Location 選擇 Android SDK 資料夾(例:D:\android-sdk-windows)
-> Apply -> OK
範例平台:
Windows 7 64bit
Eclipse for Java EE Developers 64bit Version 3.7.0 (代號INDIGO)
-> Apply -> OK
範例平台:
Windows 7 64bit
Eclipse for Java EE Developers 64bit Version 3.7.0 (代號INDIGO)
2011年8月5日
eclipse自動完成
a.沒有提示視窗:
手動按Alt + / 可叫出提示視窗
Window -> Preferences
-> Java -> Editor -> Content Assist
-> Auto Activation -> Enable auto activation打勾
Auto activation triggers for Java 設定會出現提示的字,預設是 .
可以改成 .abcdefghijklmnopqrstuvwxyz(,
就變成懶人用法
b.提示視窗沒有建議字
手動按Alt + / 可叫出提示視窗
Window -> Preferences
-> Java -> Editor -> Content Assist
-> Auto Activation -> Enable auto activation打勾
Auto activation triggers for Java 設定會出現提示的字,預設是 .
可以改成 .abcdefghijklmnopqrstuvwxyz(,
就變成懶人用法
b.提示視窗沒有建議字
Window -> Preferences
-> Java -> Editor -> Content Assist -> Advanced
選擇需要的Proposals
eclipse更改字型
Windows-->Preferences
-->General-->Appearance-->Colors and Fonts
-->Java-->Java Editor Text Font-->Edit
Eclipse SDK
Version: 3.7.0
-->General-->Appearance-->Colors and Fonts
-->Java-->Java Editor Text Font-->Edit
Eclipse SDK
Version: 3.7.0
訂閱:
文章 (Atom)