Problems with Android setPolyToPoly (2)
Problems with Android setPolyToPoly (2)
Question:
The question is still the last one ( Problems with Android setPolyToPoly (1) ) Problem, which was solved with hardware acceleration in the previous article, but he may have black edges around the drawn quadrilateral on some mobile phones. It is suspected that the trans ...
Added by Dominator69 on Mon, 20 Jul 2020 18:45:18 +0300
References in Java and JNI (strong, soft, weak, virtual)
1. Strong References (Objects)
Features:
Strong references provide direct access to the target object.
Will not be recycled.
Two, soft reference (SoftReference class)
Features:
When GC reclaims based on JVM memory, JVM reclaims when it finds it is out of memory
Conditions for freeing up space: JVM found insufficient m ...
Added by trygve on Sun, 19 Jul 2020 18:32:41 +0300
Dynamically set the width and height of the imageview in HorizontalScrollView
The demand is as follows:
There are two kinds of pictures to display, one is 640*640 and the other is 1920*1080.
If it is a 1920 picture, you need to double-click to switch the display mode. By default, the middle part of 1920 is displayed by 640*640, which allows you to swipe left and right to view the entire picture ...
Added by The Bat on Fri, 17 Jul 2020 18:35:19 +0300
Dynamically set the width and height of the imageview in HorizontalScrollView
The demand is as follows:
There are two kinds of pictures to display, one is 640*640 and the other is 1920*1080.
If it is a 1920 picture, you need to double-click to switch the display mode. By default, the middle part of 1920 is displayed by 640*640, which allows you to swipe left and right to view the entire picture ...
Added by esukf on Fri, 17 Jul 2020 18:36:30 +0300
android turns on Https two-way authentication
Last article was written How to turn on https one-way authentication on Android The method of one-way authentication is that the client authenticates the identity of the server.Let's discuss how the server side authenticates the client.
Many people on the Internet say that Android only knows about certificates in BKS f ...
Added by hessian on Wed, 15 Jul 2020 18:28:14 +0300
android exceptions collect error information and save it to the crash folder
Save the log file to the sdcard, directory: crash folder under the sdcard root directory
First, set permissions, no permissions to the final effect
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE"/>
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>Two classes must be crea ...
Added by r_a_s_robin on Wed, 15 Jul 2020 18:08:46 +0300
Location of Android Development
_The positioning written here is native, that is, the positioning function of the system itself.
_First, introduce how you can always get the location information, then introduce a location update separately.On systems 6.0 and above, run-time privileges are required to use positioning.
Always get location information
...
Added by sentback on Sun, 12 Jul 2020 18:56:29 +0300
Android implements request HTTP authentication
These days, the development of external SDK, can achieve landing, payment.Similar to developing a set of QQ, WeChat third party login.The authorization protocol used is OAuth 2.0.Among them, Http Authentication is used, and you can consult the online materials. There are all kinds of answers, some don't know if they have been verified, and some ...
Added by ekalath on Fri, 10 Jul 2020 17:54:48 +0300
iOS Development Notes | custom label with inner margin
iu
preface
UIScrollView has contentInset, but UILabel doesn't; Android does, iOS doesn't.
Recently, I need to use a label with inner margin, so I encapsulated it with the code of my predecessors on the Internet. Originally, I wanted to create a category, but it failed.
The code is as follows, inherited from UILabel:
. h file:
#impo ...
Added by Goofan on Sat, 04 Jul 2020 19:08:54 +0300
21. Use of AlertDialog Common Dialog
Target Effect
In this interface, there is a text input box and a button, enter content in the text input box, then click the button to bring up a customized normal dialog box, in which the prompt information is the information entered in the text box.
The target effect map is as follows:
Page Layout
<LinearLa ...
Added by daniel_lee_hill on Sat, 04 Jul 2020 18:22:34 +0300