MIT AppInventor: Creazione di App su Android

Slides:



Advertisements
Presentazioni simili
Primary Italian Saying How You Are.
Advertisements

Trieste, 26 novembre © 2005 – Renato Lukač Using OSS in Slovenian High Schools doc. dr. Renato Lukač LinuxDay Trieste.
Sfogliandomi… Viaggio tra me e me alla scoperta dellaltro… A travel between me and myself discovering the other…
L’esperienza di un valutatore nell’ambito del VII FP Valter Sergo
Cache Memory Prof. G. Nicosia University of Catania
Teoria e Tecniche del Riconoscimento
1 Teaching Cloud Computing and Windows Azure in Academia Domenico Talia UNIVERSITA DELLA CALABRIA & ICAR-CNR Italy Faculty Days 2010.
Italiano Da quando siamo passati al corso di metallurgia (3^o ) abbiamo cominciato a lavorare utilizzando i maniera didattica tecnologie di tipo hardware.
Each student will be able to ask an adult or stranger: What do you like to do? and What dont you like to …?
Interrogativi Asking and answering questions in italiano.
1.E un algoritmo ricorsivo: Tutti le istanze di oggetti raggiungibili da un oggetto persistente diventano anchessi persistenti.
© and ® 2011 Vista Higher Learning, Inc.4B.1-1 Punto di partenza Italian uses two principal tenses to talk about events in the past: the passato prossimo.
Sta andando meglio? oppure ti senti uguale? Is it getting better? Or do you feel the same?
Che ore è? Che ore Sono?.
Punto di partenza Reciprocal verbs are reflexives that express a shared or reciprocal action between two or more people or things. In English we often.
Microsoft Robotics Studio Marco Petrucco Microsoft Student Partner - Udine.
Raffaele Cirullo Head of New Media Seconda Giornata italiana della statistica Aziende e bigdata.
J0 1 Marco Ronchetti - Corso di Formazione Sodalia – Febbraio 2001 – Modulo Web Programming Tomcat configuration.
Capitolo 5 adding images to your web pages. 2 JPEG.
Biometry to enhance smart card security (MOC using TOC protocol)
Costruzione di Interfacce Lezione 10 Dal Java al C++ parte 1
TIPOLOGIA DELLE VARIABILI SPERIMENTALI: Variabili nominali Variabili quantali Variabili semi-quantitative Variabili quantitative.
1. Conoscere luso delle collezioni in Java Comprendere le principali caratteristiche nelle varie classi di Collection disponibili Saper individuare quali.
2000 Prentice Hall, Inc. All rights reserved. 1 Capitolo 3 - Functions Outline 3.1Introduction 3.2Program Components in C++ 3.3Math Library Functions 3.4Functions.
Chistmas is the most loved holiday of the years. Adults and children look forward to Chistmas and its magical atmosphere. It is traditional to decorate.
Players: 3 to 10, or teams. Aim of the game: find a name, starting with a specific letter, for each category. You need: internet connection laptop.
realizzazione app per Google Android OS
Che cosa ti metti per…? Obiettivo: To be able to say what you wear for different occasions using the verb mettersi correctly venerdì il 20 settembre.
© 2008 WS (WebScience srl) – All rights reserved WS Tech workshop Software Construction.
TELEFONO CELLULLARE E SACRA BIBBIA CELLULAR PHONE AND HOLY BIBLE.
Project Review byNight byNight December 6th, 2011.
Guardate le seguenti due frasi:
MARCO PALLADINO RENZO YAKAR PROFESORESSA PM ITALIANO 1 CPA ORA 5 LUNEDÌ, IL SEIDICI DICEMBRE.
Funzioni stringhe. chr Restituisce il carattere di un valore ascii dato. Per vedere lelenco dei codici ascii clicca QQQQ uuuu iiiiEsempio
Enzo Anselmo Ferrari By Giovanni Amicucci. Di Enzo Questo è Enzo Anselmo Ferrari. Enzo compleanno è diciotto febbraio Enzo muore è quattordici agosto.
Project Review Novembrer 17th, Project Review Agenda: Project goals User stories – use cases – scenarios Project plan summary Status as of November.
Project Review Novembrer 17th, Project Review Agenda: Project goals User stories – use cases – scenarios Project plan summary Status as of November.
FOR EVERY CALLOUT THAT YOU WILL SEE IN ENGLISH PROVIDE (IN WRITING) THE CORRECT ITALIAN SENTENCE OR EXPRESSION. REMEMBER TO LOOK AT THE VERBS AND PAY.
1 2 3 Il nome del Voki ________________ Città _______________ Lavoro _______________ Interessi __________________ Il nome del Voki ________________ Città
BY: ERIC B. Italian Fashion Project. Italian And American clothing brands are different in many ways In this presentation, I am going to explore the similarities.
Analysis and Development of Functions in REST Logic: Application to the «DataView» Web App UNIVERSITA’ DEGLI STUDI DI MODENA E REGGIO EMILIA DIPARTIMENTO.
Collection & Generics in Java
The Beatles. Love, love, Love. Love, Love, Love. Love, Love, Love. There's nothing you can do that can't be done. Nothing you can sing that can't be sung.
Teorie e tecniche della Comunicazione di massa Lezione 7 – 14 maggio 2014.
You’ve got a friend in me!
Canta: Daniele Falaschi
Passato Prossimo. What is it?  Passato Prossimo is a past tense and it is equivalent to our:  “ed” as in she studied  Or “has” + “ed” as in she has.
Italian 1 -- Capitolo 2 -- Strutture
Dynamic SQL.
CESANELLA PRIMARY SCHOOL SENIGALLIA - ITALY PLAYGROUND GAMES ELASTIC -ELASTIC -ELASTIC -ELASTIC -ELASTIC - ELASTIC - ELASTIC - ELASTIC - ELASTIC - ELASTIC.
Well and Truly by Roni Horn. Mind map Artist’s name Techniques Life Groupworks Artworks My opinion Her message My artwork inspiried by…
The food Pyramid The breakfast. Food pyramid gives us instructions on how to eat well and stay healthy!!!
Buon giorno Io sono Professoressa Kachmar. Buon giorno Io sono Professoressa Kachmar.
I giorni della settimana
PINK FLOYD DOGS You gotta be crazy, you gotta have a real need. You gotta sleep on your toes. And when you're on the street. You gotta be able to pick.
MyEconLab_Univerità degli studi di Milano, corso Prof.ssa Valentina Raimondi How to Access MyEconLab 1.
MyEconLab_Univerità degli studi di Milano, corso Prof.ssa Valentina Raimondi How to Access MyEconLab 1.
MSc in Communication Sciences Program in Technologies for Human Communication Davide Eynard Facoltà di scienze della comunicazione Università della.
What time does the plane leave? At 12:45 1.
Do You Want To Pass Actual Exam in 1 st Attempt?.
FRATRUM MINORUM CAPUCCINORUM
Jobs and occupations What do they do?
AusTel by taha.a.
Cyber Safety.
2018/9/ /9/11 USER ENVIRONMENT 1 1.
giovedì, 12 ottobre matrimonio o convivenza?
Layout titolo Sottotitolo.
The Behavioral Insight Team
Directions: Create six trading cards related to the Muslim Empire
Transcript della presentazione:

