Apache Cordova API Cookbook


Book Description

Using Apache Cordova, mobile developers can write cross-platform mobile apps using standard HTML5, JavaScript, and CSS, and then deploy those apps to every leading mobile platform with little or no re-coding. Apache Cordova API Cookbook provides experienced mobile developers with details about how each Cordova API works and how to use the APIs in their own applications. Coverage is included for all Cordova/PhoneGap 3 APIs. Instead of just showing short snippets of code to explain a particular API, this guide is chock full of complete examples. You'll find more than thirty complete Cordova applications that work on Android, iOS, Windows, and more. The sample applications demonstrate exactly what each API does and how it works, while the chapter content describes the limitations on the leading target platforms (and even offers possible workarounds). Through realistic "cookbook" example code, mobile developer John Wargo helps you master the Cordova APIs and understand how to use them in your Cordova applications. Topics include Accelerometers, compass, and geolocation Image, video, and audio-capture, playback, and management Determining connection and device information Interacting with the Contacts application Responding to application events Accessing the device file system Globalizing apps Using the InAppBrowser Notifications Custom splash screens Special care has been taken to make the code easily readable and digestible by the reader. This guide provides the most accessible coverage, anywhere, of Apache Cordova APIs.




Apache Cordova 4 Programming


Book Description

'Apache Cordova 4 Programming' is the complete introduction to Apache Cordova 4 and Adobe PhoneGap for experienced mobile developers. Leading Cordova expert John Wargo explains what makes Cordova so important, and shows how to install and use its newest tools, from the Cordova CLI to its native SDKs. If you're brand new to Cordova, this book will be just what you need to get started. If you're familiar with an older version, it will offer you detailed guidance and making the most of Cordova 4's powerful enhancements, as well as the core APIs you may already be using.




Android Application Development in 24 Hours, Sams Teach Yourself


Book Description

In just 24 sessions of one hour or less, learn how to build powerful apps for the world’s most popular mobile platform: Android. Using this book’s straightforward, step-by-step approach, you’ll build complete Android 5 apps from the ground up with Android Studio. As you do, you’ll master key skills for designing, developing, and publishing meaningful apps of your own. Extensively updated for Android 5’s newest capabilities, every lesson builds on what you’ve already learned, giving you a rock-solid foundation for real-world success! Highlights of this new Fourth Edition include Extensive new coverage: Android 5 (Lollipop), Android Studio, and Material Design; plus Android M early preview A laser focus on modern Android essentials, including activities, intents, resources, and background processing New Android 5 features for Android TV and Android Wear Complete Android Studio projects in nearly every chapter Learn how to... Use the powerful new Android Studio development environment Build layouts that automatically display properly on any device Craft more dynamic, intuitive apps with Google’s new material design language Display the right information at the right time with ListViews and adapters Make apps more responsive with background processes Add sophisticated navigation with action toolbars and slide-out menus Integrate images and media into your apps Save data for your app and create public files that can be used by anyone Access the cloud to download and parse JSON data Use SQLite and content providers to create responsive, data-driven apps Create, update, and cancel notifications Start developing Android Wearable and TV apps Use Google Play Services to add location, mapping, and more Package and publish apps to Google Play and other markets




Embedded Programming with Android


Book Description

The First Practical, Hands-On Guide to Embedded System Programming for Android Today, embedded systems programming is a more valuable discipline than ever, driven by fast-growing, new fields such as wearable technology and the Internet of Things. In this concise guide, Roger Ye teaches all the skills you’ll need to write the efficient embedded code necessary to make tomorrow’s Android devices work. The first title in Addison-Wesley’s new AndroidTM Deep Dive series for intermediate and expert Android developers, Embedded Programming with AndroidTM draws on Roger Ye’s extensive experience with advanced projects in telecommunications and mobile devices. Step by step, he guides you through building a system with all the key components Android hardware developers must deliver to manufacturing. By the time you’re done, you’ll have the key programming, compiler, and debugging skills you’ll need for real-world projects. First, Ye introduces the essentials of bare-metal programming: creating assembly language code that runs directly on hardware. Then, building on this knowledge, he shows how to use C to create hardware interfaces for booting a Linux kernel with the popular U-Boot bootloader. Finally, he walks you through using filesystem images to boot Android and learning to build customized ROMs to support any new Android device. Throughout, Ye provides extensive downloadable code you can run, explore, and adapt. You will Build a complete virtualized environment for embedded development Understand the workflow of a modern embedded systems project Develop assembly programs, create binary images, and load and run them in the Android emulator Learn what it takes to bring up a bootloader and operating system Move from assembler to C, and explore Android’s goldfish hardware interfaces Program serial ports, interrupt controllers, real time clocks, and NAND flash controllers Integrate C runtime libraries Support exception handling and timing Use U-Boot to boot the kernel via NOR or NAND flash processes Gain in-depth knowledge for porting U-Boot to new environments Integrate U-Boot and a Linux kernel into an AOSP and CyanogenMod source tree Create your own Android ROM on a virtual Android device




