SlideShare a Scribd company logo
行動APP開發管理實務
Android Studio Overview and Practice
尹君耀 Xavier Yin
Outline
 Environment
 Android Studio Overview
 Project Structure
 The First Android App
Environment
 JDK
– Download JDK (or from Oracle)
– Installation and Environment Variable Settings
 JAVA_HOME
 PATH
 Installation result on cmd
 Android SDK and Studio
– Download Android SDK and Studio (or from Android Developer)
– Installation
 Launch the .exe file you just downloaded
 Follow the setup wizard
Android SDK
 Platform-tools folder
– Adb(Android Debug Bridge) instructions
 devices: Prints a list of all attached emulator/device instances.
 logcat: Prints log data to the screen.
 push: Copies a specified file from an emulator/device instance to your
development computer
 pull: Copies a specified file from your development computer to an
emulator/device instance.
 Tools folder
 Android
– avd: Launch the AVD Manager
– sdk: Launch the Android SDK Manager
Devices
 Real Devices
– With USB
 Android Emulator
– android avd
 Genymotion
– Plugin
Android Studio Overview
 Interface
Android Studio Overview
 Interface
– Tool bar
Android Studio Overview
 Interface
– Tool bar
– Navigation bar
Android Studio Overview
 Interface
– Tool bar
– Navigation bar
– Project structure
Android Studio Overview
 Interface
– Tool bar
– Navigation bar
– Project structure
– Code editor
Android Studio Overview
 Features
– Flexible Gradle-based build system
– Build variants and multiple apk file generation
– Code templates to help you build common app features
– Rich layout editor with support for drag and drop theme editing
– lint tools to catch performance, usability, version compatibility, and
other problems
– And much more
Android Studio Overview
 Details
– Auto Complete
– Build Variants
– Productivity Guild
– Multi Devices Debug
– Layout Preview for Multi Devices
– Plugins
– Code Template
– Layout Tools Attributes
– Resource Preview
– And much more
Android Studio Overview
 Details
– Auto Complete
– Build Variants
– Productivity Guild
– Multi Devices Debug
– Layout Preview for Multi Devices
– Plugins
– Code Template
– Layout Tools Attributes
– Resource Preview
– And much more
Android Studio Overview
 Details
– Auto Complete
– Build Variants
– Productivity Guild
– Multi Devices Debug
– Layout Preview for Multi Devices
– Plugins
– Code Template
– Layout Tools Attributes
– Resource Preview
– And much more
Android Studio Overview
 Details
– Auto Complete
– Build Variants
– Productivity Guild
– Multi Devices Debug
– Layout Preview for Multi Devices
– Plugins
– Code Template
– Layout Tools Attributes
– Resource Preview
– And much more
Android Studio Overview
 Details
– Auto Complete
– Build Variants
– Productivity Guild
– Multi Devices Debug
– Layout Preview for Multi Devices
– Plugins
– Code Template
– Layout Tools Attributes
– Resource Preview
– And much more
Android Studio Overview
 Details
– Auto Complete
– Build Variants
– Productivity Guild
– Multi Devices Debug
– Layout Preview for Multi Devices
– Plugins
– Code Template
– Layout Tools Attributes
– Resource Preview
– And much more
Android Studio Overview
 Details
– Auto Complete
– Build Variants
– Productivity Guild
– Multi Devices Debug
– Layout Preview for Multi Devices
– Plugins
– Code Template
– Layout Tools Attributes
– Resource Preview
– And much more
Android Studio Overview
 Details
– Auto Complete
– Build Variants
– Productivity Guild
– Multi Devices Debug
– Layout Preview for Multi Devices
– Plugins
– Code Template
– Layout Tools Attributes
– Resource Preview
– And much more
Android Studio Overview
 Details
– Auto Complete
– Build Variants
– Productivity Guild
– Multi Devices Debug
– Layout Preview for Multi Devices
– Plugins
– Code Template
– Layout Tools Attributes
– Resource Preview
– And much more
Android Studio Overview
 Details
– Auto Complete
– Build Variants
– Productivity Guild
– Multi Devices Debug
– Layout Preview for Multi Devices
– Plugins
– Code Template
– Layout Tools Attributes
– Resource Preview
– And much more
Android Studio Overview
 Details
– Auto Complete
– Build Variants
– Productivity Guild
– Multi Devices Debug
– Layout Preview for Multi Devices
– Plugins
– Code Template
– Layout Tools Attributes
– Resource Preview
– And much more
Project Structure
 /app
– /src
 /main/java
