Tài liệu hạn chế xem trước, để xem đầy đủ mời bạn chọn Tải xuống
1
/ 50 trang
THÔNG TIN TÀI LIỆU
Thông tin cơ bản
Định dạng
Số trang
50
Dung lượng
2,83 MB
Nội dung
this print for content only—size & color not accurate spine = 0.885" 384 page count Books for professionals By professionals ® Beginning Android Dear Reader, First, welcome to the world of Android! We’re entering a new era of mobile application development, one marked by open platforms and open source, to take ‘walled gardens’ and make them green houses for any and all to participate in. Android is relatively easy for developers, and I believe that this innovation will help generate a large ecosystem of developers and consumers within a very short time. This means that budding developers such as yourself will have many opportunities to design and build your own applications and you’ll have a huge and hungry customer base. Second, welcome to the book! Its purpose is to start you on your way with building Android applications, and to help you master the learning curve. Android is already a rich framework, comparable in many ways to the richness of desktop Java environments. This means that there is a lot of cool stuff for you to pick up along your journey in order to create the slickest, most useful apps you can imagine. The source code for the code samples in this book is all available from the Apress site, so you can stay as hands-on and practical as you like while I intro- duce you to the core of Android, and invite you to experiment with the various classes and APIs we’ll be looking at. By the time you’ve finished this book, you’ll be creating your own Android applications and asking yourself what your next great application will be ! Enjoy! Mark Murphy US $44.99 Shelve in Mobile Computing User level: Beginner–Intermediate Murphy Beginning Android The eXperT’s Voice ® in open source Beginning Android cyan MaGenTa yelloW Black panTone 123 c Mark L. Murphy Companion eBook Available www.apress.com SOURCE CODE ONLINE Companion eBook See last page for details on $10 eBook version Master Android from first principles and begin the journey toward your own successful Android applications! ISBN 978-1-4302-2419-8 9 781430 224198 5 4 4 9 9 [...]... the application itself ... when you create a new Android project, you get a single activity element: Murphy_2419-8C03.fm Page 11 Wednesday, April 8, 2009 9:07 AM CHAPTER 3 ■ INSIDE THE MANIFEST Note the namespace declaration Curiously, the generated manifests apply it only on the attributes, not the elements (e.g., it’s manifest, not android: manifest)... of the root manifest element in your AndroidManifest.xml file The uses-sdk element has one attribute, minSdkVersion, indicating which SDK version your application requires: 11 Murphy_2419-8C03.fm Page 12 Wednesday, April 8, 2009 9:07 AM 12 CHAPTER 3 ■ INSIDE THE MANIFEST This element supplies android: name for the class implementing the activity, android: label for the display name of the activity, and (frequently) an intent-filter child element describing... does not cover in any detail how to download or install the Android development tools, either the Eclipse IDE flavor or the standalone flavor The Android Web site2 covers this quite nicely The material in the book should be relevant whether you use the IDE or not You should download, install, and test out the Android development tools from the Android Web site before trying any of the examples listed... 8, 2009 9:07 AM CHAPTER 3 ■■■ Inside the Manifest T he foundation for any Android application is the manifest file: AndroidManifest.xml in the root of your project Here is where you declare what is inside your application—the activities, the services, and so on You also indicate how these pieces attach themselves to the overall Android system; for example, you indicate which activity (or activities)... minor modifications On the other end of the spectrum, the manifest file for the Android API demo suite is over 1,000 lines long Your production Android applications will probably fall somewhere in the middle Most of the interesting bits of the manifest will be described in greater detail in the chapters on their associated Android features For example, the service element is described in greater detail... for your interest in developing applications for Android! Increasingly, people will access Internet-based services using so-called “non-traditional” means, such as mobile devices The more we do in that space now, the more that people will help invest in that space to make it easier to build more powerful mobile applications in the future Android is new Android- powered devices appeared on the scene first . in Mobile Computing User level: Beginner–Intermediate Murphy Beginning Android The eXperT’s Voice ® in open source Beginning Android cyan MaGenTa yelloW Black panTone 123 c Mark L. Murphy Companion. 9 9