Ch 14. Understanding an App’s Architecture Two perspectives 1.Programmer: a)Components & Behaviour b)Designed in Component designer Blocks editor 2.End-user:

Slides:



Advertisements
Similar presentations
Understanding an Apps Architecture ASFA Computer Science: Principles Fall 2013.
Advertisements

Programming with App Inventor Computing Institute for K-12 Teachers Summer 2012 Workshop.
Driving Test 1 Marking Scheme Focus on five areas to pass driving test 1.
VISUAL BASIC Visual Basic is derived from the Basic language (Beginner’s All-Purpose Symbolic Instruction Code) Visual Basic uses an event-driven programming.
When is Orientated Programming NOT? Mike Fitzpatrick.
Microsoft® Small Basic
Introduction to Visual Basic.NET Uploaded By: M.Sheraz anjum.
Android architecture overview 1 CS 150. Android  A software stack for mobile devices developed and managed by Open Handset Alliance  Free software under.
Chapter 2. Paint Pot We will build the Paint Pot app in class. Notes regarding the screen/user interface: 1.7 buttons and a canvas 2.The canvas has a picture.
靜宜大學資管系 楊子青 1 Programming Your App’s Memory 靜宜大學資管系 楊子青
App Inventor Barb Ericson July 3, 2013.
Creating Mobile Apps with App Inventor! Day 4 Google search Kris Gordon Ludlow for links.
Visual Basic Project Files:.VBP file: Project File: a small text file that contains the names of other files in the project, as well as some information.
CA 121 Intro to Programming Tariq Aziz and Kevin Jones GUI Programming in Visual Studio.NET Chapter 1 Tariq Aziz and Kevin Jones.
Visual Basic Project Files:.VBP file: Project File: a small text file that contains the names of other files in the project, as well as some information.
A Guide to Oracle9i1 Creating an Integrated Database Application Chapter 8.
Compunet Corporation Programming with Visual Basic.NET GUI Week # 11 Tariq Ibn Aziz.
Introduction to AppInventor Dr. José M. Reyes Álamo.
Programing App Inventor. Variable Declaration App Inventor: Declare Variables using the “Define Variable As” Block – Find the Blocks Editor (top-left),
1 Introduction to Human Computer Interaction  Livecode Overview  Based on Livecode User Guide from RunRev Ltd. (2010) 
CS0004: Introduction to Programming Events. Review  Event Procedure  A set of instructions to be executed when a certain event happens.  Many event-driven.
Slide 1 Chapter 2 Visual Basic Interface. Slide 2 Chapter 2 Windows GUI  A GUI is a graphical user interface.  The interface is what appears on the.
Creating Mobile Apps with App Inventor! Day 5 Google search Kris Gordon Ludlow for links.
Visual Basic Fundamental Concepts. Integrated Development Enviroment Generates startup form for new project on which to place controls. Features toolbox.
Visual Basic Chapter 1 Mr. Wangler.
ACS-1805 Introduction to Programming 1805 introduces students to programming using technology for creating programs that run on Android devices. Android:
CS 104 October 26, 2011 App Inventor. Agenda Discuss guest speakers Discuss quiz Finish Paint Pot Discuss concepts from Chapters 2 & 3 Mole Mash (if time.
Android, where is my car? Summary. This is the just the summary of topic after it was taught in the lecture class. The LocationSensor component can report.
XP New Perspectives on Microsoft Office Access 2003 Tutorial 11 1 Microsoft Office Access 2003 Tutorial 11 – Using and Writing Visual Basic for Applications.
© 2006 Lawrenceville Press Slide 1 Chapter 3 Visual Basic Interface.
Chapter 3 Introducing Visual Basic.NET. 3.1 Visual Basic.NET Windows Programming -Used to create Windows, Web, and Console applications -Uses predefined.
Section 17.1 Add an audio file using HTML Create a form using HTML Add text boxes using HTML Add radio buttons and check boxes using HTML Add a pull-down.
Learning objectives By the end of this lecture you should be able to:  have a well-earned rest! Ch 24 Beyond the second semester.
App Inventor MIT App Inventor.
Lecture # 6 Forms, Widgets and Event Handling. Today Questions: From notes/reading/life? Share Personal Web Page (if not too personal) 1.Introduce: How.
 Application – another name for a program.  Interface – is what appears on the screen when the application is running.  Program Code – is instructions.
Android Boot Camp for Developers Using Java, 3E
University of Sunderland CIF 102/FIF102 Fundamentals of DatabasesUnit 15 Programming in Microsoft Access using VBA Using VBA to add functionality.
Programming with Visual C++: Concepts and Projects Chapter 2B: Reading, Processing and Displaying Data (Tutorial)
HTML Form Widgets. Review: HTML Forms HTML forms are used to create web pages that accept user input Forms allow the user to communicate information back.
Vocabulary in VB So Far. Assignment: Used to change the value of an object at run time Used to change the value of an object at run time.
What is Programming? Computer programming is about telling the computer what it is we want it to do We tell the computer what we want it to do by sending.
Chapter 2: Variables, Functions, Objects, and Events JavaScript - Introductory.
PROGRAMMING IN VISUAL BASIC.NET VISUAL BASIC PROGRAMMING FUNDAMENTALS Bilal Munir Mughal 1 Chapter-8.
Copyright © 2010 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Starting Out with Programming Logic & Design Second Edition by Tony Gaddis.
1.
Variables, operators, canvas, and multimedia Dr. José M. Reyes Álamo.
Visual Basic for Application - Microsoft Access 2003 Programming applications using Objects.
Clearly Visual Basic: Programming with Visual Basic 2008 Chapter 13 How Long Can This Go On?
Programming Logic and Design Fourth Edition, Comprehensive Chapter 14 Event-Driven Programming with Graphical User Interfaces.
JavaScript Events Java 4 Understanding Events Events add interactivity between the web page and the user You can think of an event as a trigger that.
JavaScript Events. Understanding Events Events add interactivity between the web page and the user Events add interactivity between the web page and the.
Microsoft Visual Basic 2012: Reloaded Fifth Edition Chapter One An Introduction to Visual Basic 2012.
Lesson 1 – Getting Started with App Inventor
App Inventor Chapter 17 – Creating Animated Apps.
Introduction to Programming and App Inventor. Introduction What is a computer program? Introducing App Inventor Getting hands on with App Inventor.
Introduction to Event-Driven Programming
Chapter Topics 15.1 Graphical User Interfaces
Visual Programming week # 02 APP (Application) Architecture.
week # 03 Visual Programming Variables Canvas Screen Arrangement
Understanding an App’s Architecture
Lesson 1: Buttons and Events – 12/18
Chapter 16 – Programming your App’s Memory
Chapter 2 Visual Basic Interface
Understanding an App’s Architecture
Algorithms Take a look at the worksheet. What do we already know, and what will we have to learn in this term?
Introduction to AppInventor
Chapter 15: GUI Applications & Event-Driven Programming
Programming Lists of Data 靜宜大學資管系 楊子青
Presentation transcript:

Ch 14. Understanding an App’s Architecture Two perspectives 1.Programmer: a)Components & Behaviour b)Designed in Component designer Blocks editor 2.End-user: How do I use the app?

