Intoduction to Andriod studio Environment With a hello world program.

Slides:



Advertisements
Similar presentations
Using Eclipse. Getting Started There are three ways to create a Java project: 1:Select File > New > Project, 2 Select the arrow of the button in the upper.
Advertisements

Programming with Android: SDK install and initial setup Luca Bedogni Marco Di Felice Dipartimento di Informatica: Scienza e Ingegneria Università di Bologna.
Microsoft Word 2010 Lesson 1: Introduction to Word.
 2006 Pearson Education, Inc. All rights reserved Introduction to the Visual C# 2005 Express Edition IDE.
Android: Hello World Frank Xu Gannon University. Steps Configuration ▫Android SDK ▫Android Development Tools (ADT)  Eclipse plug-in ▫Android SDK and.
Google Android as a mobile development platform T Internet Technologies for Mobile Computing Olli Mäkinen.
1 Introduction to the Visual Studio.NET IDE Powerpoint slides modified from Deitel & Deitel.
UFCFX5-15-3Mobile Device Development Android Development Environments and Windows.
Setting up the Development Environment Copyright © SUPINFO. All rights reserved Preparation.
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.
SCERSIG: Creating Android Apps with App Inventor 26 October 2011 Ric Paul, Health Services Library, Southampton.
INTERNATIONAL SUMMER ACADEMIC COURSE UNIVESITY OF NIS ISAC – Android programming.
Introduction to ArcGIS Add-Ins Exercises GIS/LIS Conference, 2014 Rochester, MN.
Programming with App Inventor Computing Institute for K-12 Teachers Summer 2012 Workshop.
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.
Mobile Programming Lecture 1 Getting Started. Today's Agenda About the Eclipse IDE Hello, World! Project Android Project Structure Intro to Activities,
Chapter 3 Navigating a Project Goals & Objectives 1.Get familiar with the navigation of the project. How is everything structured? What settings can you.
Android 2: Introduction to the Technology Kirk Scott 1.
Project 3 File, Document, Folder Management, Windows XP Explorer Windows XP Service Pack 2 Edition Comprehensive Concepts and Techniques.
© 2008, Renesas Technology America, Inc., All Rights Reserved 1 Introduction Purpose  This training course provides an overview of the installation and.
Operating system for mobile devices with a Java programming interface. Provides tools, e.g. a compiler, debugger, device emulator, and its own Java Virtual.
Copyright© Jeffrey Jongko, Ateneo de Manila University Android.
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.
IE 411/511: Visual Programming for Industrial Applications
Basic Android Tutorial USF’s Association for Computing Machinery.
© 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.
Alice 2.0 Introductory Concepts and Techniques Project 1 Exploring Alice and Object-Oriented Programming.
© 2005 Pearson Education, Inc., Upper Saddle River, NJ. All rights reserved. Data Structures for Java William H. Ford William R. Topp Appendix E The EZJava.
 2009 Pearson Education, Inc. All rights reserved Introduction to the Visual Basic Express 2008 IDE.
