2011年8月26日

在UNE 10.04設置eclipse android 開發環境

於UNE (Ubuntu Netbook Edition) 10.04
設置 eclipse 與 android 開發環境



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();
之前敘述。

在eclipse建立android虛擬平台/模擬器

Window -> Android SDK and AVD Manager


Virtual Devices:   New... -> Target 選擇模擬器平台


Installed Packages:  可查看SDK已安裝的工具包及可用的平台,
                               Update All..可更新SDK項目

在eclipse設置android開發環境

下載eclipseJDK(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/
    -> 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)

2011年8月5日

eclipse自動完成

a.沒有提示視窗:
手動按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