– /your_package_name (ex: /com/tku/android -> com.tku.android)
 Java files
– AndroidManifest.xml
 /androidTest(For Android Test)
– /java/your_package_name
 Test cases
 /res
– /drawable
– /layout
– /values
 colors.xml, dimens.xml, strings.xml, styles.xml…etc.
 build.gradle
Resources
 Drawable
– A drawable resource is a general concept for a graphic that can be
drawn to the scree.
 values
– strings: A string resource provides text strings for your application with
optional text styling and formatting.
– colors: A ColorStateList is an object you can define in XML that you can
apply as a color, but will actually change colors, depending on the state of
the View object to which it is applied.
– styles: A style resource defines the format and look for a UI.
– dimens: A dimension is specified with a number followed by a unit of
measure.
App Manifest
 Manifest file
– The manifest file presents essential information about your app to the
Android system, information the system must have before it can run
any of the app's code.
 Permission
– A basic Android application has no permissions associated with it by
default, meaning it cannot do anything that would adversely impact
the user experience or any data on the device.
– To make use of protected features of the device, you must include in
your AndroidManifest.xml one or more <uses-permission> tags
declaring the permissions that your application needs.
App Manifest
App Manifest
App Manifest
Dimens
 DPI (Dots Per Inch)
– The quantity of pixels within a physical area of the screen; usually
referred to as dpi (dots per inch).
Dimens
 PX, DPI and DP(DIP)
– Icon size = 160px
 MDPI -> 160px/160dpi = 1 inch
 XHDPI -> 160px/320dpi = 0.5 inch
– Icon size = 160dp -> px = dp * (dpi / 160 )
 MDPI -> px = 160 * ( 160dpi / 160dpi ) , px = 160
 XHDPI -> px = 160 * ( 320dpi / 160dpi) , px = 320
Dimens
 Suggestions
– Because it's important that you design and implement your layouts for
multiple densities, the guidelines below and throught the
documentation refer to layout dimensions with dp measurements
instead of pixels.
– Similarly, you should prefer the sp (scale-independent pixel) to define
text sizes. The sp scale factor depends on a user setting and the system
scales the size the same as it does for dp.
The First Android App
 Requirements
The First Android App
 Requirements 10dp
10dp
#FFEFAAE5
The First Android App
 Create a new project
– Empty project
 Define resources that you need
– Colors.xml, dimens.xml, strings.xml, styles.xml, drawable
 Prepare Layout files
– Add Android Resource Directory named layout within res folder
– Add a layout.xml
 LinearLayout
The First Android App
 Bind the above files with your java files
– Activity
 SetContentView()
 FindViewById()
 Define App Manifest file
– Intent
– Intent-filter
 Launch your App in a device
Sample Code and Slides
 Slides
– Slideshare
 Sample Code
– https://github.com/xavier0507/TKUSampleCode.git

More Related Content

What's hot

Разработка приложений для Android Honeycomb: ActionBar & Fragments
Разработка приложений для Android Honeycomb: ActionBar & FragmentsРазработка приложений для Android Honeycomb: ActionBar & Fragments
Разработка приложений для Android Honeycomb: ActionBar & FragmentsAlexey Ustenko
 
Swing !!! y shikhar!!
Swing !!! y shikhar!!Swing !!! y shikhar!!
Swing !!! y shikhar!!shikhar199
 
Tku-行動app開發管理實務-如何開發Android應用程式
Tku-行動app開發管理實務-如何開發Android應用程式Tku-行動app開發管理實務-如何開發Android應用程式
Tku-行動app開發管理實務-如何開發Android應用程式Xavier Yin
 
Day: 2 Environment Setup for Android Application Development
Day: 2 Environment Setup for Android Application DevelopmentDay: 2 Environment Setup for Android Application Development
Day: 2 Environment Setup for Android Application DevelopmentAhsanul Karim
 
What's new in android jakarta gdg (2015-08-26)
What's new in android   jakarta gdg (2015-08-26)What's new in android   jakarta gdg (2015-08-26)
What's new in android jakarta gdg (2015-08-26)Google
 
View groups containers
View groups containersView groups containers
View groups containersMani Selvaraj
 

What's hot (9)

Android tools
Android toolsAndroid tools
Android tools
 
AndroidManifest
AndroidManifestAndroidManifest
AndroidManifest
 
Разработка приложений для Android Honeycomb: ActionBar & Fragments
Разработка приложений для Android Honeycomb: ActionBar & FragmentsРазработка приложений для Android Honeycomb: ActionBar & Fragments
Разработка приложений для Android Honeycomb: ActionBar & Fragments
 
