1. Trang chủ
  2. » Kinh Doanh - Tiếp Thị

Android application development for dummies hiKjHb06SIKAuy8RkSMHLchRxP83N3xq pdf

388 8 0

Đang tải... (xem toàn văn)

Tài liệu hạn chế xem trước, để xem đầy đủ mời bạn chọn Tải xuống

THÔNG TIN TÀI LIỆU

Thông tin cơ bản

Định dạng
Số trang 388
Dung lượng 9,17 MB

Nội dung

Programming Languages/Java ™ Even if you’ve never written a mobile application, this book has the know-how you need to turn your great ideas into cool apps for the Android platform With millions of smartphone users and a cornucopia of carriers, Android is a great place to ply the app development trade This book shows you from the ground up how to set up your environment and create an app Read on to become an Android developer extraordinaire! • Welcome to Android — learn what makes a great Android app, how to use the SDK, ways to work with mobile screens, and how the development process works • Make users happy — find out how to design an interface that mobile users will love • Learn the code — work with the activity lifecycle and Android framework classes, use the Eclipse debugger, and create a home screen widget for your app Open the book and find: • Cool ways to use the accelerometer in your app • How to turn mobile limitations into opportunities • Tips on installing and setting up the tools • Step-by-step coding directions • Ways to make your apps more marketable • How to create really useful menus • Advice on app pricing • Ten great sample apps and SDKs, including code • Beyond the basics — take your skills up a notch with apps that involve SQLite databases and multiple screens Android™ Application Development Here’s just what you need to start developing feature-rich, amazing Android apps g Easier! Making Everythin Appli • Create apps for hot smartphones like Droid™ X, Galaxy S, and MyTouch® Go to Dummies.com® for videos, step-by-step examples, how-to articles, or to shop! • Download the SDK and get Eclipse up and running • Code Android applications • Submit your apps to the Android Market $29.99 US / $35.99 CN / £21.99 UK Donn Felker is an independent consultant specializing in Android and NET technologies He has been a technical architect, software developer, and programmer analyst for more than a decade, with experience that covers desktop, Web, and mobile development d i o r d n Acation Development Learn to: • Price and publish — pick the right price for your app and get it into the Android Market Visit the companion Web site at www.dummies.com/go/ androidappdevfd for source code, updates, and other examples to help you in the development process ™ ISBN 978-0-470-77018-4 Donn Felker Felker Independent software development consultant Get More and Do More at Dummies.com® Start with FREE Cheat Sheets Cheat Sheets include • Checklists • Charts • Common Instructions • And Other Good Stuff! To access the Cheat Sheet created specifically for this book, go to www.dummies.com/cheatsheet/androidapplicationdevelopment s p p A e l i Mob Get Smart at Dummies.com Dummies.com makes your life easier with 1,000s of answers on everything from removing wallpaper to using the latest version of Windows Check out our • Videos • Illustrated Articles • Step-by-Step Instructions Plus, each month you can win valuable prizes by entering our Dummies.com sweepstakes * Want a weekly dose of Dummies? Sign up for Newsletters on • Digital Photography • Microsoft Windows & Office • Personal Finance & Investing • Health & Wellness • Computing, iPods & Cell Phones • eBay • Internet • Food, Home & Garden Find out “HOW” at Dummies.com *Sweepstakes not currently available in all countries; visit Dummies.com for official rules There’s a Dummies App for This and That With more than 200 million books in print and over 1,600 unique titles, Dummies is a global leader in how-to information Now you can get the same great Dummies information in an App With topics such as Wine, Spanish, Digital Photography, Certification, and more, you’ll have instant access to the topics you need to know in a format you can trust To get information on all our Dummies apps, visit the following: www.Dummies.com/go/mobile from your computer www.Dummies.com/go/iphone/apps from your phone Android ™ Application Development FOR DUMmIES ‰ Android ™ Application Development FOR DUMmIES ‰ by Donn Felker with Joshua Dobbs AndroidTM Application Development For Dummies ® Published by Wiley Publishing, Inc 111 River Street Hoboken, NJ 07030-5774 www.wiley.com Copyright © 2011 by Wiley Publishing, Inc., Indianapolis, Indiana Published by Wiley Publishing, Inc., Indianapolis, Indiana Published simultaneously in Canada No part of this publication may be reproduced, stored in a retrieval system or transmitted in any form or by any means, electronic, mechanical, photocopying, recording, scanning or otherwise, except as permitted under Sections 107 or 108 of the 1976 United States Copyright Act, without either the prior written permission of the Publisher, or authorization through payment of the appropriate per-copy fee to the Copyright Clearance Center, 222 Rosewood Drive, Danvers, MA 01923, (978) 750-8400, fax (978) 646-8600 Requests to the Publisher for permission should be addressed to the Permissions Department, John Wiley & Sons, Inc., 111 River Street, Hoboken, NJ 07030, (201) 748-6011, fax (201) 748-6008, or online at http:// www.wiley.com/go/permissions Trademarks: Wiley, the Wiley Publishing logo, For Dummies, the Dummies Man logo, A Reference for the Rest of Us!, The Dummies Way, Dummies Daily, The Fun and Easy Way, Dummies.com, Making Everything Easier, and related trade dress are trademarks or registered trademarks of John Wiley & Sons, Inc and/ or its affiliates in the United States and other countries, and may not be used without written permission Android is a trademark of Google, Inc All other trademarks are the property of their respective owners Wiley Publishing, Inc., is not associated with any product or vendor mentioned in this book LIMIT OF LIABILITY/DISCLAIMER OF WARRANTY: THE PUBLISHER AND THE AUTHOR MAKE NO REPRESENTATIONS OR WARRANTIES WITH RESPECT TO THE ACCURACY OR COMPLETENESS OF THE CONTENTS OF THIS WORK AND SPECIFICALLY DISCLAIM ALL WARRANTIES, INCLUDING WITHOUT LIMITATION WARRANTIES OF FITNESS FOR A PARTICULAR PURPOSE NO WARRANTY MAY BE CREATED OR EXTENDED BY SALES OR PROMOTIONAL MATERIALS THE ADVICE AND STRATEGIES CONTAINED HEREIN MAY NOT BE SUITABLE FOR EVERY SITUATION THIS WORK IS SOLD WITH THE UNDERSTANDING THAT THE PUBLISHER IS NOT ENGAGED IN RENDERING LEGAL, ACCOUNTING, OR OTHER PROFESSIONAL SERVICES IF PROFESSIONAL ASSISTANCE IS REQUIRED, THE SERVICES OF A COMPETENT PROFESSIONAL PERSON SHOULD BE SOUGHT NEITHER THE PUBLISHER NOR THE AUTHOR SHALL BE LIABLE FOR DAMAGES ARISING HEREFROM THE FACT THAT AN ORGANIZATION OR WEBSITE IS REFERRED TO IN THIS WORK AS A CITATION AND/OR A POTENTIAL SOURCE OF FURTHER INFORMATION DOES NOT MEAN THAT THE AUTHOR OR THE PUBLISHER ENDORSES THE INFORMATION THE ORGANIZATION OR WEBSITE MAY PROVIDE OR RECOMMENDATIONS IT MAY MAKE FURTHER, READERS SHOULD BE AWARE THAT INTERNET WEBSITES LISTED IN THIS WORK MAY HAVE CHANGED OR DISAPPEARED BETWEEN WHEN THIS WORK WAS WRITTEN AND WHEN IT IS READ For general information on our other products and services, please contact our Customer Care Department within the U.S at 877-762-2974, outside the U.S at 317-572-3993, or fax 317-572-4002 For technical support, please visit www.wiley.com/techsupport Wiley also publishes its books in a variety of electronic formats Some content that appears in print may not be available in electronic books Library of Congress Control Number: 2010939962 ISBN: 978-0-470-77018-4 Manufactured in the United States of America 10 About the Authors Donn Felker is a recognized leader in the development and consultation of state-of-the-art, cutting-edge software in the mobile and Web fields He is an independent consultant with over 10 years of professional experience in various markets that include entertainment, health, retail, insurance, financial, and real estate He is a mobile junkie, serial entrepreneur, and creative innovator in all things mobile and Web He is the founder of Agilevent, an innovative creative development firm that has done work for small startups as well as Fortune 500 companies He is a Microsoft ASP Insider, an MCTS for NET Framework 2.0 and 3.5 Web Applications, and a certified ScrumMaster He’s a national speaker on topics that include Android, NET, and software architecture He is the author of the TekPub.com Introduction to Android video series He is a writer, presenter, and consultant on various topics ranging from architecture to development in general, agile practices, and patterns and practices Follow Donn on Twitter (@donnfelker) or read his blog here: http://blog.donnfelker.com Joshua Dobbs is a senior lead Web application developer for a large electronics manufacturer in Southern California He has more than ten years’ experience in Web and desktop application development Josh was an early adopter of the Android platform and creates Android apps in his spare time His apps have been downloaded more than million times, and he was selected by Google as top Android developer for its Device Seeding Program His Web site is www.joshdobbs.com Dedication To my dogs, Lulu and Macho, and my cat, Vito: Thanks for keeping me company in the cold basement while I cranked out page after page in the wee hours of the morning while everyone else was asleep Writing is a lonely gig, and your company helped the time pass much easier (and kept my feet and lap warm too) To my dearest daughter, Sophia, who made even the toughest days brighter through her contagious, infectious laughter and antics I love you Most of all, to my gorgeous wife, Ginamarie, who has always been very supportive of all my crazy, harebrained ideas over the years I would not have gotten where I am in my life if it were not for your support I love you Download from Wow! eBook 352 Android Application Development For Dummies projects (continued) Eclipse, 55–61 emulators, 65–68 error messages, 62–63 gen folder, 86–88 Hello Android app, 72–78 launch configurations, 68–72 libs and Referenced Libraries folder, 85–86 navigating folders, 78–79 resources (res) folder, 82–85 source (src) folder, 80–81 starting, 214 target Android Library folder, 81–82 promo shots, 204 promo text, 204 Properties editor, 91 Properties section, 59 pt (points), 156 Publish option, 205 putString( ) method, 326, 327 px (pixels), 156 •Q• qualities, 232 query( ) method, 278, 279 query (read) operation, 279–280 •R• raw asset files, 82 raw/ directory, 84 read (query) operation, 279–280 Read Phone State permissions, 90 rebooting devices checking boot receivers, 302 creating boot receivers, 300–302 RECEIVE_BOOT_COMPLETED permission, 300 receivers, 14–15 Referenced Libraries folder, 85–86 registerButtonListeners AndSetDefaultText( ) method, 245–246 registerForContextMenu( ) method, 223 registering receivers, 14–15 registration fee, 196 reinstalling applications, 137 RelativeLayout layout, 99 release( ) method, 298 Reminder Date field, 217 reminder scripts, 212 reminder tasks, 235 Reminder Time field, 217 reminder_edit.xml file, 218–219 reminderCursor - c parameter, 284 ReminderEditActivity, 285–287 ReminderListActivity class, 235–236, 281–282 ReminderManager class, 293–294 ReminderManager.java class, 292 RemindersDbAdapter class, 267, 271–278 RemindersDbAdapter deleteReminder( ) method, 284 ReminderService class, 295, 298–299 ReminderService.java class, 293 remote views, 165–166 RemoteView architecture, 165 RemoteView object, 179–180 Replica Island application, 335 RequestCode parameter, 171, 236 res (resources) folder, 82–85 res directory, 84 res/layout directory, 220 resource/ mechanism, 85 resources colors, 158 dimensions, 156 global applications, 161–162 images, 160–161 menus, 157 moving strings into, 158–160 naming in the values directory, 85 styles, 156–157 themes, 157 values, 157 resources (res) folder, 82–85 resultCode parameter, 236 Index Resume option, 148 resuming activity state, 118 RingtonePreference preference, 314 R.java file, 87–88 R.layout.reminder_row code, 221 RoboGuice framework, 338 ROW_ID property, 269 Run As configuration dialog box, 133 Run As dialog box, 73 run configuration, 68–71 Run Configurations dialog box, 69 Run option, 68 run time activities at, 323–327 errors, 143–144 exceptions, 15 •S• samples folder, 48, 52 Save option, 205 saveState( ) method, 274–275, 289 scale-independent pixels (sp) unit, 156 scheduling reminder scripts, 212 Screen Shot button, 202 screens creating adding/editing layouts, 217–220 creating and editing task activities, 216–217 creating task lists, 214–216 density of, 110 getting shots, 201–202 of launching application, 73–76 matching icon sizes with density of, 110 placing images on, 105–106 placing widgets on, 184–185 preference, 317–320 saving values to databases, 273–275 starting new projects, 214 Screenshots section, 204 SCREENSIZE value, 67 scrollbars property, 242 ScrollView parent view, 219 SD Card, 20 SD Card permission, 265 SD Card section, 66 SDK (software development kit) API and SDK samples, 51 API demos, 52 debugging, 51 downloading, 35–38 emulators, 49 layout tools, 98–99 layouts, 99 navigating, 47–49 overview, 18–19 physical Android devices, 50–51 samples, 51 setting the location of, 46–47 tools path, 38–40 SDK Platform Android 2.2 check box, 36 SDK/AVD Manager icon, 65 Secure Sockets Layer (SSL) libraries, 28 security model, 27 security of applications, 22 security warning, 34 Security Warning dialog box, 41 selection parameter, 279 selectionArgs parameter, 279 self-signed certificates, 189 sendBroadcast( ) method, 168 services, 17 set breakpoints, 146 setButtonClickListener( ) method, 127 setClickable( ) method, 125 setContentView( ) method, 215, 221 setKeyListener( ) method, 321 setLatestEventInfo( ) method, 309 setListAdapter( ) method, 221 setOnClickPendingIntent( ) method, 180 shared preferences, 262 SharedPreferences object, 323 short clicks, 222–223 showDatePicker( ) method, 248 showDialog( ) method, 246–250 showTimePicker( ) method, 251–252 353 354 Android Application Development For Dummies Sign In and Continue button, 196 sign-in confirmation page, 197 signing applications creating keystores, 190 safeguarding keystores, 190 Silent Mode Toggle application creating, 94–95 layout of, 115 toggling with AudioManager, 129–133 silent notification icon, 134 silent phone icon, 152 SimpleCursorAdapter, 283–284 SimpleDateFormat object, 249 sites, 44 Skin option, 66 social networking, 12 software development kit See SDK software tools audio and video support, 21 contacts, 21 Google APIs, 22–23 Internet, 21 security, 22 Sound option, 305 source (src) folder, 80–81 sp (scale-independent pixels) unit, 156 SQL table, 269–270 SQLite database closing databases, 271–272 creating database tables, 270–271 creating Java files to hold database code, 267 defining key elements, 267–268 deleting tasks, 284 inserting task entries, 272–280 returning tasks with cursors, 281–283 SimpleCursorAdapter, 283–284 updating tasks, 284–289 visualizing SQL table, 269–270 SQLiteOpenHelper constructor, 270–271 src (source) folder, 80–81 src property, 176 SSL (Secure Sockets Layer) libraries, 28 stacks, 118 startActivity( ) method, 168, 229 startActivityForResult( ) method, 235 startManagingCursor( ) method, 282 startService( ) method, 168 states, 118 static content scenarios, 102 status bar, 303–311 step execution navigation, 148 stopped activity state, 118 storage See also SQLite database asking user for permission, 264–265 choosing options, 263 viewing options, 262–263 string resources adding, 310 adding to preferences, 319–320 strings, 158–160 strings.xml file, 161–162 strings.xml filename conventions, 84, 85 styles, 156–157 styles.xml filename conventions, 84, 85 Submenu menu, 231 switch statements, 234 •T• table parameter, 279, 280 TableLayout layout, 99 tables database, 270–271 SQL, 269–270 TAG constant, 140 target Android Library folder, 81–82 Target box, 66 Target tab, 70 task activities, 216–217 task entries delete operation, 280 insert operation, 278–279 query (read) operation, 279–280 RemindersDbAdapter class, 275–278 saving values from screens to databases, 273–275 update operation, 280 task lists, 214–216 Index Task Reminder application, 211 task reminder application click events, 222–224 creating adding/editing layouts, 217–220 creating and editing task activities, 216–217 creating choosers, 226–229 creating task lists, 214–216 distracting users, 213 fake data, 221–222 List Activity class, 220–224 long clicks, 223–224 retrieving values from previous activities, 225–226 scheduling reminder scripts, 212 screens, 213–220 short clicks, 222–223 starting activities with intents, 224–225 starting new projects, 214 storing data, 212 TaskPreferences file, 320 telephony manager feature, 28 temp folder, 48 templates, 109 testing applications, 152–153 TextView label, 245 TextWatcher( ) method, 257 themes, 157 this code, 221 this: Context parameter, 284 this Java keyword, 271 threads, 17 time picker creating showTimePicker( ) method, 251–252 setting up time button click listener, 250 TimePicker class, 244 Title field, 217, 219 to - - to parameter, 284 Toast messages, 258 toasts, 213, 258 Toggle Breakpoint option, 145 toggle button widgets, 111–112 Toggle Silent Mode button, 134, 152 Toggle Silent Mode setting, 112 toggleUi( ) method, 132, 150 toggling silent mode with AudioManager, 129–133 tools accelerometer, 20 Android framework, 27–28 Android source code, 26 API and SDK samples, 51 API demos, 52 application framework, 28–29 audio and video support, 21 choosing, 189 contacts, 21 debugging, 51, 138 downloading JDK, 33–35 Draw 9-patch, 338 DroidDraw, 338 droid-fu, 337 emulators, 49 Exerciser Monkey, 339 Git, 339–340 Google APIs, 22–23 GPS, 19 Hierarchy Viewer, 338–339 installing JDK, 35 Internet, 21 Java, 31 layoutopt, 339 Linux 2.6 kernel, 27 notifying users using, 304–307 Open Handset Alliance libraries (OHA), 30 Paint.NET and GIMP, 340 physical Android devices, 50–51 RoboGuice, 338 SD Cards, 20 SDK’s layout, 98–99 security, 22 setting path, 38–40 touchscreen, 19 zipalign, 339 tools directory, 138 tools folder, 48 touch events, 124–125 touchscreen, 19 355 356 Android Application Development For Dummies True option, 147 try-catch block, 298 typed arrays, 157 types, 169 •U• UI See user interface Unknown Sources check box, 135 update( ) method, 280 updateDateButtonText( ) method, 249 updatePeriodMillis property, 181, 184 updateTimeButtonText( ) method, 252 updating status bar clearing notifications, 311 notification manager, 307–310 notifying users using tools, 304–307 updating notifications, 310 viewing status bar icons, 303–304 updating tasks, 284–289 upgrading databases, 272 Upload an Application page, 206 Upload Application button, 203 uploading applications, 203–207 USB Driver package check box, 50 usb_driver folder, 48 Use Default Location check box, 58 user actions, 234–235 user click events long clicks, 223–224 short clicks, 222–223 user input alert dialog box, 252–257 creating interface, 241–244 date picker, 245–250 keyboard events, 124 picker buttons, 244–245 time picker, 250–252 touch events, 124–125 validating input, 257–259 user interface (UI) adding images to applications, 104–108 creating launcher icons for applications, 108–111 developing, 102–104 displaying, 123–124 overview, 93 previewing applications in visual designer, 113–115 SDK’s layout tools, 98–99 Silent Mode Toggle application, 94–95 toggle button widgets, 111–112 visual designer, 99–102 XML layout file, 97–98 user selections, 238–239 •V• v (verbose) option, 140 v parameter, 223, 224 validating input other techniques, 258–259 toasting users, 258 Validity field, 192 values retrieving from previous activities, 225–226 setting fill_parent and wrap_content, 103–104 setting layout_width and layout_height, 103 type resources, 157 values directory, 84–85 values parameter, 279, 280 Variable Name field, 39 Variable Value field, 39 verbose (v) option, 140 version code, 88–89 version name, 89 versioning, 60 versions codes and compatibility of, 64 targeting, 48 Vibration option, 305 video support, 21 View class, 98 view properties, 101 view system feature, 28 Index views inspecting properties, 101–102 overview, 16 remote, 165–166 setting fill_parent and wrap_ content values, 103–104 setting layout_width and layout_ height values, 103 XML layout file, 98 visible lifetime, 120 visual designer inspecting view properties, 101–102 opening, 99–100 previewing applications in, 113–115 •W• WakeReminderIntentService class, 296–298 Web Site field, 205 Web Site URL field, 195 WebKit Web browser engine, 27 whereArgs parameter, 280 whereClause parameter, 280 while loop, 301 widgets AppWidgetProviders, 166–167 communicating with, 173–174 EditText, 241–243 home-screen, 172–184 overview, 16 placing on home screen, 184–185 remote views, 165–166 toggle button, 111–112 workflow, 309–310 Workspace Launcher dialog box, 42 wrap_content value, 103–104 Write External Storage permissions, 90 wtf option, 140 •X• XML declaration, 97 XML file of context menus, 237 default XML declaration, 97 defining, 232–234 layout type, 98 viewing attributes, 102–103 views, 98 xmlns:android=” ” layout attribute, 103 •Z• zipalign tool, 339 357 Notes Notes Download from Wow! eBook Notes Apple & Macs Computer Hardware Digital Photography Hobbies/General iPad For Dummies 978-0-470-58027-1 BlackBerry For Dummies, 4th Edition 978-0-470-60700-8 Digital SLR Cameras & Photography For Dummies, 3rd Edition 978-0-470-46606-3 Chess For Dummies, 2nd Edition 978-0-7645-8404-6 Computers For Seniors For Dummies, 2nd Edition 978-0-470-53483-0 Photoshop Elements For Dummies 978-0-470-52967-6 Drawing Cartoons & Comics For Dummies 978-0-470-42683-8 PCs For Dummies, Windows Edition 978-0-470-46542-4 Gardening Laptops For Dummies, 4th Edition 978-0-470-57829-2 Organic Gardening For Dummies, 2nd Edition 978-0-470-43067-5 iPhone For Dummies, 4th Edition 978-0-470-87870-5 MacBook For Dummies, 3rd Edition 978-0-470-76918-8 Mac OS X Snow Leopard For Dummies 978-0-470-43543-4 Business Bookkeeping For Dummies 978-0-7645-9848-7 Job Interviews For Dummies, 3rd Edition 978-0-470-17748-8 Resumes For Dummies, 5th Edition 978-0-470-08037-5 Starting an Online Business For Dummies, 6th Edition 978-0-470-60210-2 Stock Investing For Dummies, 3rd Edition 978-0-470-40114-9 Successful Time Management For Dummies 978-0-470-29034-7 Gardening Basics For Dummies 978-0-470-03749-2 Cooking & Entertaining Cooking Basics For Dummies, 3rd Edition 978-0-7645-7206-7 Green/Sustainable Raising Chickens For Dummies 978-0-470-46544-8 Knitting For Dummies, 2nd Edition 978-0-470-28747-7 Organizing For Dummies 978-0-7645-5300-4 Su Doku For Dummies 978-0-470-01892-7 Home Improvement Home Maintenance For Dummies, 2nd Edition 978-0-470-43063-7 Wine For Dummies, 4th Edition 978-0-470-04579-4 Green Cleaning For Dummies 978-0-470-39106-8 Diet & Nutrition Health Dieting For Dummies, 2nd Edition 978-0-7645-4149-0 Diabetes For Dummies, 3rd Edition 978-0-470-27086-8 Nutrition For Dummies, 4th Edition 978-0-471-79868-2 Food Allergies For Dummies 978-0-470-09584-3 Living the Country Lifestyle All-in-One For Dummies 978-0-470-43061-3 Weight Training For Dummies, 3rd Edition 978-0-471-76845-6 Living Gluten-Free For Dummies, 2nd Edition 978-0-470-58589-4 Solar Power Your Home For Dummies, 2nd Edition 978-0-470-59678-4 Home Theater For Dummies, 3rd Edition 978-0-470-41189-6 Available wherever books are sold For more information or to order direct: U.S customers visit www.dummies.com or call 1-877-762-2974 U.K customers visit www.wileyeurope.com or call (0) 1243 843291 Canadian customers visit www.wiley.ca or call 1-800-567-4797 Internet Math & Science Parenting & Education Sports Blogging For Dummies, 3rd Edition 978-0-470-61996-4 Algebra I For Dummies, 2nd Edition 978-0-470-55964-2 Parenting For Dummies, 2nd Edition 978-0-7645-5418-6 Baseball For Dummies, 3rd Edition 978-0-7645-7537-2 eBay For Dummies, 6th Edition 978-0-470-49741-8 Biology For Dummies, 2nd Edition 978-0-470-59875-7 Facebook For Dummies, 3rd Edition 978-0-470-87804-0 Calculus For Dummies 978-0-7645-2498-1 Chemistry For Dummies 978-0-7645-5430-8 Web Marketing For Dummies, 2nd Edition 978-0-470-37181-7 Microsoft Office Excel 2010 For Dummies 978-0-470-48953-6 WordPress For Dummies, 3rd Edition 978-0-470-59274-8 Office 2010 All-in-One For Dummies 978-0-470-49748-7 Language & Foreign Language Office 2010 For Dummies, Book + DVD Bundle 978-0-470-62698-6 French For Dummies 978-0-7645-5193-2 Word 2010 For Dummies 978-0-470-48772-3 Italian Phrases For Dummies 978-0-7645-7203-6 Music Guitar For Dummies, 2nd Edition 978-0-7645-9904-0 Spanish For Dummies, 2nd Edition 978-0-470-87855-2 iPod & iTunes For Dummies, 8th Edition 978-0-470-87871-2 Spanish For Dummies, Audio Set 978-0-470-09585-0 Making Everything ™ Easier! Piano Exercises For Dummies 978-0-470-38765-8 3rd Edition Facebook Learn to: • Create a Profile, navigate the site, and use privacy features • Find friends and post messages • Add applications and upload photos to your Facebook page • Build a fan page or get the word out about an event Leah Pearlman Carolyn Abram Making Everything ™ Easier! Type Diabetes For Dummies 978-0-470-17811-9 Pets Cats For Dummies, 2nd Edition 978-0-7645-5275-5 Web Development Puppies For Dummies, 2nd Edition 978-0-470-03717-1 Web Design All-in-One For Dummies 978-0-470-41796-6 Religion & Inspiration The Bible For Dummies 978-0-7645-5296-0 Catholicism For Dummies 978-0-7645-5391-2 Women in the Bible For Dummies 978-0-7645-8475-6 Self-Help & Relationship Anger Management For Dummies 978-0-470-03715-7 Overcoming Anxiety For Dummies, 2nd Edition 978-0-470-57441-6 Making Everything Office 2010 • Common Office Tools • Word • Outlookđ ã PowerPointđ ã Excelđ ã Accessđ ã Publisher ã Office 2010 — One Step Beyond Peter Weverka Author of PowerPoint All-in-One For Dummies Easier ! Web Sites Do-It-Yourself For Dummies, 2nd Edition 978-0-470-56520-9 Windows Windows For Dummies 978-0-470-49743-2 Windows For Dummies, Book + DVD Bundle 978-0-470-52398-8 Windows All-in-One For Dummies 978-0-470-48763-1 ™ ™ iPad N E A L L- I N - O BOOKS IN Golf For Dummies, 3rd Edition 978-0-471-76871-5 Dog Training For Dummies, 3rd Edition 978-0-470-60029-0 ® Microsoft 81 Basketball For Dummies, 2nd Edition 978-0-7645-5248-9 Learn to: • Set up your iPad, use the multitouch interface, and get connected • Surf the Web, listen to music, watch videos, and download apps • Turn your iPad into a portable game console IN FULL COLOR! Edward C Baig Bob “Dr Mac” LeVitus ™ ART IS TK TO BE INSERTED DURING Windows ® Learn to: • Personalize your Windows desktop with your own photos • Speed up Windows with built-in shortcuts • Customize Windows warnings to only give the notices you want • Move your files from your old PC to a Windows computer ROUTING Andy Rathbone Author of all previous editions of Windows For Dummies Available wherever books are sold For more information or to order direct: U.S customers visit www.dummies.com or call 1-877-762-2974 U.K customers visit www.wileyeurope.com or call (0) 1243 843291 Canadian customers visit www.wiley.ca or call 1-800-567-4797 Wherever you are in life, Dummies makes it easier From fashion to Facebook ®, wine to Windows®, and everything in between, Dummies makes it easier Visit us at Dummies.com Dummies products make life easier! DIY • Consumer Electronics • Crafts • Software • Cookware • Hobbies • Videos • Music • Games ã and More! For more information, go to Dummies.comđ and search the store by category Get More and Do More at Dummies.com® Start with FREE Cheat Sheets Cheat Sheets include • Checklists • Charts • Common Instructions • And Other Good Stuff! To access the Cheat Sheet created specifically for this book, go to www.dummies.com/cheatsheet/androidapplicationdevelopment s p p A e l i Mob Get Smart at Dummies.com Dummies.com makes your life easier with 1,000s of answers on everything from removing wallpaper to using the latest version of Windows Check out our • Videos • Illustrated Articles • Step-by-Step Instructions Plus, each month you can win valuable prizes by entering our Dummies.com sweepstakes * Want a weekly dose of Dummies? Sign up for Newsletters on • Digital Photography • Microsoft Windows & Office • Personal Finance & Investing • Health & Wellness • Computing, iPods & Cell Phones • eBay • Internet • Food, Home & Garden Find out “HOW” at Dummies.com *Sweepstakes not currently available in all countries; visit Dummies.com for official rules There’s a Dummies App for This and That With more than 200 million books in print and over 1,600 unique titles, Dummies is a global leader in how-to information Now you can get the same great Dummies information in an App With topics such as Wine, Spanish, Digital Photography, Certification, and more, you’ll have instant access to the topics you need to know in a format you can trust To get information on all our Dummies apps, visit the following: www.Dummies.com/go/mobile from your computer www.Dummies.com/go/iphone/apps from your phone Programming Languages/Java ™ Even if you’ve never written a mobile application, this book has the know-how you need to turn your great ideas into cool apps for the Android platform With millions of smartphone users and a cornucopia of carriers, Android is a great place to ply the app development trade This book shows you from the ground up how to set up your environment and create an app Read on to become an Android developer extraordinaire! • Welcome to Android — learn what makes a great Android app, how to use the SDK, ways to work with mobile screens, and how the development process works • Make users happy — find out how to design an interface that mobile users will love • Learn the code — work with the activity lifecycle and Android framework classes, use the Eclipse debugger, and create a home screen widget for your app Open the book and find: • Cool ways to use the accelerometer in your app • How to turn mobile limitations into opportunities • Tips on installing and setting up the tools • Step-by-step coding directions • Ways to make your apps more marketable • How to create really useful menus • Advice on app pricing • Ten great sample apps and SDKs, including code • Beyond the basics — take your skills up a notch with apps that involve SQLite databases and multiple screens Android™ Application Development Here’s just what you need to start developing feature-rich, amazing Android apps g Easier! Making Everythin Appli • Create apps for hot smartphones like Droid™ X, Galaxy S, and MyTouch® Go to Dummies.com® for videos, step-by-step examples, how-to articles, or to shop! • Download the SDK and get Eclipse up and running • Code Android applications • Submit your apps to the Android Market $29.99 US / $35.99 CN / £21.99 UK Donn Felker is an independent consultant specializing in Android and NET technologies He has been a technical architect, software developer, and programmer analyst for more than a decade, with experience that covers desktop, Web, and mobile development d i o r d n Acation Development Learn to: • Price and publish — pick the right price for your app and get it into the Android Market Visit the companion Web site at www.dummies.com/go/ androidappdevfd for source code, updates, and other examples to help you in the development process ™ ISBN 978-0-470-77018-4 Donn Felker Felker Independent software development consultant ... Android Application Development For Dummies Introduction W elcome to Android Application Development For Dummies, the first For Dummies book that covers Android application development When I... Application Development FOR DUMmIES ‰ Android ™ Application Development FOR DUMmIES ‰ by Donn Felker with Joshua Dobbs AndroidTM Application Development For Dummies ® Published by Wiley Publishing,... in the Android platform Finding out how to develop for the Android platform opens a large variety of development options for you This book distills hundreds, if not thousands, of pages of Android

Ngày đăng: 06/04/2021, 17:13