APP 學習備忘錄

學習大綱
初階 (Fundamental Android APP Developer) 中階 (Android APP Developer) 高階 (Professional Android APP Developer)
Android Studio 編寫環境介紹 (3hrs) 通訊錄使用檔案與資料庫 (3hrs) 網路程式設計 (3hrs)
基本GUI與MVC觀念 (3hrs) 位置與導航 (3hrs) 檔案上傳與下載 (3hrs)
Android元件使用 (3hrs) 簡訊與日曆 (3hrs) 社群連結整合 (3hrs)
Activity 與 intent 切換 (3hrs) 穿戴裝置整合 (3hrs)
No. Title Links Relase date Memo
1 Android Push count example 2016/03/22 張健生同學錄製
2 兩數四則運算 (使用 spinner 元件) 2016/03/22 張健生同學錄製
3 Android Push count example 2016/04/04 周永振錄製
4 登入系統+註冊帳號 (使用 SQLite) 2016/04/15 張健生同學錄製
5 使用 Eclipse + ADT + Android SDK 寫 APP(一) 2016/04/24 王奕勛同學錄製
6 使用 Eclipse + ADT + Android SDK 寫 APP(二) 2016/04/24 王奕勛同學錄製
7 Android 使用 Google Map 2016/04/25 張健生同學錄製
7 兩數相加 + Spinner + 限定資料內容 + 按其他地方鍵盤穩藏 2016/04/25 ActivityMain.java
ppt
8 手機旋轉方向後維持APP畫面佈局 2016/05/10 張健生同學錄製
Installation
KUbuntu 15.10
APP Project
Create
Background
image
Android APP
Components

Android Studio Installation (Linux (KUbuntu 15.10))

  1. Download Android Studio
  2. Unzip the downloaded file
  3. You should using following instruction to install some packages in KUbnut, before running studio.sh. Otherwise you will get "Unable to run mksdcard SDK tool" error.
    sudo apt-get install lib32z1 lib32ncurses5 lib32stdc++6
  4. change folder to ~/android studio/bin/ and run studio.sh file









  5. SDK Manager: set a minimun API level
    Choose a minimum API level

Got Top



Android APP Project Creation

  1. Start a new Android Studio project

  2. Select the form factors your app will run on

  3. Add a activity

  4. Customize the Activity

  5. APP Project created

Got Top



Add background image in your app

  1. Choose a suitable image
  2. Copy the background image from file manager

  3. Past the image into res/drawable folder

  4. add android:background="@drawable/backgroundImg" into content_main.xml file

  5. The preview when adding the background image

  6. Android studio environment

  7. APP Layout and Widgets

Got Top



Android APP Components

  1. Activity (活動):
    1. 定義使用者介面,讓使用者經由此介面與應用程式互動
    2. 每一個 Activity 都是各自獨立的子類別,代表著應用程式的不同畫面
    3. 當應用程式的另一個畫面或去操作其他應用程式時,目前執行的 Activity 將進入暫停狀態並移到背景等待
    4. Android裝置可以同時執行多個應用程式,亦即可同時啟動多個活動,但只能有一個活動能和使用者互動
  2. Service (服務)
    • 服務是不需要顯示畫面的應用程式,可以長時間在背景執行,不會被系統回收資源
    • 一啟動後將持續執行,除非使用者停止
  3. Broadcast Receiver (廣播接收者): 負責接收來自 Android 作業系統、其他應用程式、或自己程式內所傳播的訊息
  4. Content Provider (內容提供者):
    • Android APP 運行於自有的虛擬環境及程序裡, 形成資料無法共享
    • Content Provider 提供共用資料的服務
  5. Intents (意圖):
  6. Notifications (通知):
    • 發送訊息給使用者
    • 不用轉移 APP 的 focus, 或中斷目前的 Activities

Got Top