Swing !!! y shikhar!!
Swing !!! y shikhar!!Swing !!! y shikhar!!
Swing !!! y shikhar!!
 
Tku-行動app開發管理實務-如何開發Android應用程式
Tku-行動app開發管理實務-如何開發Android應用程式Tku-行動app開發管理實務-如何開發Android應用程式
Tku-行動app開發管理實務-如何開發Android應用程式
 
Day: 2 Environment Setup for Android Application Development
Day: 2 Environment Setup for Android Application DevelopmentDay: 2 Environment Setup for Android Application Development
Day: 2 Environment Setup for Android Application Development
 
What's new in android jakarta gdg (2015-08-26)
What's new in android   jakarta gdg (2015-08-26)What's new in android   jakarta gdg (2015-08-26)
What's new in android jakarta gdg (2015-08-26)
 
Android xml-based layouts-chapter5
Android xml-based layouts-chapter5Android xml-based layouts-chapter5
Android xml-based layouts-chapter5
 
View groups containers
View groups containersView groups containers
View groups containers
 

Similar to 行動App開發管理實務 unit1

Android installation guide
Android installation guideAndroid installation guide
Android installation guidemagicshui
 
Titanium Studio [Updated - 18/12/2011]
Titanium Studio [Updated - 18/12/2011]Titanium Studio [Updated - 18/12/2011]
Titanium Studio [Updated - 18/12/2011]Sentinel Solutions Ltd
 
Module-I_Introduction-to-Android.pptx
Module-I_Introduction-to-Android.pptxModule-I_Introduction-to-Android.pptx
Module-I_Introduction-to-Android.pptxlancelotlaytan1996
 
Android Programming made easy
Android Programming made easyAndroid Programming made easy
Android Programming made easyLars Vogel
 
Android For Java Developers
Android For Java DevelopersAndroid For Java Developers
Android For Java DevelopersMike Wolfson
 
Developing for Android-Types of Android Application
Developing for Android-Types of Android ApplicationDeveloping for Android-Types of Android Application
Developing for Android-Types of Android ApplicationNandini Prabhu
 
Industrial Training in Android Application
Industrial Training in Android ApplicationIndustrial Training in Android Application
Industrial Training in Android ApplicationArcadian Learning
 
9780134433646 annuzzi ch02 (1)
9780134433646 annuzzi ch02 (1)9780134433646 annuzzi ch02 (1)
9780134433646 annuzzi ch02 (1)Peter Mburu
 
Getting started with android programming
Getting started with android programmingGetting started with android programming
Getting started with android programmingPERKYTORIALS
 
.NET Recommended Resources
.NET Recommended Resources.NET Recommended Resources
.NET Recommended ResourcesGreg Sohl
 
Android Introduction on Java Forum Stuttgart 11
Android Introduction on Java Forum Stuttgart 11 Android Introduction on Java Forum Stuttgart 11
Android Introduction on Java Forum Stuttgart 11 Lars Vogel
 
Marakana Android User Interface
Marakana Android User InterfaceMarakana Android User Interface
Marakana Android User InterfaceMarko Gargenta
 
viWave Study Group - Introduction to Google Android Development - Chapter 23 ...
viWave Study Group - Introduction to Google Android Development - Chapter 23 ...viWave Study Group - Introduction to Google Android Development - Chapter 23 ...
viWave Study Group - Introduction to Google Android Development - Chapter 23 ...Ted Chien
 
Android tools for testers
Android tools for testersAndroid tools for testers
Android tools for testersMaksim Kovalev
 
Lec005 android start_program
Lec005 android start_programLec005 android start_program
Lec005 android start_programEyad Almasri
 
Android App Development - 01 Introduction
Android App Development - 01 IntroductionAndroid App Development - 01 Introduction
Android App Development - 01 IntroductionDiego Grancini
 

Similar to 行動App開發管理實務 unit1 (20)

Android installation guide
Android installation guideAndroid installation guide
Android installation guide
 
Titanium Studio [Updated - 18/12/2011]
Titanium Studio [Updated - 18/12/2011]Titanium Studio [Updated - 18/12/2011]
Titanium Studio [Updated - 18/12/2011]
 
Module-I_Introduction-to-Android.pptx
Module-I_Introduction-to-Android.pptxModule-I_Introduction-to-Android.pptx
Module-I_Introduction-to-Android.pptx
 
Android Programming made easy
Android Programming made easyAndroid Programming made easy
Android Programming made easy
 
