Android developer tools essentials /
Android development can be challenging, but through the effective use of Android Developer Tools (ADT), you can make the process easier and improve the quality of your code. This concise guide demonstrates how to build apps with ADT for a device family that features several screen sizes, different h...
Clasificación: | Libro Electrónico |
---|---|
Autor principal: | |
Formato: | Electrónico eBook |
Idioma: | Inglés |
Publicado: |
Sebastopol, CA :
O'Reilly Media, Inc.,
©2013.
|
Temas: | |
Acceso en línea: | Texto completo (Requiere registro previo con correo institucional) |
Tabla de Contenidos:
- 1.Getting Started
- Minimum Requirements
- Installing Java
- Installing the Android Software Development Kit
- Installing the ADT Bundle
- Developing Without Eclipse
- Command-Line Usage
- Using a Different IDE
- Configuring a Device for Development
- 2.Essential Tools
- SDK Manager
- SDK Components
- Starting the SDK Manager
- Viewing Installed and Available Components
- ADT Preview Channel
- Android Debug Bridge (ADB)
- Starting ADB
- Querying for Device Instances
- Issuing Commands
- The Shell Command
- ADB Does a Lot More
- Resetting the ADB Server
- Additional Resources
- 3.Configuring Devices and Emulators
- Using a Physical Device for Development
- Capabilities and Limitations
- Configuring a Physical Device for Development
- Using an Emulator for Development
- Supported Features
- Android Virtual Devices
- Creating AVDs
- Emulator Options
- Advanced Emulator Configuration
- Using Hardware Acceleration
- Disabling the Boot Animation
- On Windows: Dedicating a Core to the Emulator
- 4.Using Devices and Emulators
- Using the Emulator
- Starting the Emulator
- The Emulator Application
- The Devices Tool
- Keyboard Shortcuts
- File Explorer
- Developer Tools Application
- 5.Developing with Eclipse
- Anatomy of the Eclipse Workspace
- Uncovering Additional Tools and Views
- Quick Button
- Code Templates
- Properties Editors
- XML Formatter
- The Android Key
- Quick Outline for XML
- Other Essential Eclipse Shortcuts
- Refactor Menu
- 6.Developing with Android Studio
- Installing Android Studio
- Bundled SDK
- Default Project Location
- Anatomy of the Android Studio IDE
- Panels
- Toolbars
- Useful Actions in Android Studio
- Navigation
- The New Structure of an Android Project
- A Tour Around the New Structure
- Running and Debugging an Android Project
- Creating New Android Components
- Layout Designer and Layout Preview
- Layout Designer
- Layout Preview
- Generating an APK
- Interacting with Maven and Gradle
- Interacting with Maven
- Interacting with Gradle
- Version Control Integration
- Migrating from Eclipse
- Android Studio Tips and Tricks
- Refactoring and Code Generation
- Miscellaneous Shortcuts
- 7.Testing Your Code
- Logcat
- Viewing the Logcat File
- Anatomy of a Log Message
- Filtering Based on Logging Level
- Using Tags to Filter Output
- Getting the Most Out of Logcat
- Viewing Alternative Log Buffers
- Predefined Output Formats
- Logcat Viewer in Eclipse
- Logcat Example
- Debugging
- Setting Your App to Debuggable
- Setting a Debug Point
- The Eclipse Debug Perspective
- Debugging Example
- Lint
- Command-Line Usage
- Running in Eclipse
- 8.Simulating Events
- Simulating Location and Routes
- Simulating Telephony Operations
- Changing Networking Parameters
- Using a Device with Sensor Emulation
- Advanced Sensor Testing
- Supported Sensors
- Simulating Sensor Events in Real Time
- Recording Sensor Scenarios
- Developer Options Menu
- 9.Build Tools
- Compiling Your Code
- Packaging an APK for Release
- Signing Your App
- Building from the Command Line Using Ant
- Setting Up Your Project
- Building in Debug Mode
- Building an App to Release to the Play Store
- Additional Ant Commands
- Advanced Packaging Steps
- ProGuard
- Zipalign
- Gradle-Based Build Tools
- Installing Gradle
- Creating Multiple Build Variations
- Build File
- Build Tasks
- Generating a Gradle Build from Eclipse
- Using the Maven Tools
- 10.Monitoring System Resources
- Memory Usage in Android
- Dalvik Debug Monitor Server (DDMS)
- Launching the DDMS Perspective
- Analyzer Tool
- Threads
- Heap
- Traceview
- Memory Analyzer Tool (MAT)
- Generating an HPROF File
- HPROF File
- Installing MAT into Eclipse
- Launching MAT from Within Eclipse
- Using MAT to Analyze HRPOF Files
- The MAT Overview Screen
- Viewing a Report
- 11.Working with the User Interface
- Android Layout Basic Concepts
- Defining Layouts Using XML
- Views and ViewGroups
- Resources
- Leveraging ADT to Build Great UIs
- Editing XML Files Directly
- Using Templates
- Editing XML Directly
- Working with Graphics
- The Asset Tool
- Using Nine-Patch Images
- Asset Studio Website
- 12.Using the Graphical Editor
- Generating Layouts Using the Graphical Layout Editor
- Palette
- Canvas
- Layout Actions
- Context-Sensitive Menu
- Outline View
- Properties Editor
- Configuration Chooser
- 13.Optimizing the User Interface
- Introduction to UI Performance
- How Android Draws Views, and How It Affects UI Performance
- Hierarchy Viewer
- Starting the Hierarchy Viewer
- Loading the View Hierarchy into the Tools
- Navigating the Tree Hierarchy
- Gathering View Information
- Gathering View Rendering Details
- Example: Debugging a UI Using the Hierarchy Viewer
- Fixing Problems Using Lint
- Application Exerciser Monkey
- Grooming the Monkey
- Monkeyrunner
- Using Python to Create the Script
- Thanks for Reading!.