PhoneGap for Enterprise


Book Description

This book is intended for developers who wish to use PhoneGap to develop useful, rich, secure mobile applications for their enterprise environment. The book assumes you have working knowledge of PhoneGap, HTML5, CSS3, and JavaScript, and a reasonable understanding of networking and n-tier architectures.




Bulletproof Android


Book Description

Battle-Tested Best Practices for Securing Android Apps throughout the Development Lifecycle Android’s immense popularity has made it today’s #1 target for attack: high-profile victims include eHarmony, Facebook, and Delta Airlines, just to name a few. Today, every Android app needs to resist aggressive attacks and protect data, and in Bulletproof AndroidTM, Godfrey Nolan shows you how. Unlike “black hat/gray hat” books, which focus on breaking code, this guide brings together complete best practices for hardening code throughout the entire development lifecycle. Using detailed examples from hundreds of apps he has personally audited, Nolan identifies common “anti-patterns” that expose apps to attack, and then demonstrates more secure solutions. Nolan covers authentication, networking, databases, server attacks, libraries, hardware, and more. He illuminates each technique with code examples, offering expert advice on implementation and trade-offs. Each topic is supported with a complete sample app, which demonstrates real security problems and solutions. Learn how to Apply core practices for securing the platform Protect code, algorithms, and business rules from reverse engineering Eliminate hardcoding of keys, APIs, and other static data Eradicate extraneous data from production APKs Overcome the unique challenges of mobile authentication and login Transmit information securely using SSL Prevent man-in-the-middle attacks Safely store data in SQLite databases Prevent attacks against web servers and services Avoid side-channel data leakage through third-party libraries Secure APKs running on diverse devices and Android versions Achieve HIPAA or FIPS compliance Harden devices with encryption, SELinux, Knox, and MDM Preview emerging attacks and countermeasures This guide is a perfect complement to Nolan’s AndroidTM Security Essentials LiveLessons (video training; ISBN-13: 978-0-13-382904-4) and reflects new risks that have been identified since the LiveLessons were released.




Android User Interface Design


Book Description

Build Android 6 Material Design Apps That Are Stunningly Attractive, Functional, and Intuitive As Android development has matured and grown increasingly competitive, developers have recognized the crucial importance of good design. With Material Design, Google introduced its most radical visual changes ever, and made effective design even more essential. Android 6 and the design support library continue to push mobile design forward. In Android User Interface Design, Second Edition, leading Android developer and user experience (UX) advocate Ian G. Clifton shows how to combine exceptional usability and outstanding visual appeal. Clifton helps you build apps that new users can succeed with instantly: apps that leverage users’ previous experience previous experience, reflect platform conventions, and never test their patience. You won’t need any design experience: Clifton walks you through the entire process, from wireframes and flowcharts to finished apps with polished animations and advanced compositing. You’ll find hands-on case studies and extensive downloadable sample code, including complete finished apps. • Integrate Material Design into backward compatible Android 6 apps • Understand views, the building blocks of Android user interfaces • Make the most of wireframes and conceptual prototypes • Apply user-centered design throughout • Master the essentials of typography and iconography • Use custom themes and styles for consistent visuals • Handle inputs and scrolling • Create beautiful transition animations • Use advanced components like spans and image caches • Work with the canvas, color filters, shaders, and image compositing • Combine multiple views into efficient custom components • Customize views to meet unique drawing or interaction requirements • Maximize downloads by designing compelling app store assets Step by step, this guide bridges the gap between Android developers and designers, so you can collaborate on world-class app designs...or do it all yourself! “This well-presented, easy-to-grasp book gets to the heart of Android User Interface Design. Well worth the reading time!” --Dr. Adam Porter, University of Maryland, Fraunhofer Center for Experimental Software Engineering "Ian's grasp of Android is fantastic, and this book is a great read for any developer or designer. I've personally worked on 30+ Android applications, and I was learning new tips with every chapter." --Cameron Banga, Lead Designer, 9magnets, LLC




