Android Hello World 1. Click on Start and type eclipse into the textbox 2.

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.
© by Pearson Education, Inc. All Rights Reserved. continued …
Hello world Follow steps under the sections “Create an AVD” and “Create a New Android Project” at
1 Mobile Computing Mobile First (formerly Worklight) Copyright 2015 by Janson Industries.
Android: Hello World Frank Xu Gannon University. Steps Configuration ▫Android SDK ▫Android Development Tools (ADT)  Eclipse plug-in ▫Android SDK and.
Using the File Manager WebCT 6. Understanding File Manager The File Manager is the area where all course files are stored. Whenever you link a file in.
ANDROID PROGRAMMING MODULE 1 – GETTING STARTED
How to make it work? Doncho Minkov Telerik Academy academy.telerik.com Technical Trainer
SET UP COMPUTER ** PLEASE BE AWARE SCREENSHOTS MAY NOT MATCH **
Android Development (Basics)
JavaScript “Hello World” in Microsoft Visual Studio August 2012.
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.
Getting Started with Android Programming Note: if you have already installed android development tools, please check that you have the same version as.
This example is a step by step walkthrough for installing the SRH Front Desk Printer in Windows 8.
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.
Better reference the original webpage :
Mobile Programming Lecture 1 Getting Started. Today's Agenda About the Eclipse IDE Hello, World! Project Android Project Structure Intro to Activities,
Android Boot Camp for Developers Using Java, Comprehensive: A Guide to Creating Your First Android Apps Chapter 9: Customize! Navigating with a Master/Detail.
Visual Basic 2008 Express Edition The IDE. Visual Basic 2008 Express The Start Page Recent Projects Open an existing project Create a New Project.
SQL Maestro Hello World IQ Associates. Contents Initial setup Hello World.
1 Mobile Computing Set Up Copyright 2015 by Janson Industries.
Chapter 1a© copyright Janson Industries RAD ▮ Explain Eclipse, RAD, and their relationship ▮ Basic RAD concepts ▮ How to install RAD ▮ How to import.
Hello world Follow steps under the sections “Create an AVD” and “Create a New Android Project” at
Chapter 2: Simplify! The Android User Interface
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.
Chapter 5 Creating User Interfaces GOALS and OBJECTIVES Begin our application by creating our user interface. More than one way to create a user interface.
Go to the Roseville City School District Website and pull down the Employees menu. Then click Online Services. Scroll down until you see Global Scholar-
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.
Chapter 2 The Android User Interface. Objectives  In this chapter, you learn to:  Develop a user interface using the TextView, ImageView, and Button.
INTRODUCTION TO ANDROID. Slide 2 Application Components An Android application is made of up one or more of the following components Activities We will.
Windows Tutorial Common Objects ACOS: 1, 4. Using the Taskbar 1. Using the taskbar, you can switch between open programs and between open documents within.
Android Boot Camp for Developers Using Java, 3E
Project Deployment IT [211 CAP] How to convert your project to a full application.
Android Boot Camp for Developers Using Java, Comprehensive: A Guide to Creating Your First Android Apps Chapter 2: Simplify! The Android User Interface.
Review of last session Add text to your website Add text to your website Title Title Paragraph Paragraph Title and paragraph Title and paragraph Add photographs.
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.
Liferay Installation Prepared by: Do Xuan Hai 8 August 2011.
First Venture into the Android World Chapter 1 Part 2.
Android Boot Camp Demo Application – Part 1. Development Environment Set Up Download and install Java Development Kit (JDK) Download and unzip Android.
Android 2: A First Project Kirk Scott Creating a New, Example Android Application Project in Eclipse 2.2 Creating a Virtual Device, an Emulator.
HW#9 Clues CSCI 571 Fall, HW#9 Prototype
Copyright 2007, Information Builders. Slide 1 Flex your Dashboard Muscle with WebFOCUS Flex Enable John Gogoly Senior Systems Engineer June, 2008.
ANDROID APPLICATION DEVELOPMENT. ANDROID DEVELOPMENT DEVELOPER.ANDROID.COM/INDEX.HTML THE OFFICIAL SITE FOR ANDROID DEVELOPERS. PROVIDES THE ANDROID SDK.
If you don’t have Google Earth downloaded already, you can go to to get it.
1 After completing this lesson, you will be able to: Use a Word template. Create a template. Use a wizard to create a document.
Using CVUSD Print Center Desktop Printer Chino Valley Unified School District.
INTRODUCTION TO ANDROID. Slide 2 Introduction I take a top-down approach to describing an application’s anatomy.
Android apps development - Eclipse, Android SDK, and ADT plugin Introduction of.
Day 1 Session 2. Setup & Installation
Chapter 2: Simplify! The Android User Interface
Visual Studio 2010 Hello World CSC 230.
Installing Citrix Receiver
ATS Application Programming: Java Programming
Mobile Application Development Chapter 3 [Using Eclipse Android Studio for Android Development] IT448-Fall 2017 IT448- Fall2017.
Eclipse Navigation & Usage.
JavaScript “Hello World” in Microsoft Visual Studio 2012
INTRODUCTION TO ADOBE ILLUSTRATOR
Visual Studio 2010 Hello World CSC 230.
Android Studio Hello World
Android Developer Fundamentals V2 Lesson 1
Software Setup & Validation
Working with Libraries
CA16R405 - Mobile Application Development (Theory)
Presentation transcript:

