Flex Mobile in Action
eBook - ePub

Flex Mobile in Action

Jonathan Campos

Partager le livre
  1. 372 pages
  2. English
  3. ePUB (adapté aux mobiles)
  4. Disponible sur iOS et Android
eBook - ePub

Flex Mobile in Action

Jonathan Campos

DĂ©tails du livre
Aperçu du livre
Table des matiĂšres
Citations

À propos de ce livre

With constant innovation on the iOS, Android, and BlackBerry platforms, the mobile device landscape is complicated and changing rapidly. Adobe leads the way with Flex Mobile, a new technology that provides a single development environment that exports applications to any mobile platform, eliminating the need to write and re-write code. Flex Mobile in Action teaches how to use the powerful Flex Platform to create compelling mobile applications that can stretch across Apple iOS, Android, and BlackBerry devices. It contains practical application development techniques such as accessing native device capabilities, choosing the right architectural patterns, and building data access models. It also covers the new Flex 4.6 with Flash Builder which builds on Flex 4.5 for the creation of outstanding mobile applications.

Foire aux questions

Comment puis-je résilier mon abonnement ?
Il vous suffit de vous rendre dans la section compte dans paramĂštres et de cliquer sur « RĂ©silier l’abonnement ». C’est aussi simple que cela ! Une fois que vous aurez rĂ©siliĂ© votre abonnement, il restera actif pour le reste de la pĂ©riode pour laquelle vous avez payĂ©. DĂ©couvrez-en plus ici.
Puis-je / comment puis-je télécharger des livres ?
Pour le moment, tous nos livres en format ePub adaptĂ©s aux mobiles peuvent ĂȘtre tĂ©lĂ©chargĂ©s via l’application. La plupart de nos PDF sont Ă©galement disponibles en tĂ©lĂ©chargement et les autres seront tĂ©lĂ©chargeables trĂšs prochainement. DĂ©couvrez-en plus ici.
Quelle est la différence entre les formules tarifaires ?
Les deux abonnements vous donnent un accĂšs complet Ă  la bibliothĂšque et Ă  toutes les fonctionnalitĂ©s de Perlego. Les seules diffĂ©rences sont les tarifs ainsi que la pĂ©riode d’abonnement : avec l’abonnement annuel, vous Ă©conomiserez environ 30 % par rapport Ă  12 mois d’abonnement mensuel.
Qu’est-ce que Perlego ?
Nous sommes un service d’abonnement Ă  des ouvrages universitaires en ligne, oĂč vous pouvez accĂ©der Ă  toute une bibliothĂšque pour un prix infĂ©rieur Ă  celui d’un seul livre par mois. Avec plus d’un million de livres sur plus de 1 000 sujets, nous avons ce qu’il vous faut ! DĂ©couvrez-en plus ici.
Prenez-vous en charge la synthÚse vocale ?
Recherchez le symbole Écouter sur votre prochain livre pour voir si vous pouvez l’écouter. L’outil Écouter lit le texte Ă  haute voix pour vous, en surlignant le passage qui est en cours de lecture. Vous pouvez le mettre sur pause, l’accĂ©lĂ©rer ou le ralentir. DĂ©couvrez-en plus ici.
Est-ce que Flex Mobile in Action est un PDF/ePUB en ligne ?
Oui, vous pouvez accĂ©der Ă  Flex Mobile in Action par Jonathan Campos en format PDF et/ou ePUB ainsi qu’à d’autres livres populaires dans Informatique et Programmation. Nous disposons de plus d’un million d’ouvrages Ă  dĂ©couvrir dans notre catalogue.

Informations

Éditeur
Manning
Année
2012
ISBN
9781638352723

Part 1. Getting started

Application development is in a transition period no matter what applications you’re used to creating. Applications are becoming apps, and the steps required to prepare applications for the desktop and the web are continuing to grow to include many mobile platforms.
In this part of the book we’ll focus on some concepts and pain points when creating mobile applications, including the issue of multiple operating systems and technologies. We’ll also look at a quick Hello World example so that you can see how easy it is to create an application for various platforms using Flex.

1 Getting to know Flex Mobile

This chapter covers
  • Defining multidevice and multiscreen
  • The great debate: native versus cross-platform development
  • Mobile components
  • Hello World example
