reklama - zainteresowany?

Android Cookbook. Problems and Solutions for Android Developers - Helion

Android Cookbook. Problems and Solutions for Android Developers
ebook
Autor: Ian F. Darwin
ISBN: 978-14-493-3579-3
stron: 710, Format: ebook
Data wydania: 2012-04-09
Księgarnia: Helion

Cena książki: 199,00 zł

Dodaj do koszyka Android Cookbook. Problems and Solutions for Android Developers

Tagi: Android | FLEX

Jump in and build working Android apps with the help of more than 200 tested recipes. With this cookbook, you’ll find solutions for working with the user interfaces, multitouch gestures, location awareness, web services, and device features such as the phone, camera, and accelerometer. You also get useful steps on packaging your app for the Android Market.

Ideal for developers familiar with Java, Android basics, and the Java SE API, this book features recipes contributed by more than three dozen developers from the Android community. Each recipe provides a clear solution and sample code you can use in your project right away. Among numerous topics, this cookbook helps you:

  • Use guidelines for designing a successful Android app
  • Work with UI controls, effective layouts, and graphical elements
  • Learn how to take advantage of Android’s rich features in your app
  • Save and retrieve application data in files, SD cards, and embedded databases
  • Access RESTful web services, RSS/Atom feeds, and information from websites
  • Create location-aware services to find locations and landmarks, and situate them on Google Maps and OpenStreetMap
  • Test and troubleshoot individual components and your entire application

Dodaj do koszyka Android Cookbook. Problems and Solutions for Android Developers

 

Osoby które kupowały "Android Cookbook. Problems and Solutions for Android Developers", wybierały także:

  • Systemy operacyjne. Architektura, funkcjonowanie i projektowanie. Wydanie IX
  • Kotlin w praktyce. Kurs video. Tworzenie aplikacji webowych za pomocÄ… Spring Boota
  • Platforma Xamarin. Kurs video. Poziom drugi. Zaawansowane techniki tworzenia aplikacji cross-platform
  • Android Studio. Kurs video. NarzÄ™dzia Android developera
  • Android. Techniki efektywnej pracy. Kurs video. Poziom pierwszy. Skróty klawiszowe i biblioteki

Dodaj do koszyka Android Cookbook. Problems and Solutions for Android Developers

Spis treści

