Home Page Icon
Home Page
Table of Contents for
Contents
Close
Contents
by Onur Dundar, Murat Yener
Expert Android Studio
Title Page
INTRODUCTION
Who this Book is For
What this Book Covers
How this Book is Structured
What you Need to Use this Book
Why we Wrote this Book
Conventions
Source Code
Errata
p2p.wrox.com
CHAPTER 1: GETTING STARTED
System Requirements for Windows, Mac OS X, and Linux
Installing Java
Installing Android Studio
Launching Android Studio for the First Time
Standalone SDK Installation
Summary
CHAPTER 2: ANDROID STUDIO BASICS
Creating a New Sample Project
Android Emulator
Migrating Projects from Eclipse
Summary
CHAPTER 3: ANDROID APPLICATION DEVELOPMENT WITH ANDROID STUDIO
Android Projects
Android Activities
Android Services
Add Assets for Android Project
Adding XML Files to an Android Project
Android Manifest File
Android Modules
Summary
CHAPTER 4: ANDROID STUDIO IN DEPTH
Android Studio Menu Items
Android Studio Shortcuts
Android Studio Tool Views
Android Studio Editor
Android Studio Live Templates
Code Refactoring in Android Studio
Creating a Signing Key for Android Applications in Android Studio
Building APKs in Android Studio
Summary
CHAPTER 5: LAYOUTS WITH ANDROID STUDIO
Layouts with Android Studio
Layout Previews
Designing Layouts with Android Studio
Managing Resources
Using Layout Tools
Asset Management
Summary
CHAPTER 6: ANDROID BUILD SYSTEM
Using Gradle
Dependency Management with Gradle
Android Plugin for Gradle
Gradle Plugins
Summary
CHAPTER 7: MULTI-MODULE PROJECTS
Adding Modules to Android Project
Phone & Tablet Module
Android Libraries
Java Libraries
Android Wear Module
Android TV Module
Glass Module
Android Auto Module
Google Cloud Module
Importing Modules
Removing Modules from a Project
Summary
CHAPTER 8: DEBUGGING AND TESTING
Debugging Android Code
Android Monitor
Android Device Monitor
Android Virtual Device Extended Controls
Using Lint
Testing Android Code and Application UIs
Summary
CHAPTER 9: USING SOURCE CONTROL: GIT
Introduction to Git
Using Git
Using the GitHub Client
Using Git in Android Studio
Git Flow
Summary
CHAPTER 10: CONTINUOUS INTEGRATION
What Is Continuous Integration?
Integrating Android Projects with a Continuous Integration Server
Installing Jenkins
Creating Build Jobs
Release Management
Summary
CHAPTER 11: USING ANDROID NDK WITH ANDROID STUDIO
Introduction to Android NDK
Android Studio NDK Integration
Android NDK with Android Studio Projects
Android NDK Projects Release and Deployment
Summary
CHAPTER 12: WRITING YOUR OWN PLUGIN
IntelliJ Idea Plugin Architecture
Packaging and Distribution
Summary
CHAPTER 13: THIRD-PARTY TOOLS
Android Studio Plugins
Intel's Android Software Tools
Qualcomm Android Software Tools
NVIDIA Software Tools
Summary
End User License Agreement
Search in book...
Toggle Font Controls
Playlists
Add To
Create new playlist
Name your new playlist
Playlist description (optional)
Cancel
Create playlist
Sign In
Email address
Password
Forgot Password?
Create account
Login
or
Continue with Facebook
Continue with Google
Sign Up
Full Name
Email address
Confirm Email Address
Password
Login
Create account
or
Continue with Facebook
Continue with Google
Prev
Previous Chapter
Cover
Next
Next Chapter
Title Page
Table of Contents
Title Page
INTRODUCTION
Who this Book is For
What this Book Covers
How this Book is Structured
What you Need to Use this Book
Why we Wrote this Book
Conventions
Source Code
Errata
p2p.wrox.com
CHAPTER 1: GETTING STARTED
System Requirements for Windows, Mac OS X, and Linux
Installing Java
Installing Android Studio
Launching Android Studio for the First Time
Standalone SDK Installation
Summary
CHAPTER 2: ANDROID STUDIO BASICS
Creating a New Sample Project
Android Emulator
Migrating Projects from Eclipse
Summary
CHAPTER 3: ANDROID APPLICATION DEVELOPMENT WITH ANDROID STUDIO
Android Projects
Android Activities
Android Services
Add Assets for Android Project
Adding XML Files to an Android Project
Android Manifest File
Android Modules
Summary
CHAPTER 4: ANDROID STUDIO IN DEPTH
Android Studio Menu Items
Android Studio Shortcuts
Android Studio Tool Views
Android Studio Editor
Android Studio Live Templates
Code Refactoring in Android Studio
Creating a Signing Key for Android Applications in Android Studio
Building APKs in Android Studio
Summary
CHAPTER 5: LAYOUTS WITH ANDROID STUDIO
Layouts with Android Studio
Layout Previews
Designing Layouts with Android Studio
Managing Resources
Using Layout Tools
Asset Management
Summary
CHAPTER 6: ANDROID BUILD SYSTEM
Using Gradle
Dependency Management with Gradle
Android Plugin for Gradle
Gradle Plugins
Summary
CHAPTER 7: MULTI-MODULE PROJECTS
Adding Modules to Android Project
Phone & Tablet Module
Android Libraries
Java Libraries
Android Wear Module
Android TV Module
Glass Module
Android Auto Module
Google Cloud Module
Importing Modules
Removing Modules from a Project
Summary
CHAPTER 8: DEBUGGING AND TESTING
Debugging Android Code
Android Monitor
Android Device Monitor
Android Virtual Device Extended Controls
Using Lint
Testing Android Code and Application UIs
Summary
CHAPTER 9: USING SOURCE CONTROL: GIT
Introduction to Git
Using Git
Using the GitHub Client
Using Git in Android Studio
Git Flow
Summary
CHAPTER 10: CONTINUOUS INTEGRATION
What Is Continuous Integration?
Integrating Android Projects with a Continuous Integration Server
Installing Jenkins
Creating Build Jobs
Release Management
Summary
CHAPTER 11: USING ANDROID NDK WITH ANDROID STUDIO
Introduction to Android NDK
Android Studio NDK Integration
Android NDK with Android Studio Projects
Android NDK Projects Release and Deployment
Summary
CHAPTER 12: WRITING YOUR OWN PLUGIN
IntelliJ Idea Plugin Architecture
Packaging and Distribution
Summary
CHAPTER 13: THIRD-PARTY TOOLS
Android Studio Plugins
Intel's Android Software Tools
Qualcomm Android Software Tools
NVIDIA Software Tools
Summary
End User License Agreement
Pages
vi
vii
ix
xi
xii
xiii
xxiii
xxiv
xxv
xxvi
xxvii
xxviii
xxix
xxx
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
Guide
Table of Contents
Begin Reading
List of Illustrations
Chapter 1: Getting Started
Figure 1.1 JDK download page
Figure 1.2 Java installation setup wizard
Figure 1.3 Java installation setup window
Figure 1.4 Java path setup for Windows 10
Figure 1.5 Java Environment Variables setup for Windows 10 64-bit
Figure 1.6 Mac OS X Java installation
Figure 1.7 Java installation Max OS X
Figure 1.8 Android Studio download page
Figure 1.9 Android Studio Setup window
Figure 1.10 Android Studio Setup configuration for Windows
Figure 1.11 Intel HAXM configuration dialog for Windows
Figure 1.12 Android Studio theme selection on Windows
Figure 1.13 Android Studio installer for Mac OS X
Figure 1.14 Android Studio Setup Wizard for Max OS X
Figure 1.15 Intel HAXM configuration for Mac OS X
Figure 1.16 Summary window for Max OS X installation
Figure 1.17 Android Studio Setup Wizard for Linux
Figure 1.18 Theme selection window for Linux
Figure 1.19 Android SDK configuration on Linux
Figure 1.20 First launch of Android Studio
Figure 1.21 Welcome to Android Studio
Chapter 2: Android Studio Basics
Figure 2.1 Welcome to Android Studio window
Figure 2.2 Import Sample—Browse Samples window
Figure 2.3 Import Sample—Sample Setup window
Figure 2.4 SDK Manager button in Android Studio
Figure 2.5 Android Default Preferences for Android SDK window
Figure 2.6 Android SDK Manager installation window
Figure 2.7 Android Studio after importing the sample project
Figure 2.8 Project view on Android Studio
Figure 2.9 Traditional project view
Figure 2.10 Expanded view of project folders
Figure 2.11 Opened Java file on Android Studio
Figure 2.12 res folder in Android project view
Figure 2.13 Build menu list
Figure 2.14 Run menu items in Android Studio
Figure 2.15 Android Studio Run ‘Application’ button
Figure 2.16 Intel HAXM selection in Windows
Figure 2.17 Android Studio AVD Manager button
Figure 2.18 AVD Manager's initial appearance
Figure 2.19 List of virtual device hardware
Figure 2.20 System Image selection for AVD
Figure 2.21 AVD configuration window
Figure 2.22 List of created virtual devices
Figure 2.23 Start migrating from Eclipse
Figure 2.24 Select project path to import
Figure 2.25 Export from Eclipse
Figure 2.26 Export window on Eclipse
Chapter 3: Android Application Development With Android Studio
Figure 3.1 Android Studio Welcome window
Figure 3.2 Create New Project window
Figure 3.3 Target device selection window
Figure 3.4 Android Platform/API Version Distribution window
Figure 3.5 Add activity window
Figure 3.6 Activity customization window
Figure 3.7 First Project View in Android Studio
Figure 3.8 Multiple target device selection
Figure 3.9 Adding a Wear Activity
Figure 3.10 Wear Activity configuration window
Figure 3.11 Two modules shown in Project View
Figure 3.12 Android Studio toolbar Run ‘app’ button
Figure 3.13 Device selection window
Figure 3.14 Launch emulator option in the Device selection window
Figure 3.15 Hello World application running on the emulator
Figure 3.16 Android Activity lifecycle
Figure 3.17 Adding a new activity template
Figure 3.18 Activity template customization
Figure 3.19 Empty Activity template on an Android device
Figure 3.20 Fragment lifecycle
Figure 3.21 Tabbed Activity customization window
Figure 3.22 Tabbed Activity template screenshot with Swipe Views navigation style
Figure 3.23 Action Bar Tabbed and Spinner UI screenshots for the Tabbed Activity template
Figure 3.24 Customizing the service class name
Figure 3.25 IntentService customization window
Figure 3.26 res folder content
Figure 3.27 New Image Asset menu
Figure 3.28 Image Asset Studio window
Figure 3.29 Image Asset Studio summary
Figure 3.30 string.xml and the values folder content
Figure 3.31 New Module selection window
Figure 3.32 Creating a new module
Figure 3.33 Project View after a new module iscreated
Chapter 4: Android Studio In Depth
Figure 4.1 Menus on Mac OS X
Figure 4.2 Preferences window
Figure 4.3 File operations menu
Figure 4.4 New menu action items
Figure 4.5 Project Structure window
Figure 4.6 Edit menu items
Figure 4.7 Find menu items
Figure 4.8 View menu items
Figure 4.9 Navigate menu items
Figure 4.10 Implementation of the superclass BroadcastReceiver
Figure 4.11 Code menu items
Figure 4.12 Analyze menu items
Figure 4.13 Inspection window
Figure 4.14 Refactor menu items
Figure 4.15 Refactor options
Figure 4.16 Build menu items
Figure 4.17 Android Studio Tools menu
Figure 4.18 VCS menu items
Figure 4.19 Keymap window
Figure 4.20 Enter Keyboard Shortcut window
Figure 4.21 Tools Window items
Figure 4.22 Accessing the tools shortcuts
Figure 4.23 Activated tools
Figure 4.24 Messages tool window
Figure 4.25 Project view options
Figure 4.26 Favorites window
Figure 4.27 Android Monitor window
Figure 4.28 Structure view of a Java class
Figure 4.29 Android Model view for mobile applications
Figure 4.30 Run window
Figure 4.31 Debug window
Figure 4.32 Android Studio Terminal
Figure 4.33 Live Template window
Figure 4.34 Auto complete for a Live Template
Figure 4.35 Cursor highlight in a Live Template
Figure 4.36 Insert Live Template
Figure 4.37 Surrounding Live Templates
Figure 4.38 Add template button
Figure 4.39 Adding a Live Template
Figure 4.40 Edit Template Variables window
Figure 4.41 Live Template context list
Figure 4.42 Surrounding Live Template
Figure 4.43 Refactoring options right-click menu
Figure 4.44 Push Members Down window
Figure 4.45 Pull Members Up window
Figure 4.46 Encapsulation
Figure 4.47 Change Signature window
Figure 4.48 Select the module to create a signed APK
Figure 4.49 Create new key for the signing certificate
Figure 4.50 Certificate form
Chapter 5: Layouts with Android Studio
Figure 5.1 Layouts in the Project view
Figure 5.2 Adding a new layout in Android Studio
Figure 5.3 Configuring a new layout file
Figure 5.4 Layout in text mode
Figure 5.5 Visually designing in Android Studio
Figure 5.6 Preview window
Figure 5.7 Layout rendering options
Figure 5.8 Selecting a layout to preview in Android Studio
Figure 5.9 List of generic devices
Figure 5.10 Picking the Android SDK version for previewing
Figure 5.11 Theme selection window
Figure 5.12 Palette tool
Figure 5.13 New components added to a layout
Figure 5.14 Editing properties
Figure 5.15 Adding a new component in XML files
Figure 5.16 Editing view properties in XML
Figure 5.17 Resource selection window
Figure 5.18 Color resources definition
Figure 5.19 Translation Editor
Figure 5.20 Expanded list of locales
Figure 5.21 Translated and default value
Figure 5.22 Android Studio language ordering web page
Figure 5.23 Associate with other Activity
Figure 5.24 Asset resolution list
Figure 5.25 Visual structure for asset resources
Figure 5.26 Adding an image asset
Figure 5.27 Asset Studio window
Figure 5.28 Asset type listing
Figure 5.29 Foreground options
Figure 5.30 Adding a vector asset
Figure 5.31 Creating a vector asset
Chapter 6: Android Build System
Figure 6.1 Build variant selection
Chapter 7: Multi-Module Projects
Figure 7.1 New Module selection
Figure 7.2 Configuring a new Phone & Tablet module
Figure 7.3 Phone & Tablet module in Project view
Figure 7.4 Android Library module
Figure 7.5 Module dependencies
Figure 7.6 Add a dependency
Figure 7.7 Java Library module configuration
Figure 7.8 Java Library module in Project view
Figure 7.9 Wear module preview
Figure 7.10 Wear virtual device selection
Figure 7.11 Wear virtual device configuration
Figure 7.12 List of runnable modules
Figure 7.13 Wear app in Android Wear AVD
Figure 7.14 APK generation completed notification
Figure 7.15 Android TV module activity configuration
Figure 7.16 Android TV module view in the project window
Figure 7.17 Select TV resolution and density
Figure 7.18 Android TV image selection
Figure 7.19 TV module selection
Figure 7.20 Running Android TV application on AVD
Figure 7.21 Android TV module debug selection
Figure 7.22 Glass module naming
Figure 7.23 Glass module activity selection
Figure 7.24 Android Auto activities
Figure 7.25 Google Cloud module setup wizard
Figure 7.26 Google Cloud module types
Figure 7.27 Google Cloud module configuration
Figure 7.28 Google Cloud module after module creation
Figure 7.29 Runnable modules with Google Cloud module
Figure 7.30 Message output for the Google Cloud module run
Figure 7.31 Google Cloud module launch from browser
Figure 7.32 Gradle project module naming
Figure 7.33 Module naming for an imported Eclipse ADT project
Figure 7.34 Dependency replacement confirmation for an imported Eclipse ADT project
Figure 7.35 Missing Android SDK version warning
Figure 7.36 Importing a JAR/AAR package
Figure 7.37 Project view of an imported JAR/AAR module
Figure 7.38 Module Remove confirmation
Chapter 8: Debugging and Testing
Figure 8.1 Android Studio adb integration
Figure 8.2 Break point in Android Studio
Figure 8.3 Debug window console
Figure 8.4 Debug window left pane actions
Figure 8.5 Breakpoints window
Figure 8.6 Thread dump data
Figure 8.7 Debug window actions toolbar
Figure 8.8 Evaluate Expression window
Figure 8.9 Undefined result in the Evaluate Expression window
Figure 8.10 Actions accessible inside Java code
Figure 8.11 Debugger tab in the Debug window
Figure 8.12 Variable actions
Figure 8.13 Watches pane
Figure 8.14 Highlighted variables and values in code
Figure 8.15 Hovering over a variable to reveal its value
Figure 8.16 Android Monitor tabs
Figure 8.17 List of system information available with Android Monitor
Figure 8.18 Screenshot preview window
Figure 8.19 Screen Recorder Options dialog box
Figure 8.20 System information Captures window
Figure 8.21 Device and process selection
Figure 8.22 No Filters output in logcat
Figure 8.23 Log type selection
Figure 8.24 Memory monitor
Figure 8.25 Java Heap dump
Figure 8.26 hprof memory dump
Figure 8.27 Allocation tracking file
Figure 8.28 Allocation tracking with allocator grouping
Figure 8.29 CPU monitor
Figure 8.30 CPU track dump
Figure 8.31 GPU monitor
Figure 8.32 Network monitor
Figure 8.33 Android Device Monitor
Figure 8.34 Threads in Android Device Monitor
Figure 8.35 Thread trace
Figure 8.36 Heap tracing in Android Device Monitor
Figure 8.37 XML dump icon
Figure 8.38 XML dump view
Figure 8.39 Android Device Monitor File Explorer
Figure 8.40 System Information view in Android Device Monitor
Figure 8.41 Hierarchy view generation
Figure 8.42 Hierarchy view details
Figure 8.43 Virtual device toolbar
Figure 8.44 Extended controls window
Figure 8.45 GPS location setting
Figure 8.46 Emulator call
Figure 8.47 Android virtual device keyboard shortcuts
Figure 8.48 Android Lint output
Figure 8.49 Creating a new class in the tests folder
Figure 8.50 CalculatorTest results
Figure 8.51 Debugging a mock class
Figure 8.52 Running an Espresso test
Figure 8.53 Test output
Figure 8.54 Systrace output
Chapter 9: Using Source Control: GIT
Figure 9.1 Distributed version control using Git
Figure 9.2 Git branch
Figure 9.3 Merging a non-conflicting branch
Figure 9.4 Merging conflicting branch
Figure 9.5 GitHub page
Figure 9.6 Git configuration output
Figure 9.7 GitHub Desktop Application Install – Security Warning window
Figure 9.8 GitHub Desktop installation process
Figure 9.9 GitHub Desktop start screen
Figure 9.10 GitHub Desktop welcome screen
Figure 9.11 Connecting to GitHub
Figure 9.12 GitHub repositories list
Figure 9.13 Creating a new repository with GitHub Desktop
Figure 9.14 Repository path selection
Figure 9.15 Other projects list
Figure 9.16 Untracked changes shown on the GitHub Client
Figure 9.17 List of changes on GitHub Desktop
Figure 9.18 Importing a project
Figure 9.19 Git project path
Figure 9.20 Sign-in warning
Figure 9.21 Sign-in screen
Figure 9.22 Entering the repository name and description
Figure 9.23 GitHub project display
Figure 9.24 The Sync button on GitHub
Figure 9.25 Creating a new project
Figure 9.26 Selecting modules and an SDK version
Figure 9.27 Enabling version control integration in Android Studio
Figure 9.28 List of version control systems available for Android Studio
Figure 9.29 Import into Version Control options
Figure 9.30 Untracked changes in Android Studio
Figure 9.31 Adding items to the Git repository
Figure 9.32 Added changes to Git in Android Project View
Figure 9.33 Commit action in Android Studio
Figure 9.34 Android Studio Commit Changes wizard
Figure 9.35 The Commit button in Android Studio
Figure 9.36 Code Analysis warning window
Figure 9.37 Branch menu item
Figure 9.38 New Branch selection
Figure 9.39 Branch naming
Figure 9.40 Simple change in code
Figure 9.41 Uncommitted changes indicated in Android Studio
Figure 9.42 Commit the file changes
Figure 9.43 Diff tool output
Figure 9.44 Changelist window
Figure 9.45 Commit changes window
Figure 9.46 Merging changes
Figure 9.47 Branch merge
Figure 9.48 Master branch visualization from GitUp
Figure 9.49 Branch visualization from GitUp
Figure 9.50 Merge conflict warning
Figure 9.51 Merge Revisions window
Figure 9.52 Manual merge
Figure 9.53 Saving changes notification
Figure 9.54 Updated commit message
Figure 9.55 GitUp visualization after conflict resolution
Figure 9.56 Defining a remote in the Push Commit window
Figure 9.57 Remote repository definition
Figure 9.58 Push commit summary
Chapter 10: Continuous Integration
Figure 10.1 Jenkins download page
Figure 10.2 Jenkins installation window
Figure 10.3 Jenkins license agreement
Figure 10.4 Jenkins installation directory selection
Figure 10.5 Jenkins installation final window
Figure 10.6 Jenkins server URL
Figure 10.7 Accessing Jenkins from a browser
Figure 10.8 Jenkins plugins
Figure 10.9 Searching Jenkins plugins
Figure 10.10 Plugin search results
Figure 10.11 Jenkins plugin download
Figure 10.12 Jenkins plugin download progress
Figure 10.13 Creating build jobs
Figure 10.14 Sample application fork
Figure 10.15 Build job for the application fork sample
Figure 10.16 Jenkins access to GitHub
Figure 10.17 Repository initialization
Figure 10.18 Credentials for Jenkins
Figure 10.19 Build frequency selection
Figure 10.20 Email notification initialization
Figure 10.21 Email notification to user
Figure 10.22 Building the project
Figure 10.23 Schedule for the build
Figure 10.24 Build properties by build number
Figure 10.25 Console output of the build process
Figure 10.26 Jenkins dashboard
Figure 10.27 Status of the build in Jenkins
Figure 10.28 Plugin search
Figure 10.29 Download selected plugins
Figure 10.30 Configuring a Jenkins build job
Figure 10.31 Running on Android emulator
Figure 10.32 Emulator configuration
Figure 10.33 Google Play account configuration for Jenkins
Figure 10.34 Google Play account credentials configuration
Figure 10.35 Google Service Account private key
Figure 10.36 Getting your JSON key from the Google Developer Console
Figure 10.37 Release configuration
Figure 10.38 Build progress to install Android SDK and tools
Figure 10.39 Build progress to install the emulator
Figure 10.40 Jenkins creating the emulator
Figure 10.41 Jenkins launching the emulator
Chapter 11: Using Android NDK with Android Studio
Figure 11.1 Android NDK bundle license agreement
Figure 11.2 Project Structure window
Figure 11.3 Android Studio installs Android NDK
Figure 11.4 Android Studio Project Structure window in Windows 10
Figure 11.5 Android NDK setup completion
Figure 11.6 Importing a sample project from the Welcome to Android Studio window
Figure 11.7 Sample NDK projects list
Figure 11.8 Sample configuration
Figure 11.9 Downloading the sample project
Figure 11.10 Project View of the Hello JNI project
Figure 11.11 Importing an NDK project
Figure 11.12 Gradle scripts after importing an NDK project
Figure 11.13 Syncing the project after changing the plugin
Figure 11.14 Gradle build failure after changing the plugin
Chapter 12: Writing Your Own Plugin
Figure 12.1 IntelliJ IDEA download page
Figure 12.2 IntelliJ IDE Start screen
Figure 12.3 List of project types
Figure 12.4 IntelliJ SDK location configuration
Figure 12.5 Plugin option on the IntelliJ toolbar
Figure 12.6 IntelliJ IDEA welcome wizard
Figure 12.7 Contents of the plugin.xml file
Figure 12.8 Smart fix options
Figure 12.9 Class inheritance control
Figure 12.10 Smart assistance to help class extension
Figure 12.11 New menu view
Figure 12.12 New menu item
Figure 12.13 New plugin's popup greeting
Figure 12.14 New action selection
Figure 12.15 New Action window
Figure 12.16 New plugin creation
Figure 12.17 Creating the EditorAction class
Figure 12.18 Implement methods selection
Figure 12.19 The plugin action with text selected
Figure 12.20 Right-click actions when no text is selected
Figure 12.21 CustomWizard class creation
Figure 12.22 Implementing the CustomWizard action
Figure 12.23 ActionWizard class methods
Figure 12.24 Creating the new wizard
Figure 12.25 Custom wizard steps
Figure 12.26 Plugin deployment selection
Figure 12.27 Plugin package info popup dialog box
Figure 12.28 Installing the plugin from disk
Chapter 13: Third-Party Tools
Figure 13.1 Installed plugins in Android Studio
Figure 13.2 Installable Android Studio plugins
Figure 13.3 JetBrains plugins website
Figure 13.4 After plugin installation
Figure 13.5 .ignore plugin
Figure 13.6 ADB Idea action list
Figure 13.7 ADB WIFI menu
Figure 13.8 ADB WIFI connection information
Figure 13.9 Android Drawable Importer plugin actions
Figure 13.10 Icon Pack Drawable Importer
Figure 13.11 Generate menu for the Parcelable class
Figure 13.12 Android Holo Colors configuration page
Figure 13.13 Key Prompter popup
Figure 13.14 jimu Mirror tool menu and action buttons
Figure 13.15 Genymotion Device Manager window
Figure 13.16 Genymotion Virtual Device List
Figure 13.17 Genymotion application window
Figure 13.18 Genymotion Player window
Figure 13.19 Intel System Studio version comparison
Figure 13.20 Intel System Studio components
Figure 13.21 Eclipse Integration selection
Figure 13.22 Intel System Studio Android NDK integration
Figure 13.23 Intel C++ Compiler Hello JNI sample
Figure 13.24 Intel VTune Amplifier
Figure 13.25 Intel VTune Amplifier new project view
Figure 13.26 Multi-OS Engine SDK path selections
Figure 13.27 Multi-OS Engine Installation path selection
Figure 13.28 Multi-OS Engine Android Studio menu items
Figure 13.29 Intel Context Sensing SDK installer
Figure 13.30 Intel Context Sensing SDK installation content
Figure 13.31 Importing the Intel Context Sensing SDK library
Figure 13.32 PhysicalActivitySensingSample screenshot
Figure 13.33 FastCV SDK directory
Figure 13.34 FastCV demo application in Android Studio
Figure 13.35 Facial Recognition API Tests
Figure 13.36 Importing FacialRecognitionSample
Figure 13.37 Adding a jar file as a library
Figure 13.38 JNI library dependency for Snapdragon SDK
Figure 13.39 Snapdragon SDK Face Recognition sample application
Figure 13.40 AllPlay Click download package contents
Figure 13.41 AllPlay Click demo project view
Figure 13.42 AllPlay Click demo application
Figure 13.43 Windows system path variables list
Figure 13.44 Snapdragon Profiler in use
Figure 13.45 NVIDIA CodeWorks path configuration
Figure 13.46 NVIDIA CodeWorks components
Add Highlight
No Comment
..................Content has been hidden....................
You can't read the all page of ebook, please click
here
login for view all page.
Day Mode
Cloud Mode
Night Mode
Reset