Recent Posts
-
Analysis of Android Development Optimization: detailed explanation of bitmap memory optimization
1) The memory of bitmap should be recycled in time Bitmap class has a method recycle (), which means recycle according…… -
Android programming method for finding phone number from string
This example describes the method of Android programming to find the phone number from the string. Share with you for …… -
Android path draws Bezier curve to realize QQ drag bubble
In the past two days, I learned to draw Bezier curve using path, and then I made a small bubble similar to QQ unread m…… -
Android general XML parsing method
1. Why do you need to write a general XML parsing method. When different XML nodes need to be parsed. You may match di…… -
Android realizes automatic rotation of pictures and supports unlimited sliding of gestures left and right
No more nonsense. Let's start with the code for infinite sliding left and right. 1. Infinite sliding left and right 2.…… -
Dynamic addition and deletion of data in Android listview instance code
Main.xml file: MainActivity .java -
Android service restart method
This article describes the method of service restart for Android. Share with you for your reference. The details are a…… -
Image caching, gesture and oom analysis of Android Development Notes
The three themes of picture caching, gestures and oom are put together because these three issues are often linked in …… -
Example analysis of Android getting call time
We know that the call duration in the Android system should be managed by callog, so we suggest to check the contactpr…… -
Java – convert simpledateformat to datetimeformatter
Therefore, when trying to replace some legacy code with simpledateformat and date, use Java time. Datetimeformatter an…… -
Java – Apache POI docx – how to set the page size?
Does anyone know how to change the page size (from letter to A4) for X wpfdocument (docx)? I can't find any printsetup…… -
JPA – correct join in jpql
I have the following JPA entities: @Entity class UserClient{ @Id @GeneratedValue(strategy = GenerationType.AUT…… -
Java – Protocol buffer: enumeration problem
I have the following Proto file: enum Enum1{ X=0; Y=1; } message SomeClass{ required Enum1 enum1=1; …… -
RX Java – groupby operator, items from different groups are interleaved
The following codes: Observable .just(0,1,2,3,4,5,6,7,8,9) .doOnNext(item -> System.out.pri…… -
Java – focus on snippets
I'm looking at an open source project on GitHub. I found the following code line in Java, static byte[] byteArray = ne…… -
OAuth – what are the main differences between socialauth, scribe Java and spring social?
I'm new to OAuth, but I want to find a good way to start and use a widely supported library Here are the pros and cons…… -
Can Java – Apache storm sprouts communicate with each other?
I have a directory and another process imports files Our current storm implementation reads this directory, selects th…… -
How to run my Haskell function in Java
Suppose I'm in math Haskell function added to HS How to run the add function through a java program and store the outp…… -
Is it useful to use multithreading to process files on your hard drive?
In terms of performance and execution speed, is it useful to use multithreading to process files on hard drives? (move…… -
Java – why is my quicksort performance worse than my mergeport?
Did I miss anything? The source is short and can be run and commented at any time for better understanding I need to k…… -
Java – what is the purpose of using local variables to hold global variables?
I looked at string Hashcode () method source code This is the implementation of 6-b14 and has changed public int hashC…… -
Java – how do I set a URL that contains the thymeleaf & symbol?
I have something similar: Locale defaultLocale = Locale.getDefault(); final Context ctx = new Context(defaultLocale); …… -
Debugging – what are the negative consequences of shutting down the debug heap? (_NO_DEBUG_HEAP == 1)
The initial stage of my program loads a large amount of data into the STL container I found it would take a few minute…… -
Java – use JAXB to ungroup XML into existing objects
I have an XSD generated from a set of existing Java classes. At present, it successfully ungroups XML messages into ob…… -
Should the Java – domain model mapper be static?
In many projects I participate in, we often have many classes to map content from one domain model to another For exam…… -
Java – sqlitedatabase ‘does not implement interface’
This error occurs when sqlitedatabase is used as closeable I have a sample project to recreate it: https://github.com/…… -
java. security. AccessControlException:access denied(“java.lang.RuntimePermission”“accessClassInPackage.sun.reflect.annotation”)Spring
I use Google application engine and spring security to create a simple spring MVC application When I run my applicatio…… -
Java – Apache spark lambda expression – serialization problem
I tried to use a lambda expression in the spark task and threw a "Java. Lang. illegalargumentexception: invalid lambda…… -
Java – JNA memory leak
In view of this, C code: void LoadData(char** myVar) { std:: string str("[Really Long String Here]"); unsigned…… -
If may is complete, convert may to single from another source
I want to build a repository class that returns single < something > This class should first check the cache, wh…… -
Java – strange behavior when downloading HTML using httpurlconnection
In my android Wikipedia reader application, I'm using httpurlconnection to download the HTML of the article. Some user…… -
Add a custom jmod to the module path using java 9
I used this jmod tool to create a simple jmod file $JAVA_HOME/bin/jmod create --class-path classes test/samples.jmod N……