Android For Java Developers
Android For Java DevelopersAndroid For Java Developers
Android For Java Developers
 
Android
AndroidAndroid
Android
 
Developing for Android-Types of Android Application
Developing for Android-Types of Android ApplicationDeveloping for Android-Types of Android Application
Developing for Android-Types of Android Application
 
Industrial Training in Android Application
Industrial Training in Android ApplicationIndustrial Training in Android Application
Industrial Training in Android Application
 
Session 2 beccse
Session 2 beccseSession 2 beccse
Session 2 beccse
 
9780134433646 annuzzi ch02 (1)
9780134433646 annuzzi ch02 (1)9780134433646 annuzzi ch02 (1)
9780134433646 annuzzi ch02 (1)
 
Getting started with android programming
Getting started with android programmingGetting started with android programming
Getting started with android programming
 
PPT Companion to Android
PPT Companion to AndroidPPT Companion to Android
PPT Companion to Android
 
Android develop guideline
Android develop guidelineAndroid develop guideline
Android develop guideline
 
.NET Recommended Resources
.NET Recommended Resources.NET Recommended Resources
.NET Recommended Resources
 
Android Introduction on Java Forum Stuttgart 11
Android Introduction on Java Forum Stuttgart 11 Android Introduction on Java Forum Stuttgart 11
Android Introduction on Java Forum Stuttgart 11
 
Marakana Android User Interface
Marakana Android User InterfaceMarakana Android User Interface
Marakana Android User Interface
 
viWave Study Group - Introduction to Google Android Development - Chapter 23 ...
viWave Study Group - Introduction to Google Android Development - Chapter 23 ...viWave Study Group - Introduction to Google Android Development - Chapter 23 ...
viWave Study Group - Introduction to Google Android Development - Chapter 23 ...
 
Android tools for testers
Android tools for testersAndroid tools for testers
Android tools for testers
 
Lec005 android start_program
Lec005 android start_programLec005 android start_program
Lec005 android start_program
 
Android App Development - 01 Introduction
Android App Development - 01 IntroductionAndroid App Development - 01 Introduction
Android App Development - 01 Introduction
 

More from Xavier Yin

UI/UX - 別讓我思考
UI/UX - 別讓我思考UI/UX - 別讓我思考
UI/UX - 別讓我思考Xavier Yin
 
機器學習與資料探勘:決策樹
機器學習與資料探勘:決策樹機器學習與資料探勘:決策樹
機器學習與資料探勘:決策樹Xavier Yin
 
Test automation
Test automationTest automation
Test automationXavier Yin
 
Tku-網路資料的串接與資料儲存
Tku-網路資料的串接與資料儲存Tku-網路資料的串接與資料儲存
Tku-網路資料的串接與資料儲存Xavier Yin
 
Tku-行動app開發管理實務-Android應用程式開發基礎
Tku-行動app開發管理實務-Android應用程式開發基礎Tku-行動app開發管理實務-Android應用程式開發基礎
Tku-行動app開發管理實務-Android應用程式開發基礎Xavier Yin
 
TKU行動APP開發管理實務 - ListView & Custom Adapter
TKU行動APP開發管理實務 - ListView & Custom AdapterTKU行動APP開發管理實務 - ListView & Custom Adapter
TKU行動APP開發管理實務 - ListView & Custom AdapterXavier Yin
 
Material design introduction
Material design introductionMaterial design introduction
Material design introductionXavier Yin
 

More from Xavier Yin (7)

UI/UX - 別讓我思考
UI/UX - 別讓我思考UI/UX - 別讓我思考
UI/UX - 別讓我思考
 
機器學習與資料探勘:決策樹
機器學習與資料探勘:決策樹機器學習與資料探勘:決策樹
機器學習與資料探勘:決策樹
 
Test automation
Test automationTest automation
Test automation
 
Tku-網路資料的串接與資料儲存
Tku-網路資料的串接與資料儲存Tku-網路資料的串接與資料儲存
Tku-網路資料的串接與資料儲存
 
Tku-行動app開發管理實務-Android應用程式開發基礎
Tku-行動app開發管理實務-Android應用程式開發基礎Tku-行動app開發管理實務-Android應用程式開發基礎
Tku-行動app開發管理實務-Android應用程式開發基礎
 
TKU行動APP開發管理實務 - ListView & Custom Adapter
TKU行動APP開發管理實務 - ListView & Custom AdapterTKU行動APP開發管理實務 - ListView & Custom Adapter
TKU行動APP開發管理實務 - ListView & Custom Adapter
 