iOS Internationalization


Book Description

Internationalize Your iOS Apps for a Global Audience Sixty percent of iPhone users worldwide aren’t native English speakers, half of the Top 10 iOS app markets are non-English speaking, and app revenue in Asia is soaring while North American growth is flattening. Internationalizing your apps will make your worldwide customer base happy and give you a powerful competitive advantage in the global marketplace. Now, iOS expert Shawn Larson brings together all the knowledge you need to do it. Larson takes information previously scattered across dozens of blog posts, tutorials, and book chapters and integrates it into one easy-to-navigate resource. He presents step-by-step coverage and practical code for controlling international settings, character encoding, locale and localization, UI adjustments, App Store customizations, and more. You’ll find a sample project in every chapter—including a major three-chapter project guiding you through several key stages of app internationalization. Coverage includes: Customizing language, region, and locale settings, including date, time, currency, quotation marks, separators, and more Working with character sets, including Unicode and ligatures Coding for locale with NSLocale and locale-specific arguments Systematically prepping your app for localization Leveraging the full power of base localization Generating dot-strings files and working with their key-value pairs Localizing images and app names Effectively using translation services—and avoiding the pitfalls Adjusting your UI to avoid clipped strings in longer languages Using constraint settings to support right-to-left languages Specifying App Store supported territories and pricing tiers Localizing your App Store summary page: name, descriptions, keywords, URLs, screenshots, and EULAs If you're an experienced Objective-C developer, iOS Internationalization will help you expand your iOS market worldwide and capture opportunities that would otherwise be far beyond your grasp. All sample code and completed projects may be downloaded at github.com/ShawnLa-i18n.




PhoneGap Essentials


Book Description

Using PhoneGap, developers can build native mobile apps using standard HTML5, JavaScript, and CSS, and then deploy those apps to every leading mobile platform with little or no recoding. Up to now, though, PhoneGap was lacking complete, practical documentation. PhoneGap Essentials fills that void: It's the first concise, yet complete, tutorial for succeeding with PhoneGap in real-world development. Experienced mobile developer John M. Wargo thoroughly introduces the PhoneGap platform, explaining what it is, what it does, and how it works. He then guides through configuring PhoneGap environments--creating complete mobile apps--and building them for the Google Android(tm), Samsung bada, Apple® iOS, BlackBerry® devices, Symbian(tm) OS, and Windows® Phone.




Mobile App Development with Ionic, Revised Edition


Book Description

Learn how to build app store-ready hybrid apps with Ionic, the framework built on top of Apache Cordova (formerly PhoneGap) and Angular. This revised guide shows you how to use Ionic’s tools and services to develop apps with HTML, CSS, and TypeScript, rather than rely on platform-specific solutions found in Android, iOS, and Windows Universal. Author Chris Griffith takes you step-by-step through Ionic’s powerful collection of UI components, and then helps you use it to build three cross-platform mobile apps. Whether you’re new to this framework or have been working with Ionic 1, this book is ideal for beginning, intermediate, and advanced web developers. Understand what a hybrid mobile app is, and what comprises a basic Ionic application Learn how Ionic leverages Apache Cordova, Angular, and TypeScript to create native mobile applications Create a Firebase-enabled to-do application that stores data across multiple clients Build a tab-based National Park explorer app with Google Map integration Develop a weather app with the Darksky weather API and Google’s GeoCode API Debug and test your app to resolve issues that arise during development Walk through steps for deploying your app to native app stores Learn how Ionic can be used to create Progressive Web Apps