Android dumpSys command usage summary

dumpsys command is a necessary skill for Android developers. It can dump various states of system services and plays a very important role in our development and debugging 1.dumpsys service list Different Android system versions support different commands. You can view the dump service supported by the current mobile phone through the follow ...

Posted by stemp on Mon, 23 May 2022 21:45:47 +0300

Android development practice - project learning notes

Display weather information [supplement] in the light of Android development practice - project learning notes (2) , the last part is to improve the code Add new data 1. Design layout 2. Prepare layout documents 3. Import to parent file 4. Change Java code ① Find control ② Update control content Step 1: activity_weather.xml <?xml version=" ...

Posted by blackthunder on Mon, 23 May 2022 21:28:03 +0300

Application of kotlin KCP - modify SDK version number

backgroundDuring SDK development, the interface for obtaining the SDK version number is generally exposed. The obtained version number is generally of String type, such as:// sdk interface interface Sdk { fun getVersion(): String } // sdk caller sdk.getVersion()The above method can be through gradle Configure the version number in properti ...

Posted by henrygao on Mon, 23 May 2022 19:19:51 +0300

Imitating the source code of Tiktok short video system to take photos and videos based on CameraX

Background: Recently, I was working on an APP video upload project. Due to the use of my own server, there are certain memory restrictions. At present, most mobile phones have a large resolution, and the video captured is several megabytes in a few seconds. How to compress the recorded video is the same as wechat. Therefore, I consulted some ma ...

Posted by Loldongs on Mon, 23 May 2022 01:13:51 +0300

Android 7.1 prohibits third-party sharing of non source APK split screen method

Two methods The first method is to decompile apk directly and get Android manifest XML file; The second way is to go to the framework layer. There is a file dedicated to parsing apk data, where changes are made. 1. apk decompilation method This method focuses on the reverse compilation of apk. I spent most of my time looking up tutorials onli ...

Posted by kamasheto on Sun, 22 May 2022 10:02:46 +0300

The project has created hundreds of threads. How do you optimize it?

preface Have you ever encountered this situation when you open the Profiler tool of Android studio Hundreds of threads?? Why is the name 12345? Why are they all in sleep or wait but not destroyed? In fact, when the scale of a project becomes larger and larger, with the change of developers, the non-standard old code and the introduction of more ...

Posted by uberpolak on Sat, 21 May 2022 18:01:49 +0300

appium---PO model design

We should all have heard of the PO model when we do automation, so what is the PO model? What is the role of PO model in automation? PO model PO is actually: Page Object Model, also known as POM Model. PO is actually a design pattern, which has become popular in automated testing to enhance test maintenance and reduce code duplication. Page obj ...

Posted by Gazan on Fri, 20 May 2022 09:27:22 +0300

Introduction to some API s of Android ActivityManager

Many API s are encapsulated in the ActivityManager class of the Java layer in Android, which allows us to query a lot of information about the current system, including memory, process, task, service and so on. Using this information, you can make some useful judgments, such as whether the current system memory is insufficient and wheth ...

Posted by davo666 on Fri, 20 May 2022 04:11:27 +0300

The first line of code - Second Edition - after viewing

Chapter 1 Introduction to Android as is based on idea. No wonder it's so similar proguard-rules.pro is a file that specifies the confusion rules of the project code (confusion is that the project is typed into an installation package and does not want to be cracked, so as to confuse and make it difficult for the cracker to read) gradle is base ...

Posted by dpacmittal on Thu, 19 May 2022 14:19:03 +0300

Realize the weather forecast App by hand -- switch the city to manual update + automatic refresh of background service

Manual update and background service automatic refresh and switch cities Update weather manually It is realized by pull-down refresh <androidx.swiperefreshlayout.widget.SwipeRefreshLayout android:layout_width="match_parent" android:layout_height="match_parent" android:id="@+id/swipe_refresh"> <ScrollView andro ...

Posted by bradleybebad on Thu, 19 May 2022 13:49:32 +0300