Android 3: Exploring Apps and the Development Environment

Slides:



Advertisements
Similar presentations
Basic Computer Skills Windows & the Internet.
Advertisements

Possible Windows 8 Improvements By: Scott Hill. Improve Windows 8 Split Screen Mode The only options for split screen mode currently is to have one screen.
Windows Basics An Introduction to the Windows Operating System.
PowerPoint Presentations
Android 1: Seminar Background for King Naresuan University Kirk Scott 1.
All About Android Introduction to Android 1. Creating a New App “These aren’t the droids we’re looking for.” Obi-wan Kenobi 1. Bring up Eclipse. 2. Click.
How to Take a Screenshot By Ashley Hudson Screenshot of this screen 
Android 4: Creating Contents Kirk Scott 1. Outline 4.1 Planning Contents 4.2 GIMP and Free Sound Recorder 4.3 Using FlashCardMaker to Create an XML File.
Android 2: A First Project Kirk Scott Creating a New, Example Android Application Project in Eclipse 2.2 Creating a Virtual Device, an Emulator.
Android 2: Introduction to the Technology Kirk Scott 1.
Android 6: Testing and Running the App Kirk Scott 1.
Hello world Follow steps under the sections “Create an AVD” and “Create a New Android Project” at
MICROSOFT WORD GETTING STARTED WITH WORD. CONTENTS 1.STARTING THE PROGRAMSTARTING THE PROGRAM 2.BASIC TEXT EDITINGBASIC TEXT EDITING 3.SAVING A DOCUMENTSAVING.
Lehigh University Introduction to Flash MX Sharmeen Mecklai.
IE 411/511: Visual Programming for Industrial Applications
CIS 205—Web Design & Development Dreamweaver Chapter 1.
© 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.
Fall 2005 Using FrontPage to Enhance Blackboard - Darek Sady1 Using FrontPage to Enhance Blackboard 1.Introduction 2.Starting FrontPage 3.Creating Documents.
Android 3: Exploring Apps and the Development Environment Kirk Scott 1.
Liang, Introduction to Java Programming, Eighth Edition, (c) 2011 Pearson Education, Inc. All rights reserved Introduction to Android (Part.
Unit 1: Java and Eclipse The Eclipse Development Environment.
Android Hello World 1. Click on Start and type eclipse into the textbox 2.
Creating an Example Android App in Android Studio Activity lifecycle & UI Resources.
Using Windows Explorer Windows explorer is different from Internet Explorer It is a Windows program designed to let you explore your hard drive and manage.
Android 3: Exploring Apps and the Development Environment Kirk Scott 1.
1 Object-Oriented Programming (Java), Unit 24 Stand In Final Project Description Kirk Scott.
Game Maker – Getting Started What is Game Maker?.
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.
How to Create a PowerPoint Presentation Mrs. Leah Craft University of Mississippi NMGK-8.
Windows 10 R. Craig Collins ©2015 WINDOWS CRASH COURSE.
Know your computer Make a Folder Copy from Word to Composer Format the Font Change the Alignment Format the Background Format the Colors Insert a Picture.
Getting to Know Your Desktop Icons, Taskbar, Workspace, Window, Notifications, Start and Search.
Intoduction to Andriod studio Environment With a hello world program.
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.
Today We Will Review: Operating Systems (Windows) (week 3 & 4) Starting up MS Windows Desktop and its contents Functions of the desktop components Brain.
INTRODUCTION TO ANDROID. Slide 2 Introduction I take a top-down approach to describing an application’s anatomy.
Fundamentals of Windows Mouse n 4 Basic Operations: –Pointing –Clicking –Double Clicking –Dragging.
1.5 File Management.
Android 3: Exploring Apps and the Development Environment
Appendix A Barb Ericson Georgia Institute of Technology May 2006
Chapter 2: The Visual Studio .NET Development Environment
Learning the Basics – Lesson 1
An Introduction to Computers and Visual Basic
Android 11: The Calculator Assignment
New Perspectives on Microsoft Windows 10
MAD.
Eclipse Navigation & Usage.
Introducing… Microsoft Windows7
1. Introduction to Visual Basic
Word and the Writing Process
An Introduction to Computers and Visual Basic
Office 2010 and Windows 7: Essential Concepts and Skills
Graphical User Interfaces -- Introduction
MS PowerPoint 2010 Week 2.
Introduction to Microsoft Windows
CIS 470 Mobile App Development
Chapter 2 – Introduction to the Visual Studio .NET IDE
AN INTRODUCTION TO: POWERPOINT.
Working with Headers and Footers
An Introduction to Computers and Visual Basic
Prof. Andrew W.S. Ainger BSC. CEng. FIET.
CIS 470 Mobile App Development
European Computer Driving Licence
Introduction to PowerPoint
Microsoft Office Illustrated Fundamentals
Workshop for Programming And Systems Management Teachers
An Introduction to the Windows Operating System
CIS 694/EEC 693 Android Sensor Programming
Presentation transcript:

Android 3: Exploring Apps and the Development Environment Kirk Scott

Outline 3.1 Introduction 3.2 The Project Explorer 3.3 /src/com.example.myfirstapp/ Main_Activity.java 3.4 /res/layout/activity_main.xml 3.5 /res/values/strings.xml 3.6 /res/drawable-hdpi 3.7 /res/raw 3.8 Summary

3.1 Introduction

This unit surveys some of the aspects of an Android app Its main purpose is to survey how you can find these aspects of an app through the Eclipse project explorer interface Later on, it will be necessary to do certain things through that interface

Recall that the preceding set of overheads ended with the assumption that Java and Eclipse had been installed on a development machine, a pc or a laptop This set of overheads considers some of the things you would find in that environment

3.2 The Project Explorer

The following screen shows the Eclipse development environment with nothing open in it

In the File menu, there is an Import option This will be covered concretely in a future set of overheads For the time being note that the following overhead shows the first of the set of steps for importing an Android project into the environment

From this point on, we’ll assume that a project of interest, in this case name “My First App”, has been successfully imported This happens to be an example even simpler than the flashcard app

The screenshot on the following overhead shows My First App in Eclipse A file associated with the app, a layout, is open in the editing area The key point of interest is the Project Explorer, which is on the left hand side In the explorer, the folder containing the app has been expanded to show the items immediately underneath it

Being able to use the explorer will be critical If something has happened to cause it to disappear, you can always restore the Project Explorer Take these options in the menu: Window, Show View, Project Explorer

Expanded View of the Project in the Explorer The screenshot on the following overhead shows the subfolders in the Project Explorer expanded You expand folders and subfolders by double clicking on them with the mouse The following sections of this unit look at items of interest in these expanded folders

If all folders are expanded, not everything is visible at the bottom of the explorer Using the scroll bars you can move up and down through the explorer

3.3 /src/com.example.myfirstapp/Main_Activity.java

The screenshot on the following overhead shows what you see when you double click on Main_Activity.java in the Project Explorer This is essentially the Java source code for the app We are not interested in the code itself But later on, it will be necessary to be able to find this code when working with the flashcard app

3.4 /res/layout/activity_main.xml

The screenshot on the following overhead shows what you see when you double click on activity_main.xml under /res/layout in the Project Explorer As seen before, this is the layout of the output of the app as shown in the development environment

The layout is stored separately from the code logic But like the code logic, for our purposes, the layout is a predefined given for the flashcard app We will accept the given layout, and simply be interested in providing content to put in it

Consider the contents of the screenshot again: On the left, there is the Eclipse Project Explorer, with the folders expanded In the center, there is a view of the graphical layout of the app This visible graphical layout is defined by the file activity_main.xml

At the bottom of the editor are two tabs, one for Graphical Layout and one simply showing the name of the file, activity_main.xml Clicking on the activity_main.xml tab shows you the xml source code, as shown on the following overhead

The reason for mentioning this is just so you don’t get confused As a non-technical user of Eclipse and the interface, for one reason or another, at one time you might see a graphical layout while at another you might see an XML file Since we aren’t doing development, it doesn’t matter either way

3.5 /res/values/strings.xml

The screenshot on the following overhead shows the Project Explorer scrolled down to show /res/values/strings.xml It also shows what you see when you double click on strings.xml (Note that of the two tabs at the bottom of the editor screen, you need to be on strings.xml, not Resources, if you want to see the XML source code)

What about strings.xml? The elements in strings.xml are important because they are part of the definition of the content of an app For the flashcard app, some of the content will be predefined and saved in strings.xml

There will be no need for you to change these things Still, it seems wise to provide general background so you have some idea how and where things are defined

The kinds of things that are defined here are: The labels on buttons The name of the app as presented on the screen Sentences or phrases which will remain the same even after you have entered your specialized content for a flashcard app for a particular topic

3.6 /res/drawable-hdpi

The following overhead using the flashcard app as an example Incidentally, a layout for that app is shown in the editor screen What is important is the explorer The res/drawable-hdpi folder is expanded This folder contains the .png picture files which belong to the app

3.7 /res/raw

The following overhead using the flashcard app as an example Incidentally, a layout for that app is shown in the editor screen What is important is the explorer The res/raw folder is expanded This folder contains the .mp3 sound files which belong to the app

3.8 Summary

This is the end of the initial presentation of the components of an app that can be found in the Project Explorer High points of what can be found there: MainActivity.java, the source code activity_main.xml, the layout

strings.xml, the file containing the string resources for an app The res/drawable-hdpi folder, which contains the .png picture files for an app The res/raw folder, which contains the .mp3 sound files for the app

The End