Beginning Mobile Application Development in the Cloud
eBook - ePub

Beginning Mobile Application Development in the Cloud

  1. English
  2. ePUB (mobile friendly)
  3. Available on iOS & Android
eBook - ePub

Beginning Mobile Application Development in the Cloud

About this book

Learn how to build apps for mobile devices on Cloud platforms

The marketplace for apps is ever expanding, increasing the potential to make money. With this guide, you'll learn how to build cross-platform applications for mobile devices that are supported by the power of Cloud-based services such as Amazon Web Services. An introduction to Cloud-based applications explains how to use HTML5 to create cross-platform mobile apps and then use Cloud services to enhance those apps. You'll learn how to build your first app with HTML5 and set it up in the Cloud, while also discovering how to use jQuery to your advantage.

  • Highlights the skills and knowledge you need to create successful apps for mobile devices with HTML5
  • Takes you through the steps for building web applications for the iPhone and Android
  • Details how to enhance your app through faster launching, touch vs. click, storage capabilities, and a cache
  • Looks at how best to use JSON, FourSquare, jQuery, AJAX, and more
  • Shares tips for creating hybrid apps that run natively

If you're interested in having your application be one of the 200, 000+ apps featured in the iPhone store or the 50, 000+ in the Android store, then you need this book.

Frequently asked questions

Yes, you can cancel anytime from the Subscription tab in your account settings on the Perlego website. Your subscription will stay active until the end of your current billing period. Learn how to cancel your subscription.
At the moment all of our mobile-responsive ePub books are available to download via the app. Most of our PDFs are also available to download and we're working on making the final remaining ones downloadable now. Learn more here.
Perlego offers two plans: Essential and Complete
  • Essential is ideal for learners and professionals who enjoy exploring a wide range of subjects. Access the Essential Library with 800,000+ trusted titles and best-sellers across business, personal growth, and the humanities. Includes unlimited reading time and Standard Read Aloud voice.
  • Complete: Perfect for advanced learners and researchers needing full, unrestricted access. Unlock 1.4M+ books across hundreds of subjects, including academic and specialized titles. The Complete Plan also includes advanced features like Premium Read Aloud and Research Assistant.
Both plans are available with monthly, semester, or annual billing cycles.
We are an online textbook subscription service, where you can get access to an entire online library for less than the price of a single book per month. With over 1 million books across 1000+ topics, we’ve got you covered! Learn more here.
Look out for the read-aloud symbol on your next book to see if you can listen to it. The read-aloud tool reads text aloud for you, highlighting the text as it is being read. You can pause it, speed it up and slow it down. Learn more here.
Yes! You can use the Perlego app on both iOS or Android devices to read anytime, anywhere — even offline. Perfect for commutes or when you’re on the go.
Please note we cannot support devices running on iOS 13 and Android 7 or earlier. Learn more about using the app.
Yes, you can access Beginning Mobile Application Development in the Cloud by Richard Rodger in PDF and/or ePUB format, as well as other popular books in Computer Science & Microsoft Programming. We have over one million books available in our catalogue for you to explore.

Information

Chapter 1
Introducing Cloud-Based Mobile Apps
WHAT YOU WILL LEARN IN THIS CHAPTER:
  • Using your existing skills as a web developer to build mobile apps
  • Understanding how HTML5 will be used as an app-development standard
  • Learning how to dynamically create JavaScript functions
  • Using the WebKit browser engine for app development
  • Creating a mobile web app that responds to touch
  • Installing and using the nginx web server
This book is for web developers who want to build mobile apps and cloud services. If you know HTML, CSS, and JavaScript, you already have the skills to build not only mobile apps but also the cloud services that power them.
The code examples in this book show you how to build complete apps. You are never left to put together the pieces yourself. The code is simple and includes error-handling logic, so you’ll learn how to build production-ready apps and systems.
Over the course of this book, you will build three complete applications. You’ll learn how to put together all the elements of the technology stack, and you’ll learn about a wide range of technologies and services. This book will enable you to get to work but avoids unnecessary detail and theory.
This book is an accelerator for your skills. You can use it to efficiently make the leap into mobile and cloud development. Rather than attempting to be a reference for all the details, which you can find on the web anyway, it is a stepping stone for your skills.
HOW TO BUILD MOBILE APPS IN THE CLOUD
This book describes how to build apps that run on the new generation of smart mobile devices. It also shows how to build out the business logic behind these apps, and how to run that business logic in a cloud hosting environment, such as that provided by Amazon.
This book focuses on the two leading platforms: iPhone and Android. These two, between them, cover the vast majority of smartphones and provide access to the largest market.
image
NOTE In this book, the term iPhone should be taken as shorthand for any iOS-based device, including iPad and the iPod Touch devices. Similarly, the term Android refers to any device running Android version 2.1 or higher, including any of the Android tablets that are competing with the iPad.
It’s important to understand the types of apps that can run on mobile devices:
  • Mobile web apps — These apps are really just websites, designed to function in an app-like way. They run in a web browser on a device.
  • Purely native apps — These apps are written in a device-specific language, using a device-specific programming interface: Objective-C for iPhone apps or Java for Android apps. Native apps can access all the capabilities of the device and can take many forms, from simple utility apps to advanced 3-D games.
  • Hybrid native apps — For these apps, you use HTML to build the user interface but wrap the HTML in a native container. Such apps can access some of the native capabilities of the device but can still be developed using HTML.
