Showing posts with label Hello World. Show all posts
Showing posts with label Hello World. Show all posts
先安裝好所需要的 JDK 和 JRE
http://www.oracle.com/technetwork/java/javase/downloads/index.html

開一個文字檔 另存為 Hello.java 內容如下 :


public class Hello{
public static void main(String[] args){
System.out.println("Hello Java");
}
}



一般來說學習新的 Programming Language 都會先編寫 Hello World! , 要進入Android 的世界先要準備幾種東西

1. IDE (可以是 Eclipse 或 Netbeans)
2.  Android SDK

因為Google 官方有 Eclipse ADT 插件所以以下用 Eclipse 做例子 ~

下載Eclipse : http://www.eclipse.org/
下載Android SDK : http://developer.android.com/sdk/index.html

安裝ADT 插件步驟
1. 開啟Eclipse , 按 Help > Install New Software
2.按右上方的Add 安鈕 增加以下  Repository  地址 :
https://dl-ssl.google.com/android/eclipse/
3. 按確定後選取 Developer Tools
4. 安裝完成後重啟Eclipse
5.於Windows > Preferences > Android 設定Android SDK 位置
6.設定好Android SDK 後, 按 Windows > Android SDK Manager 會出現以下視窗


7.選擇 & 安裝需要的元件

現在可以正式開始 ~