A full understanding of Android unit testing

Preface To be a great Android developer, you need a complete Knowledge System Here, let's grow up as we want. == Complete project unit test learning case It is well known that a good project needs to be built over time, and some effective testing is a useful tool to speed up the process.This blog post will take you through and step by step into ...

Posted by devxtec on Tue, 07 Jan 2020 19:21:50 -0800

Android uses Glide to load network pictures with equal scaling

When loading android pictures, due to the limitation of the mobile screen, when many large pictures are loaded, we require equal scale, for example, according to the fixed width, equal scale height, so that the size scale of the picture gets the corresponding scale, but the picture does not change shape. Obviously, it can't be implemented accor ...

Posted by scraff on Tue, 07 Jan 2020 08:10:00 -0800

android and h5 interaction

Modern mobile applications are almost both native and h5 mixed open, which not only ensures the user experience, but also enables the app to have the ability of dynamic update to a certain extent. At the same time, it is conducive to cross platform development and reduce human costs. The interaction between app and h5 can't ...

Posted by asgerhallas on Tue, 07 Jan 2020 03:10:33 -0800

Detailed explanation and examples of auxiliary operation of Rxjava2 Observable

Continue to the previous article: Detailed explanation and examples of auxiliary operation of Rxjava2 Observable (1) 8. TimeInterval Convert the Observable of the transmitted data to the Observable of the transmitted time interval. The TimeInterval operator intercepts the data items emitted by the original Observable and replaces them with obj ...

Posted by gapern on Mon, 06 Jan 2020 09:18:47 -0800

Use the remodule in Python to parameterize test cases, search, replace sub

For automated test cases, if 100 interfaces are to write 100 sheet forms in Excel, each interface has 10 fields, and 5 of them may be changing, you need to use parameterization, try using specific characters to position first, and replace placeholders when constructing parameters; 1. Replace the mobile phone number by using replace in the strin ...

Posted by itbegary on Mon, 06 Jan 2020 09:17:23 -0800

Android custom camera and preview deformation after customization

Today, I found that the preview interface will be deformed when I customize the camera on the handheld terminal First look for the problem: When I adjust the direction of the preview interface, I find that 90 ° rotation can change this problem, but the preview interface as a whole will also cross over. It will be difficul ...

Posted by mindspin311 on Mon, 06 Jan 2020 02:36:35 -0800

WebView dynamic injection JavaScript script

Demo address: https://gitee.com/chenyangqi/YouMeDai Background introduction stay Android interacts with JavaScript In this paper, we learned about the interaction between native and JS, but if we want to develop a good web page interaction with others, it is obvious that this web side does not define a jsBridge for us, which is a rogue who grab ...

Posted by fox_m on Sun, 05 Jan 2020 13:53:09 -0800

Nginx Core Configuration Details

1 Global Configuration user nginx nginx; # Users and groups that initiate the nginx worker process, defaulting to nobody worker_processes auto; # Number of nginx worker processes started, default 1 worker_cpu_affinity 0001 0010 0100 1000; #Binding Nginx_as a process to the specified CPU core, the default Nginx is not to bind to the process. Bi ...

Posted by soldbychris on Sun, 05 Jan 2020 05:47:49 -0800

Call wechat sdk interface to share page in wechat

Effect: Wechat interface address: Click to view wechat api Call code: I only wrote share to wechat, share to wechat circle of friends, and the background syntax is jsp <script src="https://res.wx.qq.com/open/js/jweixin-1.2.0.js"></script> <script> wx.config({ debug: false, ...

Posted by jake8 on Sun, 05 Jan 2020 04:08:03 -0800

Wechat third party login redirect uuri parameter error

Wechat third party login First of all, the solution: wrong redirect uuri parameter Set the callback address in the open platform, for example, the address is www.niezhiliang.com. When generating the QR code, the callback can only write the address under the domain name You must add http or https to the callback address (yo ...

Posted by cnagra on Sat, 04 Jan 2020 23:01:04 -0800