In this book you will learn how to build mobile web apps and hybrid apps.
The other component that many apps have is not something that lives on the mobile device at all. It is the business logic, data storage, and service integration that support the operation of the code on the mobile device. This element of app development is just as important as the visible part that you install on your device. Placing this code in a cloud-hosting environment is the best approach to developing a robust support system for your app, and this book shows you how to build the server elements of your app. You will learn how to do this by using your existing JavaScript skills. You’ll run your code on the server using Node.js, a high-speed, high-capacity JavaScript server engine.
Using Your Existing Skill Set
As a web developer, you already possess all the skills you need to be a mobile app developer as well. If you can build websites, you can build mobile apps. If you are a web developer wanting to build mobile apps, you do not need to learn new languages such as Objective-C or Java. You do not even need to learn new languages to build the code for servers that support your app.
All you need to know is HTML, CSS, and JavaScript. This book assumes that you have a working knowledge of these three basic web languages. Even if you are more comfortable with design and graphics and are stronger in HTML and CSS than in JavaScript, you will still be able to follow the examples in this book and build your own apps.
This book takes a practical approach and shows you how to build real applications. The examples stick to common language features and avoid anything esoteric. The first set of code examples in this chapter lay the JavaScript ground work that will see you through to the end of the book.
You will use your existing skill set to build mobile web apps. You will then support those apps by using some server-side JavaScript, running on cloud servers, and you’ll see all the steps needed to set this up. Then you’ll learn how to create hybrid native apps using HTML, CSS, and JavaScript.
Determining What Tools You Need
You’ll need some development tools in order to fully explore the examples in this book. You will certainly find a physical iPhone or Android device very useful for testing and development. You need to run mobile apps on an actual device to really understand how they will behave once users get hold of them.
To a certain extent, you can develop the apps and code examples in this book on any of the three major operating systems: Mac, Windows, or Linux. However, you will find that a Mac is the best choice, simply because the iPhone development tools from Apple can only run on a Mac. Your Mac can also run the server code quite easily. One thing you should do is upgrade to the latest version of the Mac OS X operating system, as this will support the most up-to-date versions of the iPhone development tools.
Windows and Linux are also acceptable, although you will have to do a little more configuration and setup work. In particular, on Windows, you will need to install the Cygwin UNIX environment so that you can run Node.js. Cygwin is available from www.cygwin.com. As discussed in Chapter, 11, you will also have to rely on third-party services to build hybrid native iPhone apps.
You can build mobile web apps and the necessary server code using your existing development tools. All you need is a good code editor, and I’m sure you’ve already chosen a favorite for coding websites. You’ll also be using the command line quite a bit, especially for the server code. But don’t worry if you’re not comfortable with the command line; this book gives you exactly the commands you need to run.
Later in this book, you’ll need to download and install the software development kits (SDKs) for iPhone and Android development. These SDKs are provided as part of the Xcode (for iPhone) and Eclipse (for Android) development environments. Xcode runs only on a Mac, but you can run Eclipse on all three operating systems.
The final deve...

Table of contents

  1. Cover
  2. Contents
  3. Chapter 1: Introducing Cloud-Based Mobile Apps
  4. Chapter 2: Mobilizing Your App
  5. Chapter 3: Building Mobile Web Apps
  6. Chapter 4: Enhancing Your App
  7. Chapter 5: Building Apps in the Cloud
  8. Chapter 6: Use the Cloud!
  9. Chapter 7: Enhancing the User Experience
  10. Chapter 8: Working with the Cloud
  11. Chapter 9: Creating Hybrid Apps that Run Natively
  12. Chapter 10: Building a Photo-Blogging App
  13. Chapter 11: Working with Cloud Development Services
  14. Chapter 12: Going Social!
  15. Chapter 13: App Stores
  16. Chapter 14: Selling Your App
  17. Appendix: Exercise Solutions
  18. Introduction
  19. Advertisement
  20. Download CD/DVD content