Android Studio IDE Tools Operation Summary. icle.html icle.html.

Slides:



Advertisements
Similar presentations
Mercury Quality Center 9.0 Training Material
Advertisements

Copyright  Oracle Corporation, All rights reserved. 1 Creating an Application: The AppBuilder for Java IDE.
Programming with Android: SDK install and initial setup Luca Bedogni Marco Di Felice Dipartimento di Informatica: Scienza e Ingegneria Università di Bologna.
Android Tools & Wireless ADB Αντρέας Λύμπουρας Θεόφιλος Φωκάς Ζαχαρίας Χ’’Λάμπρου.
Get android development environment running. Install – Get and install JDK 5 or 6 (see link in the.
The Android Development Environment.  Getting started on the Android Platform  Installing required libraries  Programming Android using the Eclipse.
Filip Debelić What is it? Android is a mobile operating system (OS) based on the Linux kernel and currently developed by Google Android,
Coursework 2: getting started (4) – using PhoneGap to build mobile applications (optional) Chris Greenhalgh G54UBI /
Android: Hello World Frank Xu Gannon University. Steps Configuration ▫Android SDK ▫Android Development Tools (ADT)  Eclipse plug-in ▫Android SDK and.
Android 遊戲設計模組 1 Android 開發環境建構 郭育政 東吳大學資訊管理系 涂昆源 萬能科技大學資訊工程系 余執彰 萬能科技大學資訊工程系 周建興 淡江大學電機工程系 林旭陽 東吳大學資訊管理系 教育部網路通訊人才培育先導型計畫 ─ 課程發展計畫.
Android Programming Beomjoo Seo Sep., 12 CS5248 Fall 2012.
2. Setting Up Your Android Development Environment.
ANDROID PROGRAMMING MODULE 1 – GETTING STARTED
UFCFX5-15-3Mobile Device Development Android Development Environments and Windows.
How to make it work? Doncho Minkov Telerik Academy academy.telerik.com Technical Trainer
SET UP COMPUTER ** PLEASE BE AWARE SCREENSHOTS MAY NOT MATCH **
Eclipse IDE. 2 IDE Overview An IDE is an Interactive Development Environment Different IDEs meet different needs BlueJ and DrJava are designed as teaching.
03 Using Eclipse. 2 IDE Overview An IDE is an Interactive Development Environment Different IDEs meet different needs BlueJ and DrJava are designed as.
INTERNATIONAL SUMMER ACADEMIC COURSE UNIVESITY OF NIS ISAC – Android programming.
SEEM4570: XAMPP, Eclipse, Summary of Html Kangfei Zhao Room 711,ERB
Android Programming. Outline Preparation Create new project Build and Run a project Debug a project Deploy on devices.
Android Application Development 2013 PClassic Chris Murphy 1.
Sayed Ahmed BSc. Eng. In Computer Sc. and Eng. (BUET), Bangladesh MSc., Computer Science, Canada President/Chief Architect/Lead Developer Justetc (Just.
Setting up a Nexus tablet for development on Windows 1.
Mobile Programming Lecture 1 Getting Started. Today's Agenda About the Eclipse IDE Hello, World! Project Android Project Structure Intro to Activities,
Programming Your Android App Gourav Khadge
Chapter 3 Navigating a Project Goals & Objectives 1.Get familiar with the navigation of the project. How is everything structured? What settings can you.
Google Maps Android API v2 吳俊興 國立高雄大學 資訊工程學系 CSF645 – Mobile Computing 行動計算
WaveMaker Visual AJAX Studio 4.0 Training Troubleshooting.
Android Programming By Mohsen Biglari Android Programming, Part1: Introduction 1 Part1: Introduction By Mohsen Biglari.
Copyright© Jeffrey Jongko, Ateneo de Manila University Android.
Android. The Eclipse IDE Installation Requirements: Eclipse Java Windows All must match (32-bit OR 64-bit) If you have a 64-bit OS & 32-bit browser,
 Java SE Develop Kit (JDK) 包含了編寫 Java 語言程式時可能會使用的元件。  Android SDK 開發 Android 程式的工具。  Eclipse with Android Development Tools (ADT) plugin 免費的程式編寫工具,加上.
Sayed Ahmed Computer Engineering (BUET), Bangladesh MSc., Computer Science, Canada President/Chief Architect/Lead Developer Justetc (Just et cetera) Technologies.
Introduction to Android. Android as a system, is a java based operating system that runs on the Linux kernel. The system is very lightweight and full.
Ali Shahrokni Application Components Activities Services Content providers Broadcast receivers.
安裝 Android 開發環境 建國科技大學 資管系 饒瑞佶 2013/2 V1. 需要 JDK ( Java Runtime 1.5 above) Eclipse IDE Android SDK ADT.
Basic Android Tutorial USF’s Association for Computing Machinery.
ANDROID Presented By Mastan Vali.SK. © artesis 2008 | 2 1. Introduction 2. Platform 3. Software development 4. Advantages Main topics.
Android for Java Developers Denver Java Users Group Jan 11, Mike
Eclipse Tutorial Barrett Summer Scholars 2011 Sustainable Engineering: Learning to Engineer Truly Green Products.
© 2016 Cengage Learning®. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part. Android Boot Camp.
Presented By: Muhammad Tariq Software Engineer Android Training course.
Liang, Introduction to Java Programming, Eighth Edition, (c) 2011 Pearson Education, Inc. All rights reserved Introduction to Android (Part.
Android Development Environment Environment/tools Windows Eclipse IDE for Java Developers (v3.5 Galileo) Java Platform (JDK 6 Update 18) Android.
Creating an Example Android App in Android Studio Activity lifecycle & UI Resources.
Renesas Technology America Inc. 1 M16C Seminars Lab 3 Creating Projects Using HEW4 14 March 2005 M16C Seminars Lab 3 Creating Projects Using HEW4 Last.
® IBM Software Group © 2007 IBM Corporation Module 1: Getting Started with Rational Software Architect Essentials of Modeling with IBM Rational Software.
ANDROID APPLICATION DEVELOPMENT. ANDROID DEVELOPMENT DEVELOPER.ANDROID.COM/INDEX.HTML THE OFFICIAL SITE FOR ANDROID DEVELOPERS. PROVIDES THE ANDROID SDK.
Open project in Microsoft Visual Studio → build program in “Release” mode.
TODAY Android Studio Installation Getting started Creating your 1 st App Beginning to understanding Intents.
USING HARDWARE DEVICES When building a mobile application, it's important that you always test your application on a real device before releasing it.
Installation of Visual Studio Android emulator and Android Studio
Intoduction to Andriod studio Environment With a hello world program.
Master Software Solutions Pvt.Ltd.. These days the demand of smart phone is being increased and we have different types of client e.g. Touch Phone, tables,
Guide To Develop Mobile Apps With Titanium. Agenda Overview Installation of Platform SDKs Pros of Appcelerator Titanium Cons of Appcelerator Titanium.
Day 1 Session 2. Setup & Installation
Introduction to Android Programming
Mobile Device Development
Obtaining the Required Tools
Android Studio, Android System Basics and Git
Android.
Android SDK & App Development
Android Developer Fundamentals V2 Lesson 1
John D. McGregor Module 0 Session 2 Infrastructure and problem
Testing, debugging, and using support libraries
The Most Popular Android UI Automation Testing Tool Andrii Voitenko
CA16R405 - Mobile Application Development (Theory)
Presentation transcript:

Android Studio IDE Tools Operation Summary

icle.html icle.html

Project and File Structure -Android Shows the most important source directories at the top level of the module hierarchy. Groups the build files for all modules in a common folder. Groups all the manifest files for each module in a common folder. Shows resource files from all Gradle source sets. Groups resource files for different locales, orientations, and screen types in a single group per resource type.

Project and File Structure -Android

Project and File Structure - Gradle Scripts The Android project view shows all the build files at the top level of the project hierarchy under Gradle Scripts. Each project module appears as a folder at the top level of the project hierarchy and contains these four elements at the top level: java/ - Source files for the module. manifests/ - Manifest files for the module. res/ - Resource files for the module. Gradle Scripts/ - Gradle build and property files.

Project and File Structure - Gradle Scripts

Project and File Structure -Project When you use the Project view in Android Studio, you should notice that the project structure appears different than you may be used to in Eclipse. Each instance of Android Studio contains a project with one or more application modules. Each application module folder contains the complete source sets for that module, including src/main/ andsrc/androidTest/ direc tories, resources, build file and the Android manifest. For the most part, you will need to modify the files under each module's src/main/ directory for source code updates, the gradle.build file for build specification and the files under src/androidTest/ directory for test case creation.

Memory and CPU monitor Android Studio provides a memory and CPU monitor view so you can more easily monitor your app's performance and memory usage to track CPU usage, find deallocated objects, locate memory leaks, and track the amount of memory the connected device is using. With your app running on a device or emulator, click the Android tab in the lower left corner of the runtime window to launch the Android runtime window. Click the Memory or CPU tab. 1. Initiate GC 2. Dump Java Heap 3. Start Allocation Tracking

Data file access The Android SDK tools, such as Systrace, logcat, and Traceview, generate performance and debugging data for detailed app analysis.SystracelogcatTraceview To view the available generated data files, click Captures in the left corner of the runtime window. In the list of the generated files, double- click a file to view the data. Right-click any.hprof files to convert them to a standard.hprof file format..hprof

Analyzing UI Performance with Systrace trace.html trace.html ng/systrace.html ng/systrace.html

Code inspections Android Studio enables several lint checks to ensure: Cipher.getInstance() is used with safe values In custom Views, the associated declare-styleable for the custom view uses the same base name as the class name Security check for fragment injection Where ever property assignment no longer works as expected Gradle plugin version is compatible with the SDK Right to left validation Required API version many others

With Android Studio, you can also run lint inspections for a specific build variant, or for all build variants. You can configure the lint inspections that run by adding a lintOptions property to the Android settings in the build.gradlefile.

android { lintOptions { // set to true to turn off analysis progress reporting by lint quiet true // if true, stop the gradle build if errors are found abortOnError false // if true, only report errors ignoreWarnings true }

You can also manage inspection profiles and configure inspections within Android Studio. Choose File > Settings >, expand the Editor options, and select Inspections. The Inspection Configuration page appears with the supported inspections.

Icon Function Run Debug Run with coverage Attach debugger to Android Process Setting Sync Project with Gradle Files AVD Manager SDK Manager Android Device Monitor Project Structure

Run Menu

Run App/Debug App

Run App

Debug App

Run

Edit Configuration

選擇目標活動 ( EX: Mainactivity ) 1. 選擇模擬器 2. 載入活動 3. 啟動模擬器

Debug 與 Run 相似但結果為顯示 Debug 結果

Edit Configuration

Tools

AVD Manager 按右鍵

SDK Manager

How do I add a library project to the Android Studio? 4/how-do-i-add-a-library-project-to-the- android-studio 4/how-do-i-add-a-library-project-to-the- android-studio 專案同步鈕

Features udio-features.html#git-samples udio-features.html#git-samples

Android Code Samples on GitHub Clicking Import Samples from the File menu or Welcome page provides seamless access to Google code samples on GitHub.

Imported code sample

4.4. Install support library The support library allows you to use functionality provided by higher Android releases in lower Android versions. In the Android SDK Manager select Extras and install the Android Support Repository. The Android Support Library is for the usage of the Eclipse ADT tooling. Android currently has several versions of the library, the v4, v7 and v13 version which are valid as of the respective API level of Android. For example, the support library v7 works as of Android devices with version API 7. Higher versions of the support library require also the lower versions to work. For example, support library v7 requires the v4 library.

Import Project from Eclipse 可直接在 Android Studio 介面直接 Import Eclipse 發展之專案 可能會發生版本相容性錯誤 請依指示安裝相容之 SDK 版本套件