Webview and Web services. Web Apps You can make your web content available to users in two ways in a traditional web browser in an Android application,

Slides:



Advertisements
Similar presentations
Samsung Smart TV is a web-based application running on an application engine installed on digital TVs connected to the Internet.
Advertisements

Copyright © 2012 Certification Partners, LLC -- All Rights Reserved Lesson 4: Web Browsing.
Smartphone Apps Development Team Weiqing Li Lijun Zhu Man Li.
1 Configuring Internet- related services (April 22, 2015) © Abdou Illia, Spring 2015.
16 HTML Tables and Frames Section 16.1 Create a basic table using HTML Define borders Merge cells Align content in tables Section 16.2 Create a frames-based.
Location based Streaming Topics for our 1 st presentation  Thesis Description  Positioning System  Streaming over positioning  Questions Session.
1 Configuring Web services (Week 15, Monday 4/17/2006) © Abdou Illia, Spring 2006.
Introduction to Web Database Processing
WHAT IS AJAX? Zack Sheppard [zts2101] WHIM April 19, 2011.
Microsoft ® Official Course Developing Optimized Internet Sites Microsoft SharePoint 2013 SharePoint Practice.
Browser and Basics Tutorial 1. Learn about Web browser software and Web pages The Web is a collection of files that reside on computers, called.
Computer Science 101 Web Access to Databases Overview of Web Access to Databases.
Presented by Mina Haratiannezhadi 1.  publishing, editing and modifying content  maintenance  central interface  manage workflows 2.
Developing Content for Mobile Devices Larry D. Lee Web Developer for K4Health.
WEB DESIGN SOME FOUNDATIONS. SO WHAT IS THIS INTERNET.
Web Design Basic Concepts.
Emerging Platform#4: Android Bina Ramamurthy.  Android is an Operating system.  Android is an emerging platform for mobile devices.  Initially developed.
Christopher M. Pascucci Basic Structural Concepts of.NET Browser – Server Interaction.
ITIS 1210 Introduction to Web-Based Information Systems Chapter 41 How Animation on the Web Works.
Android Application Development 2013 PClassic Chris Murphy 1.
Presented by…. Group 2 1. Programming language 2Introduction.
INTRODUCTION TO CLIENT-SIDE WEB PROGRAMMING ACM 511 ACM 262 Course Notes.
© 2011 Delmar, Cengage Learning Chapter 2 Developing a Web Page.
Windows.Net Programming Series Preview. Course Schedule CourseDate Microsoft.Net Fundamentals 01/13/2014 Microsoft Windows/Web Fundamentals 01/20/2014.
Android Boot Camp for Developers Using Java, Comprehensive: A Guide to Creating Your First Android Apps Chapter 9: Customize! Navigating with a Master/Detail.
What is Web Design?  Web design is the creation of a Web page using hypertext or hypermedia to be viewed on the World Wide Web.
 Understanding an activity  Starting an activity  Passing information between activities  Understanding intents  Understanding the activity lifecycle.
Copyright © cs-tutorial.com. Introduction to Web Development In 1990 and 1991,Tim Berners-Lee created the World Wide Web at the European Laboratory for.
HTML5 Application Development Fundamentals
Get more out of 11i with Oracle ADI Richard Byrom Oracle Applications Consultant Appsworld January 2003.
Ch6:creating consistent looking web sites. Master pages Master page defines a combination of fixed content and content place holder to hold the web page(.aspx)
CS378 - Mobile Computing Web - WebView and Web Services.
Mobile App Support Jacob Poirier Geri Hengesbach Andrea Menke Erin Rossell.
Chapter 9: Customize! Navigating with Tabs on a Tablet App.
ASP.NET + Ajax Jesper Tørresø ITNET2 F08. Ajax Ajax (Asynchronous JavaScript and XML) A group of interrelated web development techniques used for creating.
Overview of Previous Lesson(s) Over View  ASP.NET Pages  Modular in nature and divided into the core sections  Page directives  Code Section  Page.
Mohammed Mohsen Links Links are what make the World Wide Web web-like one document on the Web can link to several other documents, and those.
Chapter 2 Developing a Web Page. A web page is composed of two distinct sections: –The head content –The body Creating Head Content and Setting Page Properties.
ITIS 1210 Introduction to Web-Based Information Systems Chapter 4. Understanding the Internet’s Software Structure.
Creating Web Applications Using ASP.NET Chapter Microsoft Visual Basic.NET: Reloaded 1.
Web Programming: Client/Server Applications Server sends the web pages to the client. –built into Visual Studio for development purposes Client displays.
NASRULLAH KHAN.  Lecturer : Nasrullah   Website :
Mobile Application Development using Android Lecture 2.
DUE Hello World on the Android Platform.
Tutorial 121 Creating a New Web Forms Page You will find that creating Web Forms is similar to creating traditional Windows applications in Visual Basic.
Extending ArcGIS for Server
CS378 - Mobile Computing Web - WebView and Web Services.
Step 1. Connect to the internet through your network or dial-up service and then go to this web address:
PVSSProxy The first piece of the MACS procedure framework (ProShell) Angela Brett.
Networking: Part 1 (Web Content). Networking with Android Android provides A full-featured web browser based on Chromium, the open source browser engine.
Session: 1. © Aptech Ltd. 2Introduction to the Web / Session 1  Explain the evolution of HTML  Explain the page structure used by HTML  List the drawbacks.
MTA EXAM HTML5 Application Development Fundamentals.
How the Web Works Building a Website – Lesson 1. How People Access the Web Browsers People access websites using software called a web browser. To view.
Some Big Concepts You Need to Know REFERENCE: LEARNING WEB DESIGN (4 TH EDITION) BY ROBBINS 2012 – CHAPTER 3.
NASRULLAH KHAN.  Lecturer : Nasrullah   Website :
Web Application in Android Ajay Babar. Contents 1.Introduction to Web Content 2. WebView widget I.What is webview. II. Properties(Methods) of Webview.
ANDROID APPLICATION DEVELOPMENT. ANDROID DEVELOPMENT DEVELOPER.ANDROID.COM/INDEX.HTML THE OFFICIAL SITE FOR ANDROID DEVELOPERS. PROVIDES THE ANDROID SDK.
 An HTML, CSS, Javascript framework you can use as a basis for creating web sites  Uses CSS settings, fundamental HTML elements styled and enhanced.
