oreilly building android apps with html css and javascript (2010)

182 1.6K 0
oreilly building android apps with html css and javascript (2010)

Đang tải... (xem toàn văn)

Tài liệu hạn chế xem trước, để xem đầy đủ mời bạn chọn Tải xuống

Thông tin tài liệu

[...]... addressed by building apps with HTML, CSS, and JavaScript I’m the first to admit that not all apps are a good fit for development with web technologies That said, I see a lot of apps written with native code that could have just as easily been done with HTML When speaking to developers who aren’t sure which approach to take, I say this: If you can build your app with HTML, CSS, and JavaScript, you probably... Carriers and handset manufacturers have jumped on the Android bandwagon The market is beginning to flood with Android devices of all shapes and sizes This is a double-edged sword for developers On one hand, more devices means a bigger market On the other hand, more devices means more fragmentation As with the fragmentation in the general mobile market, fragmentation on Android can often be addressed by building. .. the title, author, publisher, and ISBN For example: Building Android Apps with HTML, CSS, and JavaScript by Jonathan Stark Copyright 2010 Jonathan Stark, 978-1-449-38326-8.” If you feel your use of code examples falls outside fair use or the permission given above, feel free to contact us at permissions @oreilly. com Safari® Books Online Safari Books Online is an on-demand digital library that lets... in the sample HTML document with ones that use the following expressions: First Steps | 17 I specifically used max-width and min-width here so that you can resize your desktop browser and see the mobile... links to the desktop version of the CSS: So now it’s time to edit the HTML document (if you haven’t already... when testing your Android web apps on a desktop web browser, because Chrome is the closest desktop browser to Android s mobile browser Chrome is available for Mac and Windows from http://google.com/ chrome Introduction to CSS As you’ve seen, browsers render certain HTML elements with distinct styles (for example, headings are large and bold, paragraphs are followed by a blank line, and so forth) These... desktop .css refers to your existing desktop stylesheet, and android. css is a new file that we’ll be discussing in detail in a bit The desktop .css file is not essential, but you can use the stylesheet from the previous chapter if you’d like If you’re following along using the sample HTML document shown in Example 2-1, you’ll need to rename screen .css to desktop .css, but since we’re focused on the Android. .. say “crash” course?) Introduction to JavaScript At this point you know how to structure a document with HTML and how to modify its visual presentation with CSS Now we’ll add some JavaScript to make it do stuff JavaScript is a scripting language that you can add to an HTML page to make it more interactive and convenient for the user For example, you can write some JavaScript that will inspect the values... open source, standards-based web technologies gives you the greatest flexibility, the broadest reach, and the lowest cost You can easily release it as a web app, then debug and test it under load with thousands of real users Once you are ready to rock, you can use PhoneGap to convert your web app to a native Android app, add a few device-specific features if you like, and submit to the Android Market—or... user interface (UI) is built with web standard technologies, it is available at a URL (public, private, or perhaps behind a login), and it is optimized for the characteristics of a mobile device A web app is not installed on the phone, it is not available in the Android Market, and it is not written with Java What Is a Native App? In contrast, native apps are installed on the Android phone, they have access . Building Android Apps with HTML, CSS, and JavaScript Building Android Apps with HTML, CSS, and JavaScript Jonathan Stark Beijing • Cambridge • Farnham • Köln • Sebastopol • Tokyo Building Android. Nutshell Handbook, the Nutshell Handbook logo, and the O’Reilly logo are registered trademarks of O’Reilly Media, Inc. Building Android Apps with HTML, CSS, and JavaScript, the image of a maleo, and related. other hand, more devices means more fragmentation. As with the fragmentation in the general mobile market, fragmentation on Android can often be addressed by building apps with HTML, CSS, and JavaScript. I’m

Ngày đăng: 31/03/2014, 16:37

Từ khóa liên quan

Mục lục

  • Copyright

  • Table of Contents

  • Preface

    • Who Should Read This Book

    • What You Need to Use This Book

    • Conventions Used in This Book

    • Using Code Examples

    • Safari® Books Online

    • How to Contact Us

    • Acknowledgments

    • Chapter 1. Getting Started

      • Web Apps Versus Native Apps

        • What Is a Web App?

        • What Is a Native App?

        • Pros and Cons

        • Which Approach Is Right for You?

        • Web Programming Crash Course

          • Introduction to HTML

          • Introduction to CSS

            • Applying a stylesheet

            • Introduction to JavaScript

            • Chapter 2. Basic Styling

              • Don’t Have a Website?

              • First Steps

                • Prepare a Separate Android Stylesheet

                • Control the Page Scaling

                • Adding the Android CSS

Tài liệu cùng người dùng

Tài liệu liên quan