Integrated Development Environment (IDE)
Learningcomputer.com Introduction to Microsoft Word 2007 New Look and Feel.
Liang, Introduction to Java Programming, Eighth Edition, (c) 2011 Pearson Education, Inc. All rights reserved Introduction to Android (Part.
Basic Editing Lesson 2.
First Venture into the Android World Chapter 1 Part 2.
Android 2: A First Project Kirk Scott Creating a New, Example Android Application Project in Eclipse 2.2 Creating a Virtual Device, an Emulator.
Surya Bahadur Kathayat Outline  Ramses  Installing Ramses  Ramses Perspective (Views and Editors)  Importing/Exporting Example.
 2002 Prentice Hall. All rights reserved. 1 Chapter 2 – Introduction to the Visual Studio.NET IDE Outline 2.1Introduction 2.2Visual Studio.NET Integrated.
ANDROID APPLICATION DEVELOPMENT. ANDROID DEVELOPMENT DEVELOPER.ANDROID.COM/INDEX.HTML THE OFFICIAL SITE FOR ANDROID DEVELOPERS. PROVIDES THE ANDROID SDK.
1 Getting Started with C++ Part 1 Windows. 2 Objective You will be able to create, compile, and run a very simple C++ program on Windows, using Microsoft.
Intro to. Contents These slides describe how one can obtain (download) and use eclipse to build, run, and debug basic Java programs.
THE WINDOWS OPERATING SYSTEM Computer Basics 1.2.
IE 411/511: Visual Programming for Industrial Applications Lecture Notes #2 Introduction to the Visual Basic Express 2010 Integrated Development Environment.
 2002 Prentice Hall. All rights reserved. 1 Introduction to the Visual Studio.NET IDE Outline Introduction Visual Studio.NET Integrated Development Environment.
MS WORD INFORMATION TECHNOLOGY MANAGEMENT SERVICE Training & Research Division.
Android apps development - Eclipse, Android SDK, and ADT plugin Introduction of.
C Copyright © 2009, Oracle. All rights reserved. Using SQL Developer.
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
4.2 Microsoft Word.
Obtaining the Required Tools
Chapter 2 – Introduction to the Visual Studio .NET IDE
Introduction to the Visual C# 2005 Express Edition IDE
COSC-4840 Software Engineering
Bomgar Remote support software
Microsoft Word 2010 Lesson 1.
4.2 Microsoft Word.
Chapter 2 – Introduction to the Visual Studio .NET IDE
Packing and Signing of the Application
Android Developer Fundamentals V2 Lesson 1
CHAPTER 1 Introduction Chapter objectives: Understand what Android is
Android Application Development
Mu Editor – New User Cheat Sheet – CircuitPython Mode
Mu Editor – New User Cheat Sheet – CircuitPython Mode
Presentation transcript:

Intoduction to Andriod studio Environment With a hello world program

Android App Development flow Setting up development environment Designing app resources Creating app components Building app project Unit testing app components App testing App distribution App development

Android Studio The IDE for Androidis intended as an alternative to Eclipse. Android Studio is based on the Java IDE called IntelliJ. Most of your IDE skills from Eclipse apply to Android Studio as well. You’ll still export signed APKs, view logcat, and edit code virtually the same way in Android Studio as if you were in Eclipse. Android Studio with the Editor, Project, and Android panels ->

Installing Android Studio Google has made installing Android Studio as simple as possible. Just visit the Android Studio page and download the installer for your platform. Supported platforms include Windows, Mac OS X, and Linux. Follow the installation instructions for your platform to install the application. Installation instructions are not provided in detail because installation instructions change often. If you encounter issues, please visit the Android Studio installation page.

Bundled SDK Android Studio comes bundled with its own version of the Android SDK, which is preconfigured to be used with Android Studio upon installation. This means that if you already have an SDK installed, Android Studio will not use the previously installed SDK by default.

Default Project Location After installing Android Studio, you can create a new project and define a destination location for the project files. If you don’t explicitly define a location for your project, Android Studio will place your files into the ~/AndroidStudioProjects folder in the current user’s folder on your machine.

Anatomy of the Android Studio IDE The Android Studio IDE is comprised of a vast array of panels, tools, and functions to help you become as productive as possible at developing Android applications.

The most common panels, windows, and toolbars with which you’ll be interacting. PanelDescription Android PanelPresents the devices (emulators and physical devices) connected to your system, and allows you to view the logcat output, filter the output, and view ADB logs. Messages PanelHere you’ll find any important messages that the IDE presents, such as compilation errors. TODO PanelShows all the TODO comments sprinkled throughout your project’s code. Find Results PanelHere you can examine the results of any find command that you execute. Gradle PanelIf you’re utilizing the new Gradle build system, you can find the tools necessary to interact with Gradle here. Event Log PanelAt times, the Android Studio IDE may encounter an unexpected error or have important events that need to be visible to you, the developer. This panel will show you these events.

PanelDescription Project PanelAllows you to navigate through the file hierarchy of your project and select, open, edit, and perform various other actions on your files. File EditorThe main editing window in Android Studio. This is where you write your code. The final area, which is of utmost importance, is the status bar at the bottom of Android Studio This is where the majority of status updates will occur when background processes run. Some of these background processes include updating indices on the files or Gradle background processing, and event errors. The rightmost box shows the IDE’s memory usage.

The default toolbar in Android Studio Tools in the default toolbar Tool Description File Actions Actions such as Open, Save, and synchronize. Undo/Redo Undo and redo the previous action. Cut/Copy/Paste Quickly cut, copy, and paste from the toolbar.

Navigation shortcuts are used for navigating around your code base at the speed of light.

An example of the Android folder structure in Android Studio

Running and Debugging an Android Project When you’re ready to deploy your app to a device or an emulator to test and/or debug it you can easily do so with Android Studio. The three various methods for this are Run, Debug, and “Attach Debugger to Android Process.” All three of these commands are available via the Run menu or the main toolbar in Android Studio Run menu The toolbar run action

Creating New Android Components A very common task during Android development is to create new components for the app. You can quickly accomplish this in Android Studio by right-clicking on the package name and selecting New → Android Component Or Ctrl + N on Windows\Linux while your package name is highlighted in the src directory.

Layout Designer and Layout Preview Android Studio ships with two graphical tools to help you lay out your user interface: Layout Designer and Layout Preview. Layout Designer lets you arrange Views on the screen by dragging and dropping. Layout Preview lets you see how your screen looks while you are editing your XML resources.

Layout Designer When you first open an Android layout file, you’ll see the Android designer with the Design tab selected

Android Studio’s Layout Designer allows you to easily drag and drop controls onto the layout surface to quickly create a prototype of the layout that you need. Select one of the controls from the palette and drag it to the layout. Once the control is in place, you can edit the various properties of the control by selecting the control and editing the properties on the right. To view the XML of a particular control, simply select it in the designer and click Ctrl + B on Windows\Linux. In Layout Designer, you can select various devices to emulate, themes, API levels, and orientations.

Layout Preview As soon as you enter the XML layout, you will notice that the control palette, component tree, property editor, and drag-and-drop designer are gone and replaced with a slew of XML code and a layout preview. The preview shown here is the Layout Preview tool. You can turn this panel on and off by selecting the Preview button on the right side of the screen. This panel is shown only when the XML editor is in use. The Layout Preview will update any time you make changes to the layout XML. As an example, if you change a TextView or Button to a bold font style, the Layout Preview will show the bolded text.

what is an an APK? Generating an APK