20180828 com.tencent.mtt standby power consumption

1. BugRepot phenomenon 17: 01:21-11:01:49 18h 0m 28s 601ms, power consumption (94% - 81% = 13%) 2. Analysis of power consumption 2.1 com.tencent.mtt has been in the foreground process in standby test Top app Aug 21 2018 22:16:11 - 22:17:12 +5h25m58s859ms to +5h26m59s438ms active duration: 1m 0s 579ms 1 occurences ...

Posted by pmiller624 on Thu, 02 Jan 2020 07:41:14 -0800

Java8 - sorting with Comparator.comparing

Java8 - using Comparator.comparing for comparison sorting Sorting with external Comparator comparator When we need to sort the elements of the collection, we can use java.util.Comparator to create a comparator for sorting. The comparator interface is also a functional interface. We can use lambda expressions. Here is an example, package com ...

Posted by Pyro on Wed, 01 Jan 2020 13:55:51 -0800

glide installation dependency error Cannot detect VCS

Today, when using glide to install golang project dependencies, an error is reported as follows: (the second time, make a record today) [ERROR] Failed to set version on golang.org/x/sys/unix to : Cannot detect VCS [ERROR] Failed to set version on golang.org/x/text/transform to : Cannot detect VCS [ERROR] Failed to set version on golang.org/x ...

Posted by chatmaster on Wed, 01 Jan 2020 00:25:28 -0800

Development of mobile App based on html5 plus + Mui (1)

Use Html5 plus + Mui for mobile App development. It's been a while. I'm free these days to make an information App to share with you. Today's main sharing homepage is realized. First, let's see the following effects: This interface is mainly divided into: title, content classification list, search and setting buttons. Title <header c ...

Posted by cottonbuds2005 on Tue, 31 Dec 2019 22:29:30 -0800

Problems encountered by Cordova when using QR scanner plug-in

In fact, the qrscanner plug-in is not a big problem. The only problem is that on some mobile phones, the camera preview cannot be started when it is first opened. To be exact, the camera preview has been opened, but it is blocked by a layer of white. After a long time of research, no reason has been found, but the solution has ...

Posted by jcanker on Tue, 31 Dec 2019 17:42:20 -0800

Wechat applet to realize multi-level expansion function

1, Wechat applet page display is data-driven It's relatively troublesome to realize multi-level display. Take three levels as an example to display multi-level list Data processing in the background is also required to be multi-level wxml Code: <view class='myTeam'> <view class='title'>My team</view> <view class ...

Posted by nielskg on Tue, 31 Dec 2019 15:15:10 -0800

Record mobile payment (WeChat payment, Alipay payment)

1. Wechat payment Play Naughty Download or add dependencies first, Wechat lib or dependency , and then add it in Android manifest. Remember to build wxapi in the root directory. The name can't be changed. Remember to have the payment authority after applying for wechat payment account. Besides, wechat signature may need to ...

Posted by scott212 on Tue, 31 Dec 2019 13:57:21 -0800

Operation details and examples of Rxjava2 connectable Observable

Briefly: Requirements understanding: Ordinary Observable in Rxjava will transmit data when the observer subscribes, but sometimes we want to control the data transmission by ourselves. For example, we need to use the connectable Observable in Rxjava to fulfill this requirement after having a specified observer or all observers subscribing. This ...

Posted by hmb3801 on Tue, 31 Dec 2019 13:41:34 -0800

Android development tips: set the color transparency of status bar

  Before Android 4.4, our application couldn't change the color of the status bar of the mobile phone, as shown in the figure above. In order to provide better interface interaction, google started to provide a method to set the immersive status bar in Android 4.4.2. The actual effect is the transparent status bar, and then ...

Posted by qbox on Tue, 31 Dec 2019 06:47:58 -0800

sql: merge a field of multiple records into a record group ﹐ concat function

I. demand. Existing user table, user role table, role table. One of the users corresponds to multiple roles. When querying user details, you need to directly query the role names of users, separated by commas. 2, sql table creation script 2.1 user table CREATE TABLE `user` ( `uid` bigint(20) NOT NULL AUTO_INCREMENT COMMEN ...

Posted by airo on Tue, 31 Dec 2019 05:48:18 -0800