NOAA Weather Patrick Wolfram. What it does Allows user to specify a zip code Performs HTTP GET requests on noaa.gov for the specified zip code Displays.

Slides:



Advertisements
Similar presentations
KompoZer. This is what KompoZer will look like with a blank document open. As you can see, there are a lot of icons for beginning users. But don't be.
Advertisements

Lecture 6/2/12. Forms and PHP The PHP $_GET and $_POST variables are used to retrieve information from forms, like user input When dealing with HTML forms.
Chapter 3: Engage! Android User Input, Variables, and Operations
Apache Tomcat Server – installation & use Server-side language-- use Java Server Pages Contrast Client-side languages HTML Forms Servers & Server-side.
Images By Tara Frieszell By Tara Frieszell. Adding images to your website will make it more interesting and add to the design. However, some viewers aren’t.
Computer Science 101 Web Access to Databases Overview of Web Access to Databases.
CGI Programming: Part 1. What is CGI? CGI = Common Gateway Interface Provides a standardized way for web browsers to: –Call programs on a server. –Pass.
Uploading Files. Why? By giving a user the option to upload a file you are creating an interactive page You can enable users have a greater web experience.
Christopher M. Pascucci Basic Structural Concepts of.NET Browser – Server Interaction.
2. Introduction to the Visual Studio.NET IDE 2. Introduction to the Visual Studio.NET IDE Ch2 – Deitel’s Book.
ITIS 1210 Introduction to Web-Based Information Systems Chapter 41 How Animation on the Web Works.
Networking Nasrullah. Input stream Most clients will use input streams that read data from the file system (FileInputStream), the network (getInputStream()/getInputStream()),
 Understanding an activity  Starting an activity  Passing information between activities  Understanding intents  Understanding the activity lifecycle.