Fig Internal architecture of an App Inventor app

Ch 14. Understanding an App’s Architecture Components Visible & Non-visible Visible components You can see these when the app is launched e.g. buttons, text boxes, and labels. i.e. make up the app’s user interface. Non-visible components Not part of the user interface. These provide access to built-in functionality of the device Texting component sends SMS texts LocationSensor determines the device’s location TextToSpeech component talks Both visible and non-visible components have properties - memory slots for storing information about the component. What are the properties of a button? Of a canvas? …

Ch 14. Understanding an App’s Architecture Behaviour Behavior defines how the app responds to events - user initiated or external Events and responses Many programs are written as event handlers. When developing an app we need to determine each event the app will respond to and the nature of that response. Events can be internally or externally generated Internal: When the user clicks a button do … External: When a text message is received do … Apps written from the event/response perspective are different from the traditional way of considering a program as an algorithm or recipe.

Ch 14. Understanding an App’s Architecture Behaviour Events and event handlers From Paint Pot: From Hello Purr:

Ch 14. Understanding an App’s Architecture Behaviour Events and event handlers When event X occurs Do: ……………… The programmer must determine the response – the sequence of statements to be executed

Ch 14. Understanding an App’s Architecture Behaviour Example. Consider the example TalkToMe (get it here)here The Talk To Me app tells the user what to do … the user types a line of text and the app speaks those words. The app responds to two events: When the screen is initialized (when the app is loaded/started) … When the button is pressed/clicked …

Ch 14. Understanding an App’s Architecture Event types Event type Example User-initiated event When the user clicks button1, do… Initialization event When the app launches, do… Timer event When 20 milliseconds passes, do… Animation event When two objects collide, do… External event When the phone receives a text, do…

Ch 14. Understanding an App’s Architecture Responses (in particular pages 225/226) Conditional blocks Statements are not necessarily executed in a linear sequence (sequentially) A test can be performed to select one of two paths of execution If the line of text contains the word “Red” then the line will be displayed in red Otherwise the line will be displayed in black.

Ch 14. Understanding an App’s Architecture Foreach block Blocks of statements can be repeated … to get a list of names into a text box This line is executed 3 times

Ch 14. Understanding an App’s Architecture Variables Apps can define variables which hold named values. values can be stored for later user values can be updated/changed Example from Paint Pot dotSize variable dotSize is given an initial value & the value of dotSize can be changed The value of a variable can be changed when the app is executing … we used a set statement (also called an assignment statement) for this purpose If a value needs to be kept across executions of an app we use a database for that purpose … chapters 10, 11, 22