© 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.
1 CSC160 Chapter 1: Introduction to JavaScript Chapter 2: Placing JavaScript in an HTML File.
STYLING WITH THEMES Active server pages (ASP.NET) 1 Chapter-5.
1 Using jQuery JavaScript & jQuery the missing manual (Second Edition)
Android Programming - Features
Android Application Web 1.
WebView and Web Services
CS323 Android Topics Network Basics for an Android App
SharePoint Online Authentication Patterns
Web Page Layout Imran Rashid CTO at ManiWeber Technologies.
Emerging Platform#3 Android & Programming an App
Presentation transcript:

Webview and Web services

Web Apps You can make your web content available to users in two ways in a traditional web browser in an Android application, by including a WebView in the layout. There are essentially two ways to deliver an application on Android: as a client-side application (developed using the Android SDK and installed on user devices in an APK) as a web application (developed using web standards and accessed through a web browser—there's nothing to install on user devices). If you chose to provide a web-based app for Android-powered devices, you can rest assured that major web browsers for Android (and the WebView framework) allow you to specify viewport and style properties that make your web pages appear at the proper size and scale on all screen configurations.

Web Apps How to provide access to your web pages from either a web browser or your your own Android app. you shouldn't develop an Android app simply as a means to view your web site. Rather, the web pages you embed in your Android app should be designed especially for that environment. You can even define an interface between your Android application and your web pages that allows JavaScript in the web pages to call upon APIs in your Android application—providing Android APIs to your web-based application.

Building Web Apps in WebView To deliver a web application (or just a web page) as a part of a client application, you can do it using WebView. WebView class is an extension of Android's View class that allows you to display web pages as a part of your activity layout. does not include any features of a fully developed web browser, such as navigation controls or an address bar. by default, it just show a web page. Scenario 1: when WebView is helpful when you want to provide information in your application that you might need to update, such as an end-user agreement or a user guide. Within your Android application, you can create an Activity that contains a WebView, then use that to display your document that's hosted online.

Building Web Apps in WebView Scenario 2: when WebView is helpful if your application provides data to the user that always requires an Internet connection to retrieve data, such as . In this case, you might find that it's easier to build a WebView in your Android application that shows a web page with all the user data, rather than performing a network request, then parsing the data and rendering it in an Android layout. Instead, you can design a web page that's tailored for Android devices and then implement a WebView in your Android application that loads the web page.

What to learn how to get started with WebView how to do some additional things handle page navigation bind JavaScript from your web page to client-side code in your Android application.

Adding a WebView to App To add a WebView to your Application, simply include the element in your activity layout. For example, here's a layout file in which the WebView fills the screen: <WebView xmlns:android=" android:layout_width="fill_parent" android:layout_height="fill_parent" /> To load a web page in the WebView, use loadUrl(). For example: WebView myWebView = (WebView) findViewById(R.id.webview); myWebView.loadUrl(" Before this will work, however, your application must have access to the Internet. To get Internet access, request the INTERNET permission in your manifest file. For example:... That's all you need for a basic WebView that displays a web page.