Android Hello World 1

Click on Start and type eclipse into the textbox 2

You can right click on the icon and choose Pin to Start Menu for easier access later 3

Click on the icon, you will be prompted to choose a workspace (where your programs will go). You can make your choice the default. Click OK. 4

Your first time on a machine, you will prompted to designate the location of the Android SDK in preferences 5

Click on Browse, choose Computer/C:/Android- sdks 6

Click Apply and OK. 7

Start a new Project Method 1: File/New/Android Application Project 8

Start a new Project Method 2: File/New/Project, then in the dialog choose Android/Android Application Project 9

Fill in the fields of the dialog: Application Name, Project Name, Package Name. For now I made the Minimum Required SDK and Target SDK the same. Click Next. 10

Accept defaults on next few dialogs. Next. Next. 11

More dialogs. Next. Finish. 12

Click on the resource (res) folder, the layout folder, the activity_main.xml file. Then click on the Graphical Layout tab to see what the “screen” will look like 13

Click on Window/Android Virtual Device Manager 14

Click New …. 15

Supply a name, choose a device to emulate, a target version of Android and a CPU (typically Atom or ARM). Click OK. If an option you wanted is missing. You may need to go to Windows/Android SDK Manager and download it. After that you should probably restart Eclipse. 16

Click on the drop-down arrow next to the green Run as arrow. Choose Run Configuration 17

Double click on Android Application on the left panel. Then click on Browse to choose the project to run 18

Then click on the Target tab and choose the AVD to use for the emulation. Click Apply and Run. 19

The emulator starting – this sometimes takes a long time! 20

Emulated Hello World project 21

Drag a Button onto the layout 22

Click on the activity_main.xml tab to see the effect in XML code 23

Return to Graphical Layout and change the id and the Text in the Properties area 24

Drag a TextView from the Form Widgets onto the layout 25

Change the id and Text in the Properties area 26

Expand src and the package, click on MainActivityJava. Also click on the MainActivity.java tab at the top 27

Click on the Save All icon 28

Inside the onCreate method in the MainActivity class add the line of code Button btnClickMe = (Button) findViewById(id.btnClickMe) 29

Place the mouse over the red squiggly underlined Button and choose Import Button 30

Expand the Imports to see the result 31

Associate an setOnClickListener with the Button. Type btnClickMe.setOnClickListener(new OnClickListener(){ }); 32 This action causes two problems. The first is cured by another import – This time import android.view.View.OnClickListener I had trouble choosing the Import from the list and just ended up Typing it in up in the Import area

The second problem is cured by adding the unimplemented onClick method 33

Put the code you want executed when the user clicks the button inside the onClick method 34

Set up a TextView (including declaring and casting). Note the need to Import. 35

Add line to change the text 36

Sometimes the project does not seem to open up right away. Drag the lock, click OK, expand the menu 37

Click OK. Click on project icon. 38

Before and after the click 39