JavaScript & jQuery the missing manual Chapter 11
Using Dreamweaver. Slide 1 Dreamweaver has 2 screens that do different things The Document window where you create your WebPages The Site window where.
1 HTML and CGI Scripting CSC8304 – Computing Environments for Bioinformatics - Lecture 10.
CS378 - Mobile Computing Web - WebView and Web Services.
Comp2513 Forms and CGI Server Applications Daniel L. Silver, Ph.D.
Chapter 33 CGI Technology for Dynamic Web Documents There are two alternative forms of retrieving web documents. Instead of retrieving static HTML documents,
Server-side Scripting Powering the webs favourite services.
McGraw-Hill/Irwin © 2004 by The McGraw-Hill Companies, Inc. All rights reserved. Dynamic Action with Macromedia Dreamweaver MX Barry Sosinsky Valda Hilley.
Class 5 PHP MySQL Robert Mudge Reference:
Lab 2: Forms and Basic Input User Interface Lab: GUI Lab Sep. 2 nd, 2014.
Networking: Part 2 (Accessing the Internet). The UI Thread When an application is launched, the system creates a “main” UI thread responsible for handling.
1 Announcements Homework #2 due Feb 7 at 1:30pm Submit the entire Eclipse project in Blackboard Please fill out the when2meets when your Project Manager.
CS378 - Mobile Computing Web - WebView and Web Services.
11 Web Services. 22 Objectives You will be able to Say what a web service is. Write and deploy a simple web service. Test a simple web service. Write.
HTML Project 4 Creating an Image Map.
Mashup Chris Harwood ( ). Original idea My first idea was to graph financial stock data onto a html5 canvas. This way I could plot the data and.
JavaScript – Quiz #9 Lecture Code:
CS378 - Mobile Computing Intents. Allow us to use applications and components that are part of Android System – start activities – start services – deliver.
Website Development with PHP and MySQL Saving Data.
Web software. Two types of web software Browser software – used to search for and view websites. Web development software – used to create webpages/websites.
Address Book App 1. Define styles   Specify a background for a TextView – res/drawable/textview_border.xml.
PROCESSED RADAR DATA INTEGRATION WITH SOCIAL NETWORKING SITES FOR POLAR EDUCATION Jeffrey A. Wood April 19, 2010 A Thesis submitted to the Graduate Faculty.
1 © Netskills Quality Internet Training, University of Newcastle HTML Forms © Netskills, Quality Internet Training, University of Newcastle Netskills is.
Planning your site/organization on the Web Please use speaker notes for additional information!
© 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.
MAKANI ANDROID APPLICATION Prepared by: Asma’ Hamayel Alaa Shaheen.
PHP. $_GET / $_POST / $_SESSION PHP uses predefined variables to provide access to important information about the server and requests from a browser.
1 WWW. 2 World Wide Web Major application protocol used on the Internet Simple interface Two concepts –Point –Click.
The Module Road Map Assignment 1 Road Map We will look at… Internet / World Wide Web Aspects of their operation The role of clients and servers ASPX.
Reducing Your Carbon Footprint, One Android App at a Time Doug Burkhalter Chris Truitt.
HW#9 Clues CSCI 571 Fall, HW#9 Prototype
Web Design and Development. World Wide Web  World Wide Web (WWW or W3), collection of globally distributed text and multimedia documents and files 
JQuery and AJAX WEB Technologies : PHP Programming Language.
© 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.
Javascript JavaScript is what is called a client-side scripting language:  a programming language that runs inside an Internet browser (a browser is also.
Web Authoring with Dreamweaver. Unit Objectives  Be able to define keywords: HTML, HTTP (protocol), browser, web server, client/server, tag, attribute,
Website Design, Development and Maintenance ONLY TAKE DOWN NOTES ON INDICATED SLIDES.
Which Jacket? An app by Ashley Kaminski. Yet another weather app… …but this one gives you relevant data! Returns the current weather and the weather in.
Chapter 16 Web Pages And CGI Scripts Department of Biomedical Informatics University of Pittsburgh School of Medicine
Display Page (HTML/CSS)
Creating Reader-Centered Web pages and Websites. Designing Websites Design with same qualities as other workplace communications ▫Usability and Persuasiveness.
PHP Form Processing * referenced from
Eric Minner & James Pittman. Outline Project Statement / Motivation Concept overview Quick computer vision overview Demo Lessons Learned Future Work.
Intro Web Applications Andrew Benson – ScottyLabs – CrashCourse F14.
© 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.
Microsoft® Small Basic Flickr, ImageList, and Network Objects Estimated time to complete this lesson: 1 hour.
Editing a Twitter search. Viewing search results in a browser.
Reducing Your Carbon Footprint, One Android App at a Time Doug Burkhalter Chris Truitt.
JavaScript and Ajax (Ajax Tutorial)
Reactive Android Development
How to create a web page using word …
WebView and Web Services
Web software.
Essentials of Web Pages
Flight prices.
CS323 Android Topics Network Basics for an Android App
Android Topics Asynchronous Callsbacks
Presentation transcript:

NOAA Weather Patrick Wolfram

What it does Allows user to specify a zip code Performs HTTP GET requests on noaa.gov for the specified zip code Displays Pictorial Representation of weather, a description of visual conditions, temperatures in Fahrenheit and Celsius, and a radar image

How It Works Starts with a simple GUI consisting of an EditText used to enter zip code and a button to start HTTP GET Request Using a PHP script on the noaa.gov site, the request returns the relevant html for the zip code Once the request is finished, a new activity is started using an Intent with the html as a String for the extra

How It Works The TextViews in the new activity are set to specific values parsed from the html URLs for the pictorial weather representation and the radar webpage are parsed from the html These URLs are used in two different AsyncTask classes to retrieve a picture and a page, respectively

How It Works The image URL is used to retrieve the image data with an HTTP GET request The webpage URL is used to retrieve the page data with an HTTP GET request, which in turn is parsed and used to get the URLs of the radar images These URLs are used for further GET requests, which place the data into Bitmap objects

How It Works Once the main activity receives the Bitmaps and input stream data, it uses them to update the layout The input stream data is placed into a Bitmap object and displayed The Bitmaps are overlaid on one another and displayed

Design Each HTTP GET has its own class The first gets the webpage for the zip code in its doInBackground method and starts the new activity in its onPostExecute method The second gets the image stream in its doInBackground and uses a reference to the second activity to pass the stream back to the activity in its onPostExecute The third gets the radar page and several images in its doInBackground and uses a reference to the second activity to pass the Bitmaps back to the activity in its onPostExecute

Design This is the main activity of the app It includes an EditText view, which is used to get a zip code from the user There is also a Button, which is used to initiate an HTTP GET request with the entered zip code The background makes the app seem more interesting

Design This second activity is made up of four TextViews: The City, State view, the visibility view, the Fahrenheit view, and the Celsius view It also includes two ImageViews, one for the pictorial representation of the weather, and one for the radar image These are all set programmatically from data obtained through GETs All views are contained in a ScrollView so the whole radar image can be observed

Demonstration To demonstrate, I will load up the page for the site on my computer I will then run the app, which will be compared to the website to show the mapping of data from that on the site to that in the app

Questions?