Details

Expert Android Studio


Expert Android Studio


1. Aufl.

von: Murat Yener, Onur Dundar

32,99 €

Verlag: Wiley
Format: PDF
Veröffentl.: 25.08.2016
ISBN/EAN: 9781119110712
Sprache: englisch
Anzahl Seiten: 456

DRM-geschütztes eBook, Sie benötigen z.B. Adobe Digital Editions und eine Adobe ID zum Lesen.

Beschreibungen

<p><b>Take your Android programming skills to the next level by unleashing the potential of Android Studio</b></p> <p><i>Expert Android Studio </i>bridges the gap between your Android programing skills with the provided tools including Android Studio, NDK, Gradle and Plugins for IntelliJ Idea Platform. Packed with best practices and advanced tips and techniques on Android tools, development cycle, continuos integration, release management, testing, and performance, this book offers professional guidance to experienced developers who want to push the boundaries of the Android platform with the developer tools. You'll discover how to use the tools and techniques to unleash your true potential as a developer. </p> <ul> <li>Discover the basics of working in Android Studio and Gradle, as well as the application architecture of the latest Android platform</li> <li>Understand Native Development Kit and its integration with Android Studio</li> <li>Complete your development lifecycle with automated tests, dependency management, continuos integration and release management</li> <li>Writing your own Gradle plugins to customize build cycle</li> <li>Writing your own plugins for Android Studio to help your development tasks.</li> </ul> <p><i>Expert Android Studio </i>is a tool for expert and experienced developers who want to learn how to make use of the tools while creating Android applications for use on mobile devices.</p>
FOREWORD xxiii <p>INTRODUCTION xxv</p> <p><b>CHAPTER 1: GETTING STARTED 1</b></p> <p>System Requirements for Windows, Mac OS X, and Linux 1</p> <p>Installing Java 3</p> <p>Installing Java for Windows OS 3</p> <p>Installing Java for MacOS X 7</p> <p>Installing Java for Linux 8</p> <p>Installing Android Studio 9</p> <p>Installing Android Studio for Microsoft Windows 10 10</p> <p>Installing Android Studio for Mac OS X 12</p> <p>Installing Android Studio for Linux 16</p> <p>Launching Android Studio for the First Time 18</p> <p>Welcome to Android Studio 18</p> <p>Standalone SDK Installation 18</p> <p>Summary 19</p> <p><b>CHAPTER 2: ANDROID STUDIO BASICS 21</b></p> <p>Creating a New Sample Project 22</p> <p>Using Different SDKs 27</p> <p>Android Project Structure 27</p> <p>Building and Running a Project 33</p> <p>Android Emulator 35</p> <p>Installing HAXM 35</p> <p>Creating a New Android Virtual Device 36</p> <p>Using ADB 40</p> <p>Migrating Projects from Eclipse 41</p> <p>Summary 43</p> <p><b>CHAPTER 3: ANDROID APPLICATION DEVELOPMENT WITH ANDROID STUDIO 45</b></p> <p>Android Projects 46</p> <p>Creating a New Android Project 46</p> <p>Creating a Project with Multiple Target Devices 52</p> <p>Launching Android Applications 54</p> <p>Android Activities 56</p> <p>The Intent Event Handler 58</p> <p>Adding Template Activities to Android Projects 58</p> <p>Adding a Blank Activity 59</p> <p>Android Fragments 63</p> <p>Adding a Tabbed Activity 64</p> <p>Android Services 69</p> <p>Adding a Service Template with Android Studio 69</p> <p>Add Assets for Android Project 72</p> <p>Adding Images Assets 73</p> <p>Adding Sound Assets 74</p> <p>Adding Video Assets 75</p> <p>Adding XML Files to an Android Project 76</p> <p>Android Manifest File 76</p> <p>Android Modules 78</p> <p>Summary 79</p> <p><b>CHAPTER 4: ANDROID STUDIO IN DEPTH 81</b></p> <p>Android Studio Menu Items 82</p> <p>Android Studio 82</p> <p>File 83</p> <p>Edit 84</p> <p>View 86</p> <p>Navigate 86</p> <p>Code 88</p> <p>Analyze 88</p> <p>Refactor 89</p> <p>Build 89</p> <p>Run 90</p> <p>Tools 90</p> <p>Version Control System 90</p> <p>Window and Help Menu 90</p> <p>Android Studio Shortcuts 91</p> <p>Android Studio Tool Views 92</p> <p>Messages 93</p> <p>Android Studio Project Structure 94</p> <p>Favorites 96</p> <p>Android Monitor 96</p> <p>Structure 97</p> <p>Android Model 97</p> <p>Gradle and Gradle Console 98</p> <p>Run 98</p> <p>Debug 99</p> <p>Event Logs 100</p> <p>Terminal 100</p> <p>Android Studio Editor 100</p> <p>Code Assist 101</p> <p>Commenting Out Code Blocks 101</p> <p>Moving Code Blocks 101</p> <p>Navigating Inside the Editor 101</p> <p>Refactoring 102</p> <p>Android Studio Live Templates 102</p> <p>Inserting a Live Template 103</p> <p>Creating Live Templates 104</p> <p>Code Refactoring in Android Studio 107</p> <p>Creating a Signing Key for Android Applications in Android Studio 112</p> <p>Building APKs in Android Studio 114</p> <p>Summary 114</p> <p><b>CHAPTER 5: LAYOUTS WITH ANDROID STUDIO 115</b></p> <p>Layouts with Android Studio 116</p> <p>Adding a New Layout File 116</p> <p>Layout Design Structure in Android Studio 118</p> <p>Layout Previews 120</p> <p>Layout Rendering Options 120</p> <p>Previewing Virtual Device Views 121</p> <p>Previewing on Different Android SDK Versions 121</p> <p>Selecting Themes 122</p> <p>Designing Layouts with Android Studio 123</p> <p>Managing Resources 127</p> <p>Using Strings 127</p> <p>Using Styles 127</p> <p>Using Dimens 129</p> <p>Using Colors 130</p> <p>Using Drawables 130</p> <p>Using Layout Tools 131</p> <p>Translation 131</p> <p>Activity Association 133</p> <p>Asset Management 134</p> <p>Summary 141</p> <p><b>CHAPTER 6: ANDROID BUILD SYSTEM 143</b></p> <p>Using Gradle 144</p> <p>Anatomy of Gradle 144</p> <p>Dependency Management with Gradle 147</p> <p>External Dependencies 147</p> <p>Local Dependencies 149</p> <p>Legacy Maven Dependencies 149</p> <p>Android Plugin for Gradle 150</p> <p>Configuring Android Plugin for Gradle 150</p> <p>Build Configuration 151</p> <p>Build Tasks 151</p> <p>Flavors 152</p> <p>ProGuard 153</p> <p>Automated Tests 155</p> <p>Gradle Plugins 155</p> <p>Writing Your Own Gradle Plugin 155</p> <p>Extending Android Plugin for Gradle 156</p> <p>Summary 157</p> <p><b>CHAPTER 7: MULTI-MODULE PROJECTS 159</b></p> <p>Adding Modules to Android Project 160</p> <p>Phone & Tablet Module 161</p> <p>Android Libraries 164</p> <p>Working with Android Libraries 165</p> <p>Java Libraries 167</p> <p>Android Wear Module 169</p> <p>Running and Debugging an Android Wear Module 170</p> <p>Building APKs with Android Wear Support 173</p> <p>Android TV Module 173</p> <p>Glass Module 179</p> <p>Android Auto Module 182</p> <p>Google Cloud Module 184</p> <p>Importing Modules 189</p> <p>Importing a Gradle Project 189</p> <p>Importing an Eclipse ADT Project 190</p> <p>Importing a JAR/AAR Package 191</p> <p>Removing Modules from a Project 192</p> <p>Summary 193</p> <p><b>CHAPTER 8: DEBUGGING AND TESTING 195</b></p> <p>Debugging Android Code 196</p> <p>Android Debug Bridge 196</p> <p>Wireless Debugging 197</p> <p>Start Debugging 198</p> <p>Android Monitor 206</p> <p>Using logcat 209</p> <p>Using Memory Monitor 210</p> <p>Using CPU Monitor 213</p> <p>Using GPU Monitor 214</p> <p>Using Network Monitor 215</p> <p>Android Device Monitor 216</p> <p>Android Virtual Device Extended Controls 222</p> <p>Using Lint 225</p> <p>Testing Android Code and Application UIs 226</p> <p>Unit Tests 230</p> <p>Integration Tests 232</p> <p>UI Tests 235</p> <p>Performance Testing 241</p> <p>Performance Tests Task 242</p> <p>Summary 244</p> <p><b>CHAPTER 9: USING SOURCE CONTROL: GIT 245</b></p> <p>Introduction to Git 246</p> <p>Understanding Git 246</p> <p>Installing Git 247</p> <p>Using Git 248</p> <p>Using the GitHub Client 249</p> <p>Using Git in Android Studio 259</p> <p>Git Flow 266</p> <p>Summary 279</p> <p><b>CHAPTER 10: CONTINUOUS INTEGRATION 281</b></p> <p>What Is Continuous Integration? 281</p> <p>Integrating Android Projects with a Continuous Integration Server 282</p> <p>Installing Jenkins 283</p> <p>Creating Build Jobs 291</p> <p>Release Management 298</p> <p>Summary 306</p> <p><b>CHAPTER 11: USING ANDROID NDK WITH ANDROID STUDIO 309</b></p> <p>Introduction to Android NDK 310</p> <p>Android Studio NDK Integration 310</p> <p>Android NDK Installation on Linux 311</p> <p>Android NDK Installation on Windows 10 312</p> <p>Android NDK Installation on Mac OS X 313</p> <p>Android NDK with Android Studio Projects 315</p> <p>Importing a Sample NDK Project 316</p> <p>Migrating an Existing NDK Project 322</p> <p>Building Android NDK Projects 326</p> <p>Android NDK Projects Release and Deployment 328</p> <p>Multi vs. Fat Android Application APKs 329</p> <p>Summary 330</p> <p><b>CHAPTER 12: WRITING YOUR OWN PLUGIN 331</b></p> <p>IntelliJ Idea Plugin Architecture 332</p> <p>Actions 332</p> <p>Threading 341</p> <p>File System 342</p> <p>Projects and Components 342</p> <p>Editors 351</p> <p>Wizards 354</p> <p>Packaging and Distribution 360</p> <p>Summary 362</p> <p><b>CHAPTER 13: THIRD-PARTY TOOLS 363</b></p> <p>Android Studio Plugins 363</p> <p>Intel’s Android Software Tools 374</p> <p>Intel System Studio 374</p> <p>Intel C++ Compiler 377</p> <p>Intel Integrated Performance Primitives (Intel IPP) 378</p> <p>Intel Thread Building Blocks (Intel TBB) 379</p> <p>Intel VTune Amplifier 379</p> <p>Intel GPA 381</p> <p>Intel INDE 382</p> <p>Intel Tamper Protection Toolkit 382</p> <p>Intel Multi-OS Engine 382</p> <p>Intel Context Sensing SDK 384</p> <p>Qualcomm Android Software Tools 387</p> <p>Snapdragon LLVM Compiler for Android 388</p> <p>Qualcomm Adreno GPU SDK 388</p> <p>Qualcomm FastCV Computer Vision SDK 389</p> <p>Snapdragon SDK for Android 393</p> <p>Qualcomm AllPlay Click SDK 397</p> <p>Qualcomm Profilers 399</p> <p>NVIDIA Software Tools 401</p> <p>Summary 404</p> <p>INDEX 405</p>
<p><b>About the authors</b> <p>Murat Yener is an Android geek, working at Intel. He is a Google Developer Expert on Android, a Java Champion, a book author and a respected conference speaker. He has deep experience in Java, Web, Java EE and OSGi, as well as teaching and mentoring. Murat is experienced in writing tools for developers and was previously an Eclipse committer. He is an active member and organizer in communities such JUGs and GDGs. <p>Onur Dundar started his professional software engineering career at Intel Corporation as a Software Application Engineer working on mobile platforms, tablets, phones with MeeGo and Android and later on IoT platforms like IPTV, Intel's Galileo and Intel's Edison. Onur is a popular contributor to the software community delivering training on Android application development. He is now working on design and development of reliable data science software platforms, with keeping his interest and work in IoT and Android. <p>Visit us at wrox.com where you have access to free code samples, Programmer to Programmer forums, and discussions on the latest happenings in the industry from around the world.
<p><b>Unleash Android Studio to go far beyond the ordinary application</b> <p><i>Expert Android Studio</i> bridges the gap between your Android programing skills with the provided tools including Android Studio, NDK, Gradle and Plugins for IntelliJ Idea Platform. Packed with best practices and advanced tips and techniques on Android tools, development cycle, continuous integration, release management, testing, and performance, this book offers professional guidance to experienced developers who want to push the boundaries of the Android platform with the developer tools. You'll discover how to use the tools and techniques to unleash your true potential as a developer. <ul> <li>Discover the basics of working in Android Studio and Gradle<sup>®</sup>, as well as the application architecture of the latest Android platform</li> <li>Understand Native Development Kit and its integration with Android Studio</li> <li>Complete your development lifecycle with automated tests, dependency management, continuous integration and release management</li> <li>Writing your own Gradle plugins to customize build cycle</li> <li>Writing your own plugins for Android Studio to help your development tasks.</li> </ul> <p><i>Expert Android Studio</i> is a tool for expert and experienced developers who want to learn how to make use of the tools while creating Android applications for use on mobile devices. <p>Wrox Expert books present the wisdom accumulated by an experienced author team who is recognized as experts by the programming community. These experts challenge professional developers to examine their current practices in pursuit of better results.

Diese Produkte könnten Sie auch interessieren:

Domain Architectures
Domain Architectures
von: Daniel J. Duffy
PDF ebook
31,99 €