Dex file resolution
Dex file structure
File header
typedef struct {
u1 magic[MAGIC_LENGTH]; /* includes version number */
u4 checksum; /* adler32 Verify remaining length files */
u1 signature[kSHA1DigestLen]; /* SHA-1 Document signature */
u4 fileSize; /* length of entire file */
u4 headerSize; /* offs ...
Posted by russellbcv on Sat, 02 Nov 2019 11:37:07 -0700
android -- the underline width of the higher version of Tablayout
Previously, there was a blog that wrote TabLayout, and recently developed and used the high-level version. I encountered some problems to summarize
Android--------TabLayout realizes the top navigation bar of news client
Tablayout in Android sets the underline width and the conversion between dp and px
There is no problem before API 28. Af ...
Posted by AliasXNeo on Sat, 02 Nov 2019 07:27:07 -0700
Simple network judgment
Add authority
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
Create an instance of IntentFilter and add a value to it, action of "Android. Net. Conn.connectivity" change
When the network status changes, the system issues a broadcast with the value ...
Posted by RGBlackmore on Sat, 02 Nov 2019 00:43:37 -0700
About the use of config.gradle
Last night, I read this article and mentioned config.gradle, such a configuration, so today I found a DEMO to try, record and summarize it.
This diagram is a directory structure
config.gradle--project
ext {
android = [
compileSdkVersion: 28,
buildToolsVersion: "28 ...
Posted by maya28 on Thu, 31 Oct 2019 08:50:07 -0700
Camera is called and displayed in Android.
Here is mainly through the click of the button to open the camera, and then the pictures taken are displayed.
First, add these two permissions to Android manifest.xml:
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permiss ...
Posted by mmilano on Thu, 31 Oct 2019 03:09:06 -0700
Difference between View.inflate and layoutinflate.inflate methods and source code
View.inflate and LayoutInflater.inflate are commonly used methods. They are always used back and forth without paying attention to the difference between them. Make a list to add color to the items. View.inflate can never be used, so we find the next source code.
Let's first look at the call of View ...
Posted by iambradn on Wed, 30 Oct 2019 21:51:02 -0700
Android defines html document and loads display in string.xml, and intercepts WebView link event
I. how to define html document in string.xml
First of all, it's better to create a new html file by yourself, and then start writing your own content. And preview the effect in the browser.
First, write a simple html document in advance:
<html>
<head>
<style type="text/css"& ...
Posted by junkie_doodle on Wed, 30 Oct 2019 09:41:26 -0700
An image view loading long graph for Android
Some apps may make a lot of content into a high-definition picture to the mobile terminal for loading (our project is...), if the picture is small, it's OK, but if the picture is too large (we have more than 2M, MMP), it's either not displayed, or it's not always fuzzy. So what should we do? Use BitmapRegionDecoder to segment and then splice th ...
Posted by Tezread on Tue, 29 Oct 2019 14:02:51 -0700
Source code of current page activities of APP developed by autojs root free script engine
Explain
The code provided in this article is for reference only. Not recommended for production environments.
Some places may need to be modified on the latest version of Auto.js to run.
Introduction to Auto.js
Auto.js is a kind of auxiliary work that can simulate a series of interface actions throu ...
Posted by dual_alliance on Tue, 29 Oct 2019 11:30:41 -0700
Binder driven memory management
Memory mapping
Before using Binder for IPC, user space needs to initialize Binder driver. This process mainly implements the open and mmap operations of Binder driver. mmap map the memory space used by Binder transmission, the size is (1M - 8K), but only for virtual address space mapping, the actual physical memory allocation will be done durin ...
Posted by salomo on Tue, 29 Oct 2019 00:12:22 -0700