MIT AppInventor: Creazione di App su Android Fabio Massimo Zanzotto

Cosa vedremo nelle lezioni Sfida: Creazione di App su Android Mattoni base Algoritmo, modello per risolvere problemi Rappresentazione dell’informazione Architettura del calcolatore Costruzioni sovrastanti Sistema operativo Reti di calcolatori e WWW Programmi applicativi

Una lezione: Hands On (mani in pasta) Alcune slides sono una traduzione presa da App Inventor, Barb Ericson (presentazione)

MIT’s AppInventor: Storia Rilasciato 15 Dicembre 2010 da Google Basato su esperienza precedenti di educazione alla programmazione Seymour Papert – Logo and constructionism Usa la libreria Open Blocks Java del MIT E’ simile a Scratch del MIT E’ stato preso in casa dall’MIT il 1 Gennaio 2012 You will need to download your projects to your machine before Dec 31, 2011. You can do this from the "My Projects" page.

MIT’s AppInventor: Che cos’è? Piattaforma gratuita per lo sviluppo di apps per Google Android OS Tutti i dati sono su un server remoto (Cloud computing) La piattaforma è composta da due parti: Designer (progettatore): dove si può produrre l’interfaccia dell’app e si possono aggiungere i componenti visibili e non visibili (non-visible components) Blocks Editor (programmatore): dove si può descrivere il comportamento dei componenti

MIT’s App Inventor

Designer Funziona come una applicazione web (evitare IE) In IE you may have to set the width and height for a picture to get it to correctly show.

Parti del Designer Palette Visible and non-visible components Viewer Mostra l’interfaccia attuale dell'app Components Nomi e gerarchia dei componenti Properties Descrive e controlla le proprietà dei componenti

Blocks Editor Lavora utilizzando il Java Locale ma lavora sulla cloud Avvia un emulatore Connette all’emulatore o al cellulare Sposta i blocchi Prendere i blocchi da qui

Apprendere App Inventor http://appinventor.mit.edu/explore/learn.html Come cominciare Cosa istallare http://beta.appinventor.mit.edu/learn/setup/index.html Install Java 6 or above Install the App Inventor Setup Software Install phone drivers if you want to use phones Setup your phone Apprendere App Inventor http://appinventor.mit.edu/explore/learn.html Fare Login al sito (con un google account) http://beta.appinventor.mit.edu/

Creare un nuovo progetto Click sul bottone New Scivere il nome del progetto (senza spazi) Il nome del Progetto diventa il nome dell’app "Cowbell"

