adb screen capture and recording commands

Preface When we usually write blogs, we often need to take screenshots, record videos, or make gif movies.Today, we rely on it to discuss what methods are available. First method: The screen of your mobile phone is projected to your computer, and you can take screenshots, record videos, or make gif movies using the software on your comput ...

Posted by billman on Thu, 11 Jul 2019 10:05:45 -0700

How to Create an Immortal Service--Two-Process Guardian

Main points How to start two processes in an app manifest.xml configuration: <!--Implemented to run in another process Service,android:process=".remoteservice"--> <!--Must be a two-way process, or a bunch Service It's no use killing a process and killing it all.--> <service android:name=".Remo ...

Posted by activomate on Wed, 10 Jul 2019 18:01:55 -0700

libflexible source code reading

Preface Recently, we need a mobile product. We need to catch up with the time limit. We are referring to the flexbox layout and hand-picked of Skycat.After rem layout, libflexe was chosen. After finishing the project, I decided to take a look at libflexe with a little spare time.How to dynamically set the font of the root element to change the ...

Posted by iShaun on Wed, 10 Jul 2019 17:37:38 -0700

JS Implementation of Lightweight Calculator

After trying to build a web-based calculator, I refer to many codes of the blog god, summarize and modify them, and sort out the following. Attachment: Demo     Source code   I. HTML+CSS The concrete structure style is as follows, referring to the interface of mobile calculator basically. Button function can view demo, can be achieved.    Thi ...

Posted by ukscotth on Wed, 10 Jul 2019 12:40:14 -0700

Three-terminal Router for iOS Hot Repair Architecture

MVP is a very good design mode, which can decouple code, layered business and componentized products, but can it be further improved? Coupling in the project is very few now, but the switch before the controller still exists. What way can zero-coupling of the controller be achieved? That's to say, this system needs to be sacrificed. The core Ro ...

Posted by NightCoder on Tue, 09 Jul 2019 11:53:56 -0700

android collects application opening times and cpu Information

Recently, an application for collecting device information has been made. It's interesting to get the number of application openings and cpu information, so let's go under mark. 1. Get the number of application openings The class that gets the application information in android devices is the UsageStats.java class (see Official Website) http ...

Posted by Ell20 on Mon, 08 Jul 2019 16:23:51 -0700

Two Realizations of Mobile Phone Photo Preview

Mobile phones take pictures and set pictures to specific sizes. We found some information on the Internet. We can use HTML 5 as a native way or plug-in. Now we can implement them in two ways. Native mode is mainly used for FileReader The instance of FileReader has four methods, three of which are used to read files, and the other is interrupt ...

Posted by gwydionwaters on Sun, 07 Jul 2019 16:32:17 -0700

iOS develops 3ES encryption and decryption corresponding to OC and java

The most tangled issue in mobile development is the inconsistency of encryption and decryption between Java, Android and the iPhone platforms. Because the backend of mobile phone is usually a Web Service developed with JAVA, Android and the iPhone client call the same Web Service interface. For data security, data should be encrypted. The head ...

Posted by daedlus on Sun, 07 Jul 2019 11:34:34 -0700

A scheme for video storage path in Android

Copyright Statement: This is an original article created by a blogger and may not be reproduced without the permission of the blogger.When downloading videos, we often face the choice of storage path. Choosing a good storage path can optimize the memory in the Android system.The main app download path analysis and common path selection schemes ...

Posted by saint4 on Sun, 07 Jul 2019 10:21:43 -0700

Vue Family Barrel Realizes Restoring wap Edition of Douban Film

Douban-movie Write the wap version of Douban Film with the vue family barrel. Recently, we tried to use Vue in our company's projects, but we have limited initial learning level. The development process is particularly painful because we did not use Vue on vue. So play this project, is more familiar with the relevant technology. The original pl ...

Posted by LazyJones on Sat, 06 Jul 2019 12:30:13 -0700