Messenger source code analysis

Brief introduction: Messenger is a lightweight IPC solution. Its underlying implementation is AIDL, which means that it is a simple package of AIDL for Android to open The sender can only process one request at a time for interprocess communication, so thread synchronization is not considered in the server, because there is no ...

Posted on Thu, 02 Apr 2020 02:10:55 -0700 by renekosterman

Android drop-down list display

http://blog.csdn.net/a_fyf/article/details/51674790 Don't bother to move, just move the connection. Run to display the drop-down list, click to expand, click the sub item to display the sub item on the horizontal line, and display the selected city in the TextView. 1. Add the Spinner control to the activity main.xml p ...

Posted on Wed, 01 Apr 2020 22:45:32 -0700 by Jumba

360 plugins learning notes data persistence

Data persistence includes file storage, SharedPreferences, database storage, ContentProvider and network storage. 1. File storage (excluding storage under cache directory) and network storage are the same as usual 2.SharedPreferences Store in "host" val sharedPreferences = applicationContext.getSharedPrefere ...

Posted on Wed, 01 Apr 2020 21:54:00 -0700 by Dolemite50

Third party apk icons are customized in android Launcher3 to achieve similar theme functions

Recently, I met the need to use the specified icon for the specified app in the Launcher to implement theme like functions. To implement such a function, it is necessary to find out how the Launcher loads the app icon.First, navigate to the cacheLocked () method of the class com.android.launcher3.IconCache.java private ...

Posted on Wed, 01 Apr 2020 21:49:49 -0700 by bluwe

Spring Boot 2.0 animated Banner

Spring Boot is a new framework provided by the Pivotal team, which is designed to simplify the initial construction and development process of new spring applications. v2.0.0.RELEASE It was officially released yesterday. Preface This article introduces an interesting feature animation Banner of Spring Boot 2.0; (of course, it is useless in ac ...

Posted on Wed, 01 Apr 2020 21:40:11 -0700 by mpiaser

The clone principle of Java

Today's record is the cloning mechanism of java, as well as deep and shallow cloning public static class Boss{ private int number; public int getNumber() { return number; } public void setNumber(int number) { this.number = number; } } public static clas ...

Posted on Wed, 01 Apr 2020 20:34:22 -0700 by snoopy13

The use of JDBC third-party jar package

commons-dbutils-1.6.jar: You can operate JDBC to connect to the database, execute SQL statements, and process the returned result set Three core classes: DbUtils: close resource method (quiet shutdown, do not handle exceptions) Query runner: execute SQL statement and return the result set you want ResuktSetHa ...

Posted on Wed, 01 Apr 2020 19:27:28 -0700 by chele

redis implementation of distributed lock

I found a piece about redis distributed lock implementation Someone replied -- I glanced at the article at will at that time. In order to prevent deadlock, the idea is to use setnx to set value to local time, and then read value for time comparison when getting lock failure.. Then I replied.. Multiple application servers have time synchronizati ...

Posted on Wed, 01 Apr 2020 17:35:36 -0700 by miked2

Using bat to call the executable jar file

1, Project requirements 1.maven project 2. There is a properties configuration file. 3. There are internal jar packages 2, The simple thing is to implement an example 1. Placement of project documents   Note: if it is a web project, we will use the jar file as the path in our project WEB-INF/lib.   2.main method code package com.my.tools.run ...

Posted on Wed, 01 Apr 2020 16:44:01 -0700 by senatedc

360 plug in solution Replugin learning notes data storage

Data storage includes file storage, SharedPreferences, database storage, ContentProvider and network storage. 1. File storage (excluding storage under cache directory) and network storage are the same as usual 2.SharedPreferences Store in "host" val sharedPreferences = applicationContext.getSharedPreferences ...

Posted on Wed, 01 Apr 2020 16:05:02 -0700 by xerodefect