Material design introduction
Material design introductionMaterial design introduction
Material design introduction
 

Recently uploaded

The Benefits and Challenges of Open Educational Resources
The Benefits and Challenges of Open Educational ResourcesThe Benefits and Challenges of Open Educational Resources
The Benefits and Challenges of Open Educational Resourcesaileywriter
 
GIÁO ÁN DẠY THÊM (KẾ HOẠCH BÀI BUỔI 2) - TIẾNG ANH 8 GLOBAL SUCCESS (2 CỘT) N...
GIÁO ÁN DẠY THÊM (KẾ HOẠCH BÀI BUỔI 2) - TIẾNG ANH 8 GLOBAL SUCCESS (2 CỘT) N...GIÁO ÁN DẠY THÊM (KẾ HOẠCH BÀI BUỔI 2) - TIẾNG ANH 8 GLOBAL SUCCESS (2 CỘT) N...
GIÁO ÁN DẠY THÊM (KẾ HOẠCH BÀI BUỔI 2) - TIẾNG ANH 8 GLOBAL SUCCESS (2 CỘT) N...Nguyen Thanh Tu Collection
 
Home assignment II on Spectroscopy 2024 Answers.pdf
Home assignment II on Spectroscopy 2024 Answers.pdfHome assignment II on Spectroscopy 2024 Answers.pdf
Home assignment II on Spectroscopy 2024 Answers.pdfTamralipta Mahavidyalaya
 
Gyanartha SciBizTech Quiz slideshare.pptx
Gyanartha SciBizTech Quiz slideshare.pptxGyanartha SciBizTech Quiz slideshare.pptx
Gyanartha SciBizTech Quiz slideshare.pptxShibin Azad
 
How to Break the cycle of negative Thoughts
How to Break the cycle of negative ThoughtsHow to Break the cycle of negative Thoughts
How to Break the cycle of negative ThoughtsCol Mukteshwar Prasad
 
Salient features of Environment protection Act 1986.pptx
Salient features of Environment protection Act 1986.pptxSalient features of Environment protection Act 1986.pptx
Salient features of Environment protection Act 1986.pptxakshayaramakrishnan21
 
INU_CAPSTONEDESIGN_비밀번호486_업로드용 발표자료.pdf
INU_CAPSTONEDESIGN_비밀번호486_업로드용 발표자료.pdfINU_CAPSTONEDESIGN_비밀번호486_업로드용 발표자료.pdf
INU_CAPSTONEDESIGN_비밀번호486_업로드용 발표자료.pdfbu07226
 
How to Create Map Views in the Odoo 17 ERP
How to Create Map Views in the Odoo 17 ERPHow to Create Map Views in the Odoo 17 ERP
How to Create Map Views in the Odoo 17 ERPCeline George
 
Instructions for Submissions thorugh G- Classroom.pptx
Instructions for Submissions thorugh G- Classroom.pptxInstructions for Submissions thorugh G- Classroom.pptx
Instructions for Submissions thorugh G- Classroom.pptxJheel Barad
 
Accounting and finance exit exam 2016 E.C.pdf
Accounting and finance exit exam 2016 E.C.pdfAccounting and finance exit exam 2016 E.C.pdf
Accounting and finance exit exam 2016 E.C.pdfYibeltalNibretu
 
PART A. Introduction to Costumer Service
PART A. Introduction to Costumer ServicePART A. Introduction to Costumer Service
PART A. Introduction to Costumer ServicePedroFerreira53928
 
2024_Student Session 2_ Set Plan Preparation.pptx
2024_Student Session 2_ Set Plan Preparation.pptx2024_Student Session 2_ Set Plan Preparation.pptx
2024_Student Session 2_ Set Plan Preparation.pptxmansk2
 
Additional Benefits for Employee Website.pdf
Additional Benefits for Employee Website.pdfAdditional Benefits for Employee Website.pdf
Additional Benefits for Employee Website.pdfjoachimlavalley1
 
Palestine last event orientationfvgnh .pptx
Palestine last event orientationfvgnh .pptxPalestine last event orientationfvgnh .pptx
Palestine last event orientationfvgnh .pptxRaedMohamed3
 
The Art Pastor's Guide to Sabbath | Steve Thomason
The Art Pastor's Guide to Sabbath | Steve ThomasonThe Art Pastor's Guide to Sabbath | Steve Thomason
The Art Pastor's Guide to Sabbath | Steve ThomasonSteve Thomason
 
