Building Hybrid Android Apps with Java and JavaScript: Applying Native Device APIs

Cover
"O'Reilly Media, Inc.", 23.07.2013 - 156 Seiten

Build HTML5-based hybrid applications for Android with a mix of native Java and JavaScript components, without using third-party libraries and wrappers such as PhoneGap or Titanium. This concise, hands-on book takes you through the entire process, from setting up your development environment to deploying your product to an app store.

Learn how to create apps that have access to native APIs, such as location, vibrator, sensors, and the camera, using a JavaScript/Java bridge—and choose the language that gives you better performance for each task. If you have experience with HTML5 and JavaScript, you’ll quickly discover why hybrid app development is the wave of the future.

  • Set up a development environment with HTML, CSS, and JavaScript tools
  • Create your first hybrid Android project, using Eclipse IDE
  • Use the WebView control to host your hybrid application
  • Explore hybrid application architecture, including JavaScript/Java communication
  • Build single-page applications, using JavaScript libraries such as Backbone and Underscore
  • Get optimization tips and useful snippets for CSS, DOM, and JavaScript
  • Distribute your application to Google Play and the Amazon Appstore
 

Ausgewählte Seiten

Inhalt

Chapter 1 What Is Android?
1
Chapter 2 Setting Up Your Android Development Environment
11
Chapter 3 Android Fundamentals
35
Chapter 4 WebView WebKit and WebSettings
61
Chapter 5 Interworkings of the JavaScript and Java Layers
79
Chapter 6 HTML Architecture for Hybrid Applications
93
Optimization Tips and Useful Snippets
107
Chapter 8 Publishing Apps for Android
113
About the Authors
141
Urheberrecht

Andere Ausgaben - Alle anzeigen

Häufige Begriffe und Wortgruppen

Autoren-Profil (2013)

Nizametttin Gok (aka Nizam) has more than 15 years of experience in client-side applications. He has involved in designing, developing and managing large-scale web applications for many years. He then transformed these outstanding experiences into mobile application space during his career in Japan. Nizam believes that the invention of Ajax technology was a turning point for the client-side applications. For this reason, his focus in using JavaScript in mobile web applications brought him into hybrid applications for Android platform. He is very passionate about implementing excellent User Experiences. His personal interest is web application security and he currently maintains geoxies.com (preventing fraudelent activities) in his free time. Nizam has also managed from small to large-scale teams an offshore teams successfully. He is currently working at Microsoft as a Sr. Software Development Engineer for Skype Android platform. Nitin Khanna is a lead engineer for Android at Skype, with an extensive experience in mobile application development for Android, iOS, Symbian and BREW. In his free time Nitin likes to contribute to open source projects. He also has experience in OS middleware and protocol stack development.

Bibliografische Informationen