Android picture performance optimization: Bitmap
1, Introduce
As a large memory consumer, pictures have always been the key object that developers try to optimize. Bitmap's memory is located in native before 3.0, then changed to jvm, and then changed back to native after 8.0. Each jvm process has a memory limit, while native has no limit (not without impact, at least not oom). Therefore, mov ...
Added by munky334 on Sun, 16 Jan 2022 12:53:03 +0200
A set of code packages multiple applications and configures different package names and signatures
When developing an application, the basic functions are the same. When packaging, distinguish channels, configure different package names and signatures.
1. Create a new project
Simply create a default Hello World project.
2. Create a new folder for the corresponding channel
Create a new folder qudao1 in the src directory, and then generate ...
Added by maxrisc on Sun, 16 Jan 2022 04:17:29 +0200
Android reverse - actual combat so analysis - a continent_ v3.5.8_unidbg learning
1. Introduction to unidbg
unidbg is a reverse tool based on unicorn to simulate the execution of binary programs. It allows security researchers to run android or ios dynamic library files directly on PC and call their methods to see the functions supported by the tool. The supported functions are as follows:
Supports simulated execution ...
Added by always_confused on Sat, 15 Jan 2022 23:00:00 +0200
The "basic operation" uploaded by OkHttp breakpoint is really unknown?
1. Foreword
Students often ask: how to upload files at breakpoints?
Breakpoint upload / download is a common scenario on the client. When we need to upload or download a large file, we will consider using breakpoint continuation.
The biggest difference between breakpoint upload and breakpoint download lies in the record of breakpoint locatio ...
Added by homer09001 on Sat, 15 Jan 2022 22:29:57 +0200
Android Development: Activity activity
Personal notes sorting
Activity activity
Activity basic usage
Registration activities
Need to be in androidmanifest Register the activity in the application node in XML
<activity android:name=".FirstActivity"/>
If primary Activity
<activity android:name=".FirstActivity"
android:label="This is FirstActivity">
<int ...
Added by omanush on Sat, 15 Jan 2022 20:23:52 +0200
ViewPager2+Fragment interface refresh problem
Let's start with the code. You can ignore the creation of sets and fragment s in the adapter style we often write.
public class VP2TaskPagerAdapter extends FragmentStateAdapter {
private List<TaskTableBean> taskTableBeans;
public VP2TaskPagerAdapter(FragmentManager fragmentManager, Lifecycle lifecycle,List<TaskTableBean> ta ...
Added by Ton Wibier on Sat, 15 Jan 2022 17:12:37 +0200
Custom View to implement letter navigation control
Today, I share a previously implemented address book letter navigation control. Next, customize an address book like letter Navigation View. You can know several elements that need to be customized, such as drawing letter indicator, drawing text, touch monitoring, coordinate calculation, etc. the functions that can be achieved after customizati ...
Added by mguili on Sat, 15 Jan 2022 14:34:48 +0200
Android basic to advanced UI father level TextView introduction + Example
What is TextView
Displays text to users and optionally allows them to edit the text. TextView is a complete text editor, but the base class is, and editing is not allowed; Its subclass EditText allows text editing.
Let's first look at the inheritance relationship of TextView in the previous figure:
As can be seen from the above figure, TxtV ...
Added by imnu on Sat, 15 Jan 2022 12:54:21 +0200
Analysis of OkHttp source code of Android network framework -- interceptor analysis
Android network framework -- OkHttp source code analysis
This article is based on Kotlin language
Previous article: Analysis of OkHttp source code of Android network framework (1) -- request process After explaining the request process of OkHttp, this article enters the second part - OkHttp interceptor analysis.
Interceptor analysis of ...
Added by seriousdamage on Sat, 15 Jan 2022 11:46:01 +0200
Summary of Android JNI Development
[Reprint] Link to the original text JNI_NDK Getting Started Details
In Android development, for a variety of reasons (cross-platform, high performance, sensitive data processing, etc.), a well-known JNI(Java Native Interface) is needed. This article will take you to review some common points of knowledge in JNI. So there are no explanations ...
Added by jaydeesmalls on Sat, 15 Jan 2022 07:19:53 +0200