Android Application Performance Optimization

Source: Internet
Author: User

Android Application Performance Optimization
Basic Information
Title: Pro Android apps Performance Optimization
Author: (FA) Hervé (G.) [Translator's introduction]
Translator: Bai long
Series name: Turing programming Series
Press: People's post and telecommunications Press
ISBN: 9787115272416
Mounting time:
Published on: February 1, October 2012
Start: 16
Page number: 1
Version: 1-1
Category: Computer> Software and programming> mobile development> android

More about performance optimization for Android applications
Introduction
Books
Computer books
This document describes how to optimize Android applications to make them more robust and faster. The content includes using Java and ndk to optimize applications, making full use of memory to maximize performance, saving as much power as possible, how to use multithreading, and how to use benchmarking code, how to optimize OpenGL code and use renderscript.
Android app performance optimization is intended for Android Developers who are familiar with Java and Android sdks and want to learn how to use local code to optimize app performance.
Directory
Android Application Performance Optimization
Chapter 2 Java code optimization 1
1.1 how Android executes code 1
1.2 optimizing Fibonacci sequence 4
1.2.1 from Recursion TO iteration 4
1.2.2 biginteger 6
1.3 cache result 10
1.4 API Level 12
1.5 data structure 14
1.6 response capability 17
1.6.1 deferred initialization 19
1.6.2 strictmode 19
1.7 SQLite 21
1.7.1 SQLite statement 21
1.7.2 transaction 25
1.7.3 query 26
1.8 conclusion 27
Chapter 2 ndk entry 28
What are 28 in 2.1 ndk?
2.2 mixed use of Java and C/C ++ code 31
2.2.1 declare local method 31
2.2.2 JNI bonding layer 32
2.2.3 create makefile 33
2.2.4 implement local function 35
2.2.5 compile local database 36
2.2.6 load local database 37
2.3 Application. mk 37
2.3.1 optimized for (almost) All devices 39
2.3.2 support for all devices 40
2.4 Android. mk 43
2.5 use C/C ++ to improve performance 45
2.6 local acitivity 52
2.6.1 build missing libraries 54
2.6.2 alternative solution 59
2.7 conclusion 60
Chapter 2 ndk advanced 61
3.1 assembly 61
3.1.1 Max. Public approx. 62
3.1.2 color conversion 66
3.1.3 average value of parallel computing 70
3.1.4 arm command 74
3.1.5 arm neon 79
3.1.6 CPU features 80
3.2 c extension 81
3.2.1 built-in functions 82
3.2.2 vector instruction 82
3.3 tip 86
3.3.1 inline function 87
3.3.2 loop expansion 87
3.3.3 memory pre-read 87
3.3.4 replace LDR/STD 89 with LDM/STM
3.4 Conclusion 89
Chapter 1 efficient memory usage 90
4.1 talk about memory 90
4.2 Data Type 91
4.2.1 comparison of values 93
4.2.2 other algorithms 95
4.2.3 array sorting 96
4.2.4 define your own class 97
4.3 Access Memory 98
4.4 arrange data 100
4.5 Garbage collection 104
4.5.1 Memory leakage 105
4.5.2 reference 106
4.6 API 109
4.7 when the memory is less than 110
4.8 Conclusion 111
Chapter 2 multithreading and synchronization 5th
5.1 threads 112
5.2 asynctask 115
5.3 handler and lofter 118
5.3.1 handler 118
5.3.2 logoff 120
5.4 data type 120
5.5 concurrency 124
5.6 multi-core 125
5.6.1 modify the algorithm 126 for multiple cores
5.6.2 use concurrent cache 129
5.7 activity lifecycle 131
5.7.1 transmit information 132
5.7.2 remember status 134
5.8 conclusion 137
Chapter 1 Performance Evaluation and Analysis 6th
6.1 Time Measurement 138
6.1.1 system. nanotime () 139
6.1.2 Debug. threadcputimenanos () 140
6.2 method call tracking 141
6.2.1 Debug. startmethodtracing () 141
6.2.2 use traceview 142
6.2.3 traceview 144 in ddms
6.2.4 local method tracking 145
6.3 log 147
6.4 conclusion 148
Chapter 1 extend battery life by 7th
7.1 battery 150
7.2 disable broadcast receiver 155
7.3 network 159
7.3.1 background data 159
7.3.2 data transmission 160
7.4 location 162
7.4.1 disconnect listener 163
7.4.2 164 update frequency
7.4.3 multi-location service 164
7.4.4 screening and positioning service 166
7.4.5 last known location 168
7.5 sensor 169
7.6 graphics 170
7.7 reminder 171
7.8 wakelock 173
7.9 conclusion 175
Chapter 2 graphics 8th
8.1 layout optimization 176
8.1.1 relative layout 178
8.1.2 merging layout 181
8.1.3 reuse layout 183
8.1.4 viewstub 184
8.2 layout tool 185
8.2.1 hierarchical view 186
8.2.2 layoutopt 186
8.3 OpenGL ES 186
8.3.1 expansion 187
8.3.2 texture compression 189
8.3.3 mipmap 193
8.3.4 multiple APK 194
8.3.5 coloring 195
8.3.6 complexity 195
8.3.7 blanking 195
8.3.8 rendering mode 195
8.3.9 195 Power Consumption management
8.4 conclusion 196
Chapter 2 renderscript 9th
9.1 overview 197
9.2 Hello World 199
9.3 Hello rendering 202
9.3.1 create rendering script 202
9.3.2 create a renderscriptgl context 203
9.3.3 expand rssurfaceview 204
9.3.4 set content view 204
9.4 Add the variable 205 to the script
9.5 hellocompute 208
9.5.1 alloca 209
V9.5.2 rsforeach 210
9.5.3 performance 213
9.6 built-in renderscript API 214
9.6.1 rs_types.rsh 215
9.6.2 rs_core.rsh 217
9.6.3 rs_cl.rsh 219
9.6.4 rs_math.rsh 222
9.6.5 rs_graphics.rsh 223
9.6.6 rs_time.rsh 224
9.6.7 rs_atomic.rsh 225
9.7 comparison between renderscript and ndk 225
9.8 conclusion 226

Source of this book: China Interactive publishing network

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.