Come mettere un bottone con una immagine Drag out a Button from the Basic palette and drop it on Screen1 In the properties area Set the image click on None under Image. Click on Add and an Upload File window will appear Click on Browse and find the "cowbell.gif" file Then click OK Remove the default text Set the width and height if needed On some browsers c c

Comportamento per eventi Block Editor Controllare il comportamento dei componenti Abbiamo a disposizione per ogni componente dei pezzi di puzzle Comportamento per eventi Nome Componte Evento

Block Editor Azioni sui componenti Nome Componte Azione Sotto Azione

Block Editor Azioni sulle proprietà dei componenti Nome Componte Valore Finale Azione Proprietà

Block Editor Valori finali

Block Editor Combinazione dei pezzi di puzzle

Creiamo la prima app Cambiatore di colore per un pulsante

Block editor Le variabili: un posto dove mettere i valori Azioni sulle variabili: Usa il valore Metti un valore

Seconda App Costruiamo una app che gonfia un palloncino pigiando un bottone

Seconda App Designer: Palloncino

Seconda App Variabile Come usare la variabile per dimensionare il palloncino Come variare la variabile

Seconda App

Alcuni «modi» di dire Il «modo di dire» se…allora…altrimenti

Terza App Palloncino che se si gonfia troppo scoppia e ritorna piccolo

Terza App

Come mettere un suono Drag out a Sound from the Media palette It isn't visible on the screen but will be shown in the Non-visible components Click on None under the Source property Click on Add Click on Browse and find "cowbell.wav" Click on OK

Current User Interface

Bring up the Blocks Editor Click on the Open the Blocks Editor button This will download the Java Web Start file Depending on the browser you may have to click on Save and then click on the downloaded file or click on Open

Adding an Event Handler An event handler responds when an event occurs Like when a button is clicked Click on My Blocks > Button1 Drag out a when Button1.Click block and drop it in the center area

Playing the Sound Click on MyBlocks > Sound1 Drag out a call Sound1.Play block and drop it inside the when Button1.Click When you click the button the sound will play

Showing the App on the Emulator Click on the New emulator button in the Blocks Editor Wait for the emulator Wait till it looks like a phone (several minutes) Unlock by clicking on the lock and dragging to the right Click on Connect to Device and select the emulator The app will download to the emulator and show The emulator has limited capability. You can't use the accelerometer, camera, GPS, or send or receive text messages with it. The emulator can display images, play sounds, detect touch (click) and drag (click and drag).

Downloading to Phone Connect the phone with the USB cable The first time you may have to install device drivers http://www.appinventorbeta.com/learn/setup/ Click on Connect to Device Click on the phone id

Play Sound While Shaking Phone In the Designer drag out an AccelerometerSensor from the Sensors palette It will show under Non-visible components In the Blocks Editor click on My Blocks > AccelerometerSensor1 and drag out a when AccelerometerSensor1.Shaking Add a call Sound1.Play from MyBlocks > Sound1 This will not work on the emulator, just on the phone.

Other Ideas Set the screen orientation property on Screen1 to portrait So it won't switch to landscape when you shake the phone Create a similar app with a different image and sound Like a picture of hands clapping and a clapping sound for people with one hand. Create several buttons with small images and associated sounds

Package for Phone Your app will work as long as the phone is connected To have your app work after you disconnect the phone In the Designer click on Package for Phone Click Download to Connected Phone

Sharing an App with Others In Designer Click Package for Phone Click Download to this Computer This will download a file ending in .apk to your computer Upload the file to the web and tell others the url They can use their phone's browser to go to the url and download the app They will need to allow Unknown Sources in the Application settings on their phone

Sharing a Project with Others Go to My Projects Check the app to share Click on "More Actions" and then "Download Source" This will download a file to your computer that ends in .zip Others can click on "More Actions" and "Upload Source" to get project

Computing Concepts Event driven programming Variables Conditionals Random Numbers Procedures and parameters Creating your own blocks Lists Iteration (Loops) Recursion User Interfaces Model, View, Controller

What else can you do? Create games Image sprites – collision detection, timers Use the camera and then draw on the picture Canvas Create a quiz Using lists Automatically respond to text messages Use text-to-speech to read a message Store data on the phone Use the GPS to remember where your car is Open Google maps to a particular URI Play notes and record what you play Create a list of people to automatically text Create a remote control for your LEGO NXT robot Use a barcode scanner and get info from websites with web data APIs

Tips and Techniques You can copy and paste a set of blocks Control C and V on windows You can just type a number or Boolean value The correct block will be created When you right click on a block you can: Add a comment Deactivate a block Watch a variable Execute a block immediately

Resources Our distance learning site Official tutorials College course http://ice-web.cc.gatech.edu/dl/ Official tutorials http://beta.appinventor.mit.edu/learn/tutorials/index.html College course http://turing.cs.trincoll.edu/~ram/cpsc110/schedule.html On-line draft of a book and example code http://www.appinventor.org/in-1 http://examples.oreilly.com/0636920016632/