NLC-2024-Orientation-for-RO-SDO (1).pptx
NLC-2024-Orientation-for-RO-SDO (1).pptxNLC-2024-Orientation-for-RO-SDO (1).pptx
NLC-2024-Orientation-for-RO-SDO (1).pptxssuserbdd3e8
 
Danh sách HSG Bộ môn cấp trường - Cấp THPT.pdf
Danh sách HSG Bộ môn cấp trường - Cấp THPT.pdfDanh sách HSG Bộ môn cấp trường - Cấp THPT.pdf
Danh sách HSG Bộ môn cấp trường - Cấp THPT.pdfQucHHunhnh
 
Adversarial Attention Modeling for Multi-dimensional Emotion Regression.pdf
Adversarial Attention Modeling for Multi-dimensional Emotion Regression.pdfAdversarial Attention Modeling for Multi-dimensional Emotion Regression.pdf
Adversarial Attention Modeling for Multi-dimensional Emotion Regression.pdfPo-Chuan Chen
 

Recently uploaded (20)

The Benefits and Challenges of Open Educational Resources
The Benefits and Challenges of Open Educational ResourcesThe Benefits and Challenges of Open Educational Resources
The Benefits and Challenges of Open Educational Resources
 
GIÁO ÁN DẠY THÊM (KẾ HOẠCH BÀI BUỔI 2) - TIẾNG ANH 8 GLOBAL SUCCESS (2 CỘT) N...
GIÁO ÁN DẠY THÊM (KẾ HOẠCH BÀI BUỔI 2) - TIẾNG ANH 8 GLOBAL SUCCESS (2 CỘT) N...GIÁO ÁN DẠY THÊM (KẾ HOẠCH BÀI BUỔI 2) - TIẾNG ANH 8 GLOBAL SUCCESS (2 CỘT) N...
GIÁO ÁN DẠY THÊM (KẾ HOẠCH BÀI BUỔI 2) - TIẾNG ANH 8 GLOBAL SUCCESS (2 CỘT) N...
 
Mattingly "AI & Prompt Design: Limitations and Solutions with LLMs"
Mattingly "AI & Prompt Design: Limitations and Solutions with LLMs"Mattingly "AI & Prompt Design: Limitations and Solutions with LLMs"
Mattingly "AI & Prompt Design: Limitations and Solutions with LLMs"
 
Home assignment II on Spectroscopy 2024 Answers.pdf
Home assignment II on Spectroscopy 2024 Answers.pdfHome assignment II on Spectroscopy 2024 Answers.pdf
Home assignment II on Spectroscopy 2024 Answers.pdf
 
Gyanartha SciBizTech Quiz slideshare.pptx
Gyanartha SciBizTech Quiz slideshare.pptxGyanartha SciBizTech Quiz slideshare.pptx
Gyanartha SciBizTech Quiz slideshare.pptx
 
How to Break the cycle of negative Thoughts
How to Break the cycle of negative ThoughtsHow to Break the cycle of negative Thoughts
How to Break the cycle of negative Thoughts
 
Salient features of Environment protection Act 1986.pptx
Salient features of Environment protection Act 1986.pptxSalient features of Environment protection Act 1986.pptx
Salient features of Environment protection Act 1986.pptx
 
INU_CAPSTONEDESIGN_비밀번호486_업로드용 발표자료.pdf
INU_CAPSTONEDESIGN_비밀번호486_업로드용 발표자료.pdfINU_CAPSTONEDESIGN_비밀번호486_업로드용 발표자료.pdf
INU_CAPSTONEDESIGN_비밀번호486_업로드용 발표자료.pdf
 
How to Create Map Views in the Odoo 17 ERP
How to Create Map Views in the Odoo 17 ERPHow to Create Map Views in the Odoo 17 ERP
How to Create Map Views in the Odoo 17 ERP
 
Instructions for Submissions thorugh G- Classroom.pptx
Instructions for Submissions thorugh G- Classroom.pptxInstructions for Submissions thorugh G- Classroom.pptx
Instructions for Submissions thorugh G- Classroom.pptx
 
Accounting and finance exit exam 2016 E.C.pdf
Accounting and finance exit exam 2016 E.C.pdfAccounting and finance exit exam 2016 E.C.pdf
Accounting and finance exit exam 2016 E.C.pdf
 
PART A. Introduction to Costumer Service
PART A. Introduction to Costumer ServicePART A. Introduction to Costumer Service
PART A. Introduction to Costumer Service
 