You, a mild-mannered programmer, work tirelessly on your computer to create desktop and web applications for your own personal gain and that of your clients. Suddenly you get a call on your phone from a new client asking for a mobile application! You spring into action and take the case only to realize later that mobile development is very different from the application development you’ve done in the past. Enter Flex Mobile.
With the latest release of Flex, Flex 4.6—the successor to Flex 4.5 (codenamed Flex Hero), you can easily make applications that run on the web, desktop, or a wide range of mobile phones and tablets with the same codebase and familiar development techniques between each platform. This means you don’t have to learn a new language or relearn how a button works each time you need to deploy to a new device. Instead, you can use the knowledge you have, extend it, and deploy to each new platform.
What makes Flex so wonderful for application development? Built into the Flex framework is a myriad of components created with the sole purpose of creating amazing applications. With many tested, extendable components, you can create applications easily without having to re-create the wheel each time.
In this chapter we’ll discuss the latest changes in mobile application development, as well as how to decide between going native and using a cross-platform solution. Once you see the benefits of the Flash platform for multiscreen development, we’ll look at what Flex Mobile is, work through a basic Hello World example, and finally introduce the running example that will be used throughout the entirety of the book.

1.1 Learning key terms

Before jumping right into Flex Mobile it’s important to understand some key terms surrounding mobile and discuss the debate between native and cross-platform development.
Native development
When we talk about going native, we’re referring to the use of the device’s native software development kit (SDK), and therefore programming language, to create applications. For iOS development you’ve probably heard that native development means learning the Objective-C language, whereas Android includes its own framework built around the Java language.
Cross-platform development
When we talk about going cross-platform, we’re talking about using one of the development platforms, such as Flex (ActionScript) or HTML (and JavaScript), to create applications that work similarly, if not the same, across all devices.
Multidevice
Thanks in part to the changing mobile landscape, two new terms are thrown around surprisingly often: multidevice development and multiscreen development. Although some circles may argue the unique differences of these terms, on the whole these terms are synonymous.
When we talk about multidevice or multiscreen application development, we’re ultimately discussing creating a single application that works on multiple devices or multiple screens. Depending on your interpretation of the word, you may believe that the code is 100% the same between each device or that the applications need to share a common codebase.
For some developers, when we talk about multidevice, we’re discussing the various mobile platforms, and when we talk about multiscreen, we’re also bringing in web, desktop, and television screens, to name a few. For the purposes of this book, we’ll treat the terms as the same and focus specifically on creating an application that works across multiple platforms.
Native development
When we talk about going native, we’re referring to the use of the device’s native software development kit (SDK), and therefore programming language, to create applications. For iOS development you’ve probably heard that native development means learning the Objective-C language, whereas Android includes its own framework built around the Java language.
Cross-platform development
When we talk about going cross-platform, we’re talking about using one of the development platforms, such as Flex (ActionScript) or HTML (and JavaScript), to create applications that work similarly, if not the same, across all devices.
Multidevice
Thanks in part to the changing mobile landscape, two new terms are thrown around surprisingly often: multidevice development and multiscreen development. Although some circles may argue the unique differences of these terms, on the whole these terms are synonymous.
When we talk about multidevice or multiscreen application development, we’re ultimately discussing creating a single application that works on multiple devices or multiple screens. Depending on your interpretation of the word, you may believe that the code is 100% the same between each device or that the applications need to share a common codebase.
For some developers, when we talk about multidevice, we’re discussing the various mobile platforms, and when we talk about multiscreen, we’re also bringing in web, desktop, and television screens, to name a few. For the purposes of this book, we’ll treat the terms as the same and focus specifically on creating an application that works across multiple platforms.

1.2 Deciding between native and cross-platform

Within various development circles there’s a big debate: go native or go cross-platform. Although the final answer is always unique to the team and developers, there are some major points to take into consideration before making a final decision. I do want to point out that either way you can create some great applications.
For native development, some reasons to use native code are the execution speed, ease of access to core or custom features, and final package size. But the downside to going with native code is the limited reuse of code, longer development cycles for projects requiring multiple platforms, and more languages that your teams must be proficient in to successfully execute an application.
With cross-platform development, some reasons to use a cross-platform language are the development speed, consistency of applications across devices, time and cost savings, and finally only having to master or use a single language. As with any decision, there are some downsides. For cross-platform develo...

Table des matiĂšres