Android Cookbook. Problems and Solutions for Android Developers eBook -- spis treści

  • Android Cookbook
  • Dedication
  • Preface
    • Preface
      • About Android
      • Who This Book Is From
      • Who This Book Is For
      • Whats in This Book?
    • Conventions Used in This Book
    • Getting and Using the Code Examples
    • Safari Books Online
    • How to Contact Us
    • Acknowledgments
  • 1. Getting Started
    • 1.1. Introduction: Getting Started
      • Discussion
    • 1.2. Learning the Java Language
      • Problem
      • Solution
      • Discussion
      • See Also
    • 1.3. Creating a Hello, World Application from the Command Line
      • Problem
      • Solution
      • Discussion
      • See Also
    • 1.4. Creating a Hello, World Application in Eclipse
      • Problem
      • Solution
      • Discussion
      • See Also
    • 1.5. Setting Up an IDE on Windows to Develop for Android
      • Problem
      • Solution
      • Discussion
        • Installing the JDK (Java Development Kit)
        • Installing Eclipse for Java development
        • Installing the Android SDK (software development kit)
        • Installing the Android Development Tools (ADT) plug-in
      • See Also
    • 1.6. Understanding the Android Life Cycle
      • Problem
      • Solution
      • Discussion
    • 1.7. Installing .apk Files onto an Emulator via the ADB
      • Problem
      • Solution
      • Discussion
    • 1.8. Installing Apps onto an Emulator via SlideME
      • Problem
      • Solution
      • Discussion
      • See Also
    • 1.9. Sharing Java Classes from Another Eclipse Project
      • Problem
      • Solution
      • Discussion
      • See Also
    • 1.10. Referencing Libraries to Implement External Functionality
      • Problem
      • Solution
      • Discussion
    • 1.11. Using SDK Samples to Help Avoid Head Scratching
      • Problem
      • Solution
      • Discussion
      • See Also
    • 1.12. Keeping the Android SDK Updated
      • Problem
      • Solution
      • Discussion
        • Possible update errors on Windows
          • Run SDK Manager as admin
          • Close ADB before updating
          • SDK Manager cannot update itself
          • Updating Eclipse
      • See Also
    • 1.13. Taking a Screenshot from the Emulator/Android Device
      • Problem
      • Solution
      • Discussion
      • See Also
    • 1.14. Program: A Simple CountDownTimer Example
      • Problem
      • Solution
      • Discussion
      • Source Download URL
    • 1.15. Program: Tipster, a Tip Calculator for the Android OS
      • Problem
      • Solution
      • Discussion
        • Creating the layout and placing the widgets
        • TableLayout and TableRow
        • Controlling input values
        • Examining Tipster.java
        • Addressing ease of use or usability concerns
        • Processing UI events
        • Monitoring key activity in text fields
        • Listening to button clicks
        • Resetting the application
        • Validating the input to calculate the tip
        • Showing the results
        • Showing the alerts
        • Conclusion
      • Source Download URL
      • Binary Download URL
  • 2. Designing a Successful Application
    • 2.1. Introduction: Designing a Successful Android Application
      • Discussion
        • Requirements of a native handset application
        • Android application design
          • Screen size and density
          • Input configurations
          • Device features
          • Data feeds and feed formats
    • 2.2. Exception Handling
      • Problem
      • Solution
      • Discussion
        • Where to catch exceptions
        • What to do with exceptions
    • 2.3. Accessing Androids Application Object as a Singleton
      • Problem
      • Solution
      • Discussion
      • See Also
    • 2.4. Keeping Data When the User Rotates the Device
      • Problem
      • Solution
      • Discussion
        • Using onSaveInstanceState()
        • Using onRetainNonConfigurationInstance()
      • See Also
      • Source Download URL
    • 2.5. Monitoring the Battery Level of an Android Device
      • Problem
      • Solution
      • Discussion
    • 2.6. Creating Splash Screens in Android
      • Problem
      • Solution
      • Discussion
      • See Also
      • Source Download URL
    • 2.7. Designing a Conference/Camp/Hackathon/Institution App
      • Problem
      • Solution
      • Discussion
      • See Also
    • 2.8. Using Google Analytics in an Android Application
      • Problem
      • Solution
      • Discussion
    • 2.9. A Simple Torch/Flashlight
      • Problem
      • Solution
      • Discussion
      • Source Download URL
    • 2.10. Adapting an Android Phone Application to Be Used on a Tablet
      • Problem
      • Solution
      • Discussion
        • Optional guidelines
    • 2.11. Setting First-Run Preferences
      • Problem
      • Solution
      • Discussion
    • 2.12. Formatting the Time and Date for Display
      • Problem
      • Solution
      • Discussion
      • See Also
    • 2.13. Controlling Input with KeyListeners
      • Problem
      • Solution
      • Discussion
      • See Also
    • 2.14. Backing Up Android Application Data
      • Problem
      • Solution
      • Discussion
        • Testing your backup agent
    • 2.15. Using Hints Instead of Tool Tips
      • Problem
      • Solution
      • Discussion
  • 3. Testing
    • 3.1. Introduction: Testing
      • Discussion
    • 3.2. Doing Test-Driven Development (TDD) in Android
      • Problem
      • Solution
      • Discussion
      • See Also
    • 3.3. Setting Up an Android Virtual Device (AVD) for App Testing
      • Problem
      • Solution
      • Discussion
      • See Also
    • 3.4. Testing on a Huge Range of Devices with Cloud-based Testing
      • Problem
      • Solution
      • Discussion
    • 3.5. Creating and Using a Test Project
      • Problem
      • Solution
      • Discussion
        • Step 1: Create a new Android test project within your Android application project
        • Step 2: Configure the AndroidManifest.xml file of the test project
        • Step 3: Write and run your tests
      • See Also
      • Source Download URL
    • 3.6. Troubleshooting Application Crashes
      • Problem
      • Solution
      • Discussion
      • See Also
    • 3.7. Debugging Using Log.d and LogCat
      • Problem
      • Solution
      • Discussion
    • 3.8. Getting Bug Reports from Users Automatically with BugSense
      • Problem
      • Solution
      • Discussion
        • Adding the JAR file to the project
        • Invoking BugSense at App Start
        • Distributing the App and Watching for Crash Reports
      • See Also
    • 3.9. Using a Local Runtime Application Log for Analysis of Field Errors or Situations
      • Problem
      • Solution
      • Discussion
      • See Also
    • 3.10. Reproducing Activity Life-Cycle Scenarios for Testing
      • Problem
      • Solution
      • Discussion
      • See Also
    • 3.11. Keeping Your App Snappy with StrictMode
      • Problem
      • Solution
      • Discussion
      • See Also
    • 3.12. Running the Monkey Program
      • Problem
      • Solution
      • Discussion
      • See Also
    • 3.13. Sending Text Messages and Placing Calls Between AVDs
      • Problem
      • Solution
      • Discussion
      • See Also
  • 4. Inter-/Intra-Process Communication
    • 4.1. Introduction: Inter-/Intra-Process Communication
      • Discussion
    • 4.2. Opening a Web Page, Phone Number, or Anything Else with an Intent
      • Problem
      • Solution
      • Discussion
      • Source Download URL
    • 4.3. Emailing Text from a View
      • Problem
      • Solution
      • Discussion
      • Source Download URL
    • 4.4. Sending an Email with Attachments
      • Problem
      • Solution
      • Discussion
    • 4.5. Pushing String Values Using Intent.putExtra()
      • Problem
      • Solution
      • Discussion
      • See Also
    • 4.6. Retrieving Data from a Subactivity Back to Your Main Activity
      • Problem
      • Solution
      • Discussion
        • Use case (informal)
      • See Also
    • 4.7. Keeping a Service Running While Other Apps Are on Display
      • Problem
      • Solution
      • Discussion
    • 4.8. Sending/Receiving a Broadcast Message
      • Problem
      • Solution
      • Discussion
    • 4.9. Starting a Service After Device Reboot
      • Problem
      • Solution
      • Discussion
    • 4.10. Creating a Responsive Application Using Threads
      • Problem
      • Solution
      • Discussion
    • 4.11. Using AsyncTask to Do Background Processing
      • Problem
      • Solution
      • Discussion
        • Introduction
        • Use case 1: Processing in the background
        • Use case 2: Processing in the foreground
        • Conclusion
      • See Also
      • Source Download URL
    • 4.12. Sending Messages Between Threads Using an Activity Thread Queue and Handler
      • Problem
      • Solution
      • Discussion
    • 4.13. Creating an Android Epoch HTML/JavaScript Calendar
      • Problem
      • Solution
      • Discussion
  • 5. Content Providers
    • 5.1. Introduction: Content Providers
      • Discussion
    • 5.2. Retrieving Data from a Content Provider
      • Problem
      • Solution
      • Discussion
    • 5.3. Writing a Content Provider
      • Problem
      • Solution
      • Discussion
    • 5.4. Writing an Android Remote Service
      • Problem
      • Solution
      • Discussion
  • 6. Graphics
    • 6.1. Introduction: Graphics
      • Discussion
    • 6.2. Using a Custom Font
      • Problem
      • Solution
      • Discussion
      • Source Download URL
    • 6.3. Drawing a Spinning Cube with OpenGL ES
      • Problem
      • Solution
      • Discussion
      • See Also
    • 6.4. Adding Controls to the OpenGL Spinning Cube
      • Problem
      • Solution
      • Discussion
      • See Also
      • Source Download URL
    • 6.5. Freehand Drawing Smooth Curves
      • Problem
      • Solution
      • Discussion
      • See Also
      • Source Download URL
    • 6.6. Taking a Picture Using an Intent
      • Problem
      • Solution
      • Discussion
      • See Also
      • Source Download URL
    • 6.7. Taking a Picture Using android.media.Camera
      • Problem
      • Solution
      • Discussion
      • See Also
    • 6.8. Scanning a Barcode or QR Code with the Google ZXing Barcode Scanner
      • Problem
      • Solution
      • Discussion
      • See Also
    • 6.9. Using AndroidPlot to Display Charts and Graphs
      • Problem
      • Solution
      • Discussion
      • Source Download URL
    • 6.10. Using Inkscape to Create an Android Launcher Icon
      • Problem
      • Solution
      • Discussion
      • See Also
    • 6.11. Creating Easy Launcher Icons from OpenClipArt.org Using Paint.NET
      • Problem
      • Solution
      • Discussion
      • See Also
    • 6.12. Using Nine Patch Files
      • Problem
      • Solution
      • Discussion
      • See Also
    • 6.13. Creating HTML5 Charts with Android RGraph
      • Problem
      • Solution
      • Discussion
      • Source Download URL
    • 6.14. Adding a Simple Raster Animation
      • Problem
      • Solution
      • Discussion
      • See Also
    • 6.15. Using Pinch to Zoom
      • Problem
      • Solution
      • Discussion
  • 7. Graphical User Interface
    • 7.1. Introduction: GUI
      • Discussion
    • 7.2. Understanding and Following User Interface Guidelines
      • Problem
      • Solution
      • Discussion
    • 7.3. Handling Configuration Changes by Decoupling the View from the Model
      • Problem
      • Solution
      • Discussion
    • 7.4. Creating a Button and Its Click Event Listener
      • Problem
      • Solution
      • Discussion
    • 7.5. Wiring Up an Event Listener in Five Different Ways
      • Problem
      • Solution
      • Discussion
        • Method 1. The Member class
        • Method 2. The Interface type
        • Method 3. The anonymous inner class
        • Method 4. Implementation in Activity
        • Method 5. Attribute in View layout for OnClick events
    • 7.6. Using CheckBoxes and RadioButtons
      • Problem
      • Solution
      • Discussion
    • 7.7. Enhancing UI Design Using Image Buttons
      • Problem
      • Solution
      • Discussion
      • Source Download URL
    • 7.8. Offering a Drop-Down Chooser via the Spinner Class
      • Problem
      • Solution
      • Discussion
    • 7.9. Handling Long-Press/Long-Click Events
      • Problem
      • Solution
      • Discussion
      • Source Download URL
    • 7.10. Displaying Text Fields with TextView and EditText
      • Problem
      • Solution
      • Discussion
    • 7.11. Constraining EditText Values with Attributes and the TextWatcher Interface
      • Problem
      • Solution
      • Discussion
      • See Also
    • 7.12. Implementing AutoCompleteTextView
      • Problem
      • Solution
      • Discussion
      • Source Download URL
    • 7.13. Feeding AutoCompleteTextView Using an SQLite Database Query
      • Problem
      • Solution
      • Discussion
    • 7.14. Turning Edit Fields into Password Fields
      • Problem
      • Solution
      • Discussion
    • 7.15. Changing the Enter Key to Next on the Soft Keyboard
      • Problem
      • Solution
      • Discussion
      • See Also
    • 7.16. Processing Key-Press Events in an Activity
      • Problem
      • Solution
      • Discussion
      • Source Download URL
    • 7.17. Let Them See Stars: Using RatingBar
      • Problem
      • Solution
      • Discussion
      • See Also
    • 7.18. Making a View Shake
      • Problem
      • Solution
      • Discussion
    • 7.19. Providing Haptic Feedback
      • Problem
      • Solution
      • Discussion
        • Custom haptic feedback using the devices vibrator
        • Stock haptic feedback events
      • See Also
      • Source Download URL
    • 7.20. Navigating Different Activities Within a TabView
      • Problem
      • Solution
      • Discussion
    • 7.21. Creating a Custom Title Bar
      • Problem
      • Solution
      • Discussion
    • 7.22. Formatting Numbers
      • Problem
      • Solution
      • Discussion
        • General formatters
      • See Also
    • 7.23. Formatting with Correct Plurals
      • Problem
      • Solution
      • Discussion
        • A better way
        • Best way of all (Android-only)
      • See Also
      • Source Download URL
    • 7.24. Starting a Second Screen from the First
      • Problem
      • Solution
      • Discussion
      • See Also
    • 7.25. Creating a Loading Screen That Will Appear Between Two Activities
      • Problem
      • Solution
      • Discussion
    • 7.26. Using SlidingDrawer to Overlap Other Components
      • Problem
      • Solution
      • Discussion
      • See Also
    • 7.27. Customizing the SlidingDrawer Component to Animate/Transition from the Top Down
      • Problem
      • Solution
      • Discussion
      • Source Download URL
    • 7.28. Adding a Border with Rounded Corners to a Layout
      • Problem
      • Solution
      • Discussion
      • See Also
    • 7.29. Detecting Gestures in Android
      • Problem
      • Solution
      • Discussion
      • See Also
    • 7.30. Building a UI Using Android 3.0 Fragments in Android 1.6 and Later
      • Problem
      • Solution
      • Discussion
      • See Also
      • Source Download URL
    • 7.31. Using the Android 3.0 Photo Gallery
      • Problem
      • Solution
      • Discussion
      • Source Download URL
    • 7.32. Creating a Simple App Widget
      • Problem
      • Solution
      • Discussion
      • Source Download URL
  • 8. GUI Alerts: Menus, Dialogs, Toasts, and Notifications
    • 8.1. Introduction: GUI Alerts
      • Discussion
    • 8.2. Creating and Displaying a Menu
      • Problem
      • Solution
      • Discussion
    • 8.3. Handling Choice Selection in a Menu
      • Problem
      • Solution
      • Discussion
      • Source Download URL
    • 8.4. Creating a Submenu
      • Problem
      • Solution
      • Discussion
      • Source Download URL
    • 8.5. Creating a Pop-up/Alert Dialog
      • Problem
      • Solution
      • Discussion
    • 8.6. Using a Timepicker Widget
      • Problem
      • Solution
      • Discussion
    • 8.7. Creating an iPhone-like Wheel Picker for Selection
      • Problem
      • Solution
      • Discussion
    • 8.8. Creating a Tabbed Dialog
      • Problem
      • Solution
      • Discussion
    • 8.9. Creating a ProgressDialog
      • Problem
      • Solution
      • Discussion
      • Source Download URL
    • 8.10. Creating a Custom Dialog with Buttons, Images, and Text
      • Problem
      • Solution
      • Discussion
    • 8.11. Creating a Reusable About Box Class
      • Problem
      • Solution
      • Discussion
      • See Also
    • 8.12. Customizing the Appearance of a Toast
      • Problem
      • Solution
      • Discussion
      • Source Download URL
    • 8.13. Creating a Notification in the Status Bar
      • Problem
      • Solution
      • Discussion
        • Sounds and other irritants
        • Lighting the LED
      • See Also
      • Source Download URL
  • 9. GUI: ListView
    • 9.1. Introduction: ListView
      • Discussion
    • 9.2. Building List-Based Applications with ListView
      • Problem
      • Solution
      • Discussion
        • Setting up a basic ListView
    • 9.3. Creating a No Data View for ListViews
      • Problem
      • Solution
      • Discussion
    • 9.4. Creating an Advanced ListView with Images and Text
      • Problem
      • Solution
      • Discussion
      • Source Download URL
    • 9.5. Using Section Headers in ListViews
      • Problem
      • Solution
      • Discussion
      • See Also
      • Source Download URL
    • 9.6. Keeping the ListView with the Users Focus
      • Problem
      • Solution
      • Discussion
    • 9.7. Writing a Custom List Adapter
      • Problem
      • Solution
      • Discussion
    • 9.8. Handling Orientation Changes: From ListView Data Values to Landscape Charting
      • Problem
      • Solution
      • Discussion
      • Source Download URL
  • 10. Multimedia
    • 10.1. Introduction: Multimedia
      • Discussion
    • 10.2. Playing a YouTube Video
      • Problem
      • Solution
      • Discussion
    • 10.3. Using the Gallery with the ImageSwitcher View
      • Problem
      • Solution
      • Discussion
    • 10.4. Capturing Video Using MediaRecorder
      • Problem
      • Solution
      • Discussion
      • Source Download URL
    • 10.5. Using Androids Face Detection Capability
      • Problem
      • Solution
      • Discussion
      • Source Download URL
    • 10.6. Playing Audio from a File
      • Problem
      • Solution
      • Discussion
      • Source Download URL
    • 10.7. Playing Audio Without Interaction
      • Problem
      • Solution
      • Discussion
      • See Also
      • Source Download URL
    • 10.8. Using Speech to Text
      • Problem
      • Solution
      • Discussion
      • See Also
    • 10.9. Making the Device Speak with Text-to-Speech
      • Problem
      • Solution
      • Discussion
      • Source Download URL
  • 11. Data Persistence
    • 11.1. Introduction: Data Persistence
      • Discussion
    • 11.2. Getting File Information
      • Problem
      • Solution
      • Discussion
    • 11.3. Reading a File Shipped with the App Rather Than in the Filesystem
      • Problem
      • Solution
      • Discussion
      • Source Download URL
    • 11.4. Listing a Directory
      • Problem
      • Solution
      • Discussion
      • See Also
    • 11.5. Getting Total and Free Space Information About the SD Card
      • Problem
      • Solution
      • Discussion
    • 11.6. Providing User Preference Activity with Minimal Effort
      • Problem
      • Solution
      • Discussion
    • 11.7. Checking the Consistency of Default Shared Preferences
      • Problem
      • Solution
      • Discussion
    • 11.8. Performing Advanced Text Searches
      • Problem
      • Solution
      • Discussion
      • See Also
    • 11.9. Creating an SQLite Database in an Android Application
      • Problem
      • Solution
      • Discussion
    • 11.10. Inserting Values into an SQLite Database
      • Problem
      • Solution
      • Discussion
    • 11.11. Loading Values from an Existing SQLite Database
      • Problem
      • Solution
      • Discussion
    • 11.12. Working with Dates in SQLite
      • Problem
      • Solution
      • Discussion
        • Background
        • The advantages
        • The code
      • See Also
    • 11.13. Parsing JSON Using JSONObject
      • Problem
      • Solution
      • Discussion
      • Source Download URL
    • 11.14. Parsing an XML Document Using the DOM API
      • Problem
      • Solution
      • Discussion
      • See Also
    • 11.15. Parsing an XML Document Using an XmlPullParser
      • Problem
      • Solution
      • Discussion
        • Parsing XML with the XmlPullParser
        • Making it stricter
        • Processing static XML resources
        • Conclusion
      • See Also
      • Source Download URL
    • 11.16. Adding a Contact
      • Problem
      • Solution
      • Discussion
    • 11.17. Reading Contact Data
      • Problem
      • Solution
      • Discussion
      • Source Download URL
  • 12. Telephone Applications
    • 12.1. Introduction: Telephone Applications
      • Discussion
    • 12.2. Doing Something When the Phone Rings
      • Problem
      • Solution
      • Discussion
        • What happens if two receivers listen for phone state changes?
        • Final notes
      • See Also
      • Source Download URL
    • 12.3. Processing Outgoing Phone Calls
      • Problem
      • Solution
      • Discussion
        • What happens if two receivers process outgoing calls?
      • See Also
      • Source Download URL
    • 12.4. Dialing the Phone
      • Problem
      • Solution
      • Discussion
    • 12.5. Sending Single-Part or Multipart SMS Messages
      • Problem
      • Solution
      • Discussion
      • See Also
      • Source Download URL
    • 12.6. Receiving an SMS Message in an Android Application
      • Problem
      • Solution
      • Discussion
      • Source Download URL
    • 12.7. Using Emulator Controls to Send SMS Messages to the Emulator
      • Problem
      • Solution
      • Discussion
    • 12.8. Using Androids TelephonyManager to Obtain Device Information
      • Problem
      • Solution
      • Discussion
      • Source Download URL
  • 13. Networked Applications
    • 13.1. Introduction: Networking
      • Discussion
        • Choose your protocol wisely
    • 13.2. Using a RESTful Web Service
      • Problem
      • Solution
      • Discussion
        • Using URL and URLConnection
        • Using HttpClient
        • The results
      • See Also
    • 13.3. Extracting Information from Unstructured Text Using Regular Expressions
      • Problem
      • Solution
      • Discussion
      • See Also
      • Source Download URL
    • 13.4. Parsing RSS/Atom Feeds Using ROME
      • Problem
      • Solution
      • Discussion
      • Source Download URL
    • 13.5. Using MD5 to Digest Clear Text
      • Problem
      • Solution
      • Discussion
    • 13.6. Converting Text into Hyperlinks
      • Problem
      • Solution
      • Discussion
    • 13.7. Accessing a Web Page Using WebView
      • Problem
      • Solution
      • Discussion
      • Source Download URL
    • 13.8. Customizing a WebView
      • Problem
      • Solution
      • Discussion
  • 14. Gaming and Animation
    • 14.1. Introduction: Gaming and Animation
      • Discussion
    • 14.2. Building an Android Game Using flixel-android
      • Problem
      • Solution
      • Discussion
      • Source Download URL
    • 14.3. Building an Android Game Using AndEngine (Android-Engine)
      • Problem
      • Solution
      • Discussion
      • Source Download URL
    • 14.4. Processing Timed Keyboard Input
      • Problem
      • Solution
      • Discussion
  • 15. Social Networking
    • 15.1. Introduction: Social Networking
      • Discussion
    • 15.2. Integrating Social Networking Using HTTP
      • Problem
      • Solution
      • Discussion
        • Step 1: Get the logos
        • Step 2: Create image buttons for each logo
        • Step 3: Implement the click event
    • 15.3. Loading a Users Twitter Timeline Using JSON
      • Problem
      • Solution
      • Discussion
      • Source Download URL
  • 16. Location and Map Applications
    • 16.1. Introduction: Location-Aware Applications
      • Discussion
    • 16.2. Getting Location Information
      • Problem
      • Solution
      • Discussion
      • Source Download URL
    • 16.3. Accessing GPS Information in Your Application
      • Problem
      • Solution
      • Discussion
    • 16.4. Mocking GPS Coordinates on a Device
      • Problem
      • Solution
      • Discussion
        • Writing the setMockLocation method
          • Whats happening?
        • Using the setMockLocation method
        • Example application usage
      • See Also
      • Source Download URL
    • 16.5. Using Geocoding and Reverse Geocoding
      • Problem
      • Solution
      • Discussion
    • 16.6. Getting Ready for Google Maps Development
      • Problem
      • Solution
      • Discussion
        • Setting up an AVD that makes use of the Google API SDK libraries
        • Creating a new Android project that targets Google APIs - 1.5 - API level 3
        • Adding the MapView element to your layout file
        • Registering the Google Maps API key
        • Make the following changes in the AndroidManifest.xml file, as shown in Example 16-10:
        • Checklist
      • See Also
      • Source Download URL
    • 16.7. Adding a Devices Current Location to Google Maps
      • Problem
      • Solution
      • Discussion
      • Source Download URL
    • 16.8. Drawing a Location Marker on a Google MapView
      • Problem
      • Solution
      • Discussion
      • See Also
      • Source Download URL
    • 16.9. Drawing Multiple Location Markers on a MapView
      • Problem
      • Solution
      • Discussion
        • Introduction
        • Adding the ItemizedOverlay to your MapView
        • Using MyItemizedOverlay in onCreate
          • Extra exercise: Draw an alternate marker
          • Do something when the user clicks your marker
      • See Also
      • Source Download URL
    • 16.10. Creating Overlays for a Google MapView
      • Problem
      • Solution
      • Discussion
    • 16.11. Changing Modes of a Google MapView
      • Problem
      • Solution
      • Discussion
    • 16.12. Drawing an Overlay Icon Without Using a Drawable
      • Problem
      • Solution
      • Discussion
        • Overview
        • Overriding the ItemizedOverlay::draw() function
        • Overview of the MetarItem class
        • Overview of the MetarItem::draw() function
        • Final thoughts
      • See Also
      • Source Download URL
      • Binary Download URL
    • 16.13. Implementing Location Search on Google Maps
      • Problem
      • Solution
      • Discussion
    • 16.14. Placing a MapView Inside a TabView
      • Problem
      • Solution
      • Discussion
      • Source Download URL
    • 16.15. Handling a Long-Press in a MapView
      • Problem
      • Solution
      • Discussion
    • 16.16. Using OpenStreetMap
      • Problem
      • Solution
      • Discussion
      • Source Download URL
      • Binary Download URL
    • 16.17. Creating Overlays in OpenStreetMap Maps
      • Problem
      • Solution
      • Discussion
      • Source Download URL
    • 16.18. Using a Scale on an OpenStreetMap Map
      • Problem
      • Solution
      • Discussion
    • 16.19. Handling Touch Events on an OpenStreetMap Overlay
      • Problem
      • Solution
      • Discussion
      • Source Download URL
    • 16.20. Getting Location Updates with OpenStreetMap Maps
      • Problem
      • Solution
      • Discussion
      • Source Download URL
  • 17. Accelerometer
    • 17.1. Introduction: Sensors
      • Discussion
    • 17.2. Checking for the Presence or Absence of a Sensor
      • Problem
      • Solution
      • Discussion
    • 17.3. Using the Accelerometer to Detect Shaking of the Device
      • Problem
      • Solution
      • Discussion
    • 17.4. Checking Whether a Device Is Facing Up or Facing Down Based on Screen Orientation Using an Accelerometer
      • Problem
      • Solution
      • Discussion
    • 17.5. Finding the Orientation of an Android Device Using an Orientation Sensor
      • Problem
      • Solution
      • Discussion
      • Source Download URL
    • 17.6. Reading the Temperature Sensor
      • Problem
      • Solution
      • Discussion
      • See Also
  • 18. Bluetooth
    • 18.1. Introduction: Bluetooth
      • Discussion
    • 18.2. Enabling Bluetooth and Making the Device Discoverable
      • Problem
      • Solution
      • Discussion
    • 18.3. Connecting to a Bluetooth-Enabled Device
      • Problem
      • Solution
      • Discussion
      • See Also
    • 18.4. Listening for and Accepting Bluetooth Connection Requests
      • Problem
      • Solution
      • Discussion
    • 18.5. Implementing Bluetooth Device Discovery
      • Problem
      • Solution
      • Discussion
      • Source Download URL
  • 19. System and Device Control
    • 19.1. Introduction: System and Device Control
      • Discussion
    • 19.2. Accessing Phone Network/Connectivity Information
      • Problem
      • Solution
      • Discussion
    • 19.3. Obtaining Information from the Manifest File
      • Problem
      • Solution
      • Discussion
    • 19.4. Changing Incoming Call Notification to Silent, Vibrate, or Normal
      • Problem
      • Solution
      • Discussion
    • 19.5. Copying Text and Getting Text from the Clipboard
      • Problem
      • Solution
      • Discussion
    • 19.6. Using LED-Based Notifications
      • Problem
      • Solution
      • Discussion
    • 19.7. Making the Device Vibrate
      • Problem
      • Solution
      • Discussion
      • Source Download URL
    • 19.8. Running Shell Commands from Your Application
      • Problem
      • Solution
      • Discussion
      • Source Download URL
    • 19.9. Determining Whether a Given Application Is Running
      • Problem
      • Solution
      • Discussion
  • 20. Other Programming Languages and Frameworks
    • 20.1. Introduction: Other Programming Languages
      • Discussion
    • 20.2. Running an External/Native Unix/Linux Command
      • Problem
      • Solution
      • Discussion
    • 20.3. Running Native C/C++ Code with JNI on the NDK
      • Problem
      • Solution
      • Discussion
        • Ians basic steps: Java calling native code
      • See Also
      • Source Download URL
    • 20.4. Getting Started with the Scripting Layer for Android (SL4A, Formerly Android Scripting Environment)
      • Problem
      • Solution
      • Discussion
        • Pick a language (Python)
        • Source editing
      • See Also
    • 20.5. Creating Alerts in SL4A
      • Problem
      • Solution
      • Discussion
    • 20.6. Fetching Your Google Documents and Displaying Them in a ListView Using SL4A
      • Problem
      • Solution
      • Discussion
    • 20.7. Sharing SL4A Scripts in QR Codes
      • Problem
      • Solution
      • Discussion
    • 20.8. Using Native Handset Functionality from WebView via JavaScript
      • Problem
      • Solution
      • Discussion
    • 20.9. Creating a Platform-Independent Application Using PhoneGap/Cordova
      • Problem
      • Solution
      • Discussion
      • See Also
      • Source Download URL
  • 21. Strings and Internationalization
    • 21.1. Introduction: Internationalization
      • Discussion
        • Ians basic steps: Internationalization
      • See Also
    • 21.2. Internationalizing Application Text
      • Problem
      • Solution
      • Discussion
        • Is it really that simple?
        • Regional variants
      • See Also
    • 21.3. Finding and Translating Strings
      • Problem
      • Solution
      • Discussion
    • 21.4. Handling the Nuances of strings.xml
      • Problem
      • Solution
      • Discussion
      • See Also
  • 22. Packaging, Deploying, and Distributing/Selling Your App
    • 22.1. Introduction: Packaging, Deploying, and Distributing
      • Discussion
    • 22.2. Creating a Signing Certificate
      • Problem
      • Solution
      • Discussion
        • Generating a key pair (public and private keys) and a signing certificate
      • See Also
    • 22.3. Signing Your Application
      • Problem
      • Solution
      • Discussion
    • 22.4. Distributing Your Application via Android Play (formerly the Android Market)
      • Problem
      • Solution
      • Discussion
        • Signing up as an Android developer
        • Uploading your application
        • Then what?
    • 22.5. Integrating AdMob into Your App
      • Problem
      • Solution
      • Discussion
        • Step 1
        • Step 2
        • Step 3
        • Step 4
        • Step 5
        • Step 6
      • See Also
    • 22.6. Obfuscating and Optimizing with ProGuard
      • Problem
      • Solution
      • Discussion
        • Configuration file
      • See Also
    • 22.7. Providing a Link to Other Published Apps in the Google Play Market
      • Problem
      • Solution
      • Discussion
      • See Also
  • Index
  • About the Author
  • Colophon
  • Copyright

Dodaj do koszyka Android Cookbook. Problems and Solutions for Android Developers

Code, Publish & WebDesing by CATALIST.com.pl



(c) 2005-2024 CATALIST agencja interaktywna, znaki firmowe należą do wydawnictwa Helion S.A.