2024_Student Session 2_ Set Plan Preparation.pptx
2024_Student Session 2_ Set Plan Preparation.pptx2024_Student Session 2_ Set Plan Preparation.pptx
2024_Student Session 2_ Set Plan Preparation.pptx
 
Additional Benefits for Employee Website.pdf
Additional Benefits for Employee Website.pdfAdditional Benefits for Employee Website.pdf
Additional Benefits for Employee Website.pdf
 
NCERT Solutions Power Sharing Class 10 Notes pdf
NCERT Solutions Power Sharing Class 10 Notes pdfNCERT Solutions Power Sharing Class 10 Notes pdf
NCERT Solutions Power Sharing Class 10 Notes pdf
 
Palestine last event orientationfvgnh .pptx
Palestine last event orientationfvgnh .pptxPalestine last event orientationfvgnh .pptx
Palestine last event orientationfvgnh .pptx
 
The Art Pastor's Guide to Sabbath | Steve Thomason
The Art Pastor's Guide to Sabbath | Steve ThomasonThe Art Pastor's Guide to Sabbath | Steve Thomason
The Art Pastor's Guide to Sabbath | Steve Thomason
 
NLC-2024-Orientation-for-RO-SDO (1).pptx
NLC-2024-Orientation-for-RO-SDO (1).pptxNLC-2024-Orientation-for-RO-SDO (1).pptx
NLC-2024-Orientation-for-RO-SDO (1).pptx
 
Danh sách HSG Bộ môn cấp trường - Cấp THPT.pdf
Danh sách HSG Bộ môn cấp trường - Cấp THPT.pdfDanh sách HSG Bộ môn cấp trường - Cấp THPT.pdf
Danh sách HSG Bộ môn cấp trường - Cấp THPT.pdf
 
Adversarial Attention Modeling for Multi-dimensional Emotion Regression.pdf
Adversarial Attention Modeling for Multi-dimensional Emotion Regression.pdfAdversarial Attention Modeling for Multi-dimensional Emotion Regression.pdf
Adversarial Attention Modeling for Multi-dimensional Emotion Regression.pdf
 

行動App開發管理實務 unit1

  • 1. 行動APP開發管理實務 Android Studio Overview and Practice 尹君耀 Xavier Yin
  • 2. Outline  Environment  Android Studio Overview  Project Structure  The First Android App
  • 3. Environment  JDK – Download JDK (or from Oracle) – Installation and Environment Variable Settings  JAVA_HOME  PATH  Installation result on cmd  Android SDK and Studio – Download Android SDK and Studio (or from Android Developer) – Installation  Launch the .exe file you just downloaded  Follow the setup wizard
  • 4. Android SDK  Platform-tools folder – Adb(Android Debug Bridge) instructions  devices: Prints a list of all attached emulator/device instances.  logcat: Prints log data to the screen.  push: Copies a specified file from an emulator/device instance to your development computer  pull: Copies a specified file from your development computer to an emulator/device instance.  Tools folder  Android – avd: Launch the AVD Manager – sdk: Launch the Android SDK Manager
  • 5. Devices  Real Devices – With USB  Android Emulator – android avd  Genymotion – Plugin
  • 7. Android Studio Overview  Interface – Tool bar
  • 8. Android Studio Overview  Interface – Tool bar – Navigation bar
  • 9. Android Studio Overview  Interface – Tool bar – Navigation bar – Project structure
  • 10. Android Studio Overview  Interface – Tool bar – Navigation bar – Project structure – Code editor
  • 11. Android Studio Overview  Features – Flexible Gradle-based build system – Build variants and multiple apk file generation – Code templates to help you build common app features – Rich layout editor with support for drag and drop theme editing – lint tools to catch performance, usability, version compatibility, and other problems – And much more
  • 12. Android Studio Overview  Details – Auto Complete – Build Variants – Productivity Guild – Multi Devices Debug – Layout Preview for Multi Devices – Plugins – Code Template – Layout Tools Attributes – Resource Preview – And much more
  • 13. Android Studio Overview  Details – Auto Complete – Build Variants – Productivity Guild – Multi Devices Debug – Layout Preview for Multi Devices – Plugins – Code Template – Layout Tools Attributes – Resource Preview – And much more
  • 14. Android Studio Overview  Details – Auto Complete – Build Variants – Productivity Guild – Multi Devices Debug – Layout Preview for Multi Devices – Plugins – Code Template – Layout Tools Attributes – Resource Preview – And much more
  • 15. Android Studio Overview  Details – Auto Complete – Build Variants – Productivity Guild – Multi Devices Debug – Layout Preview for Multi Devices – Plugins – Code Template – Layout Tools Attributes – Resource Preview – And much more
  • 16. Android Studio Overview  Details – Auto Complete – Build Variants – Productivity Guild – Multi Devices Debug – Layout Preview for Multi Devices – Plugins – Code Template – Layout Tools Attributes – Resource Preview – And much more
  • 17. Android Studio Overview  Details – Auto Complete – Build Variants – Productivity Guild – Multi Devices Debug – Layout Preview for Multi Devices – Plugins – Code Template – Layout Tools Attributes – Resource Preview – And much more
  • 18. Android Studio Overview  Details – Auto Complete – Build Variants – Productivity Guild – Multi Devices Debug – Layout Preview for Multi Devices – Plugins – Code Template – Layout Tools Attributes – Resource Preview – And much more
  • 19. Android Studio Overview  Details – Auto Complete – Build Variants – Productivity Guild – Multi Devices Debug – Layout Preview for Multi Devices – Plugins – Code Template – Layout Tools Attributes – Resource Preview – And much more
  • 20. Android Studio Overview  Details – Auto Complete – Build Variants – Productivity Guild – Multi Devices Debug – Layout Preview for Multi Devices – Plugins – Code Template – Layout Tools Attributes – Resource Preview – And much more
  • 21. Android Studio Overview  Details – Auto Complete – Build Variants – Productivity Guild – Multi Devices Debug – Layout Preview for Multi Devices – Plugins – Code Template – Layout Tools Attributes – Resource Preview – And much more
  • 22. Android Studio Overview  Details – Auto Complete – Build Variants – Productivity Guild – Multi Devices Debug – Layout Preview for Multi Devices – Plugins – Code Template – Layout Tools Attributes – Resource Preview – And much more
  • 23. Project Structure  /app – /src  /main/java – /your_package_name (ex: /com/tku/android -> com.tku.android)  Java files – AndroidManifest.xml  /androidTest(For Android Test) – /java/your_package_name  Test cases  /res – /drawable – /layout – /values  colors.xml, dimens.xml, strings.xml, styles.xml…etc.  build.gradle
  • 24. Resources  Drawable – A drawable resource is a general concept for a graphic that can be drawn to the scree.  values – strings: A string resource provides text strings for your application with optional text styling and formatting. – colors: A ColorStateList is an object you can define in XML that you can apply as a color, but will actually change colors, depending on the state of the View object to which it is applied. – styles: A style resource defines the format and look for a UI. – dimens: A dimension is specified with a number followed by a unit of measure.
  • 25. App Manifest  Manifest file – The manifest file presents essential information about your app to the Android system, information the system must have before it can run any of the app's code.  Permission – A basic Android application has no permissions associated with it by default, meaning it cannot do anything that would adversely impact the user experience or any data on the device. – To make use of protected features of the device, you must include in your AndroidManifest.xml one or more <uses-permission> tags declaring the permissions that your application needs.
  • 29. Dimens  DPI (Dots Per Inch) – The quantity of pixels within a physical area of the screen; usually referred to as dpi (dots per inch).
  • 30. Dimens  PX, DPI and DP(DIP) – Icon size = 160px  MDPI -> 160px/160dpi = 1 inch  XHDPI -> 160px/320dpi = 0.5 inch – Icon size = 160dp -> px = dp * (dpi / 160 )  MDPI -> px = 160 * ( 160dpi / 160dpi ) , px = 160  XHDPI -> px = 160 * ( 320dpi / 160dpi) , px = 320
  • 31. Dimens  Suggestions – Because it's important that you design and implement your layouts for multiple densities, the guidelines below and throught the documentation refer to layout dimensions with dp measurements instead of pixels. – Similarly, you should prefer the sp (scale-independent pixel) to define text sizes. The sp scale factor depends on a user setting and the system scales the size the same as it does for dp.
  • 32. The First Android App  Requirements
  • 33. The First Android App  Requirements 10dp 10dp #FFEFAAE5
  • 34. The First Android App  Create a new project – Empty project  Define resources that you need – Colors.xml, dimens.xml, strings.xml, styles.xml, drawable  Prepare Layout files – Add Android Resource Directory named layout within res folder – Add a layout.xml  LinearLayout
  • 35. The First Android App  Bind the above files with your java files – Activity  SetContentView()  FindViewById()  Define App Manifest file – Intent – Intent-filter  Launch your App in a device
  • 36. Sample Code and Slides  Slides – Slideshare  Sample Code – https://github.com/xavier0507/TKUSampleCode.git