Introduction to Android Development_ DAY7

07 Service I Related concepts of thread Program: a set of instructions (a set of static code) written in a language to complete a specific taskProcess: the running program is an independent unit of system scheduling and resource allocation. The operating system will allocate a section of memory space for each process! The dynamic execut ...

Posted by bgoulette612 on Sun, 06 Mar 2022 10:58:41 +0100

What should Jetpack Lifecycle think? Return liver?

preface The previous articles are to lay the foundation for Jetpack. This article will officially enter the analysis of various components of Jetpack from Lifecycle. Through this article, you will learn: 1. Why Lifecycle? 2. How is Lifecycle used? 3. How does Lifecycle perceive the Lifecycle 4. Lifecycle memory leak? 5. Summary 1. Why L ...

Posted by Allan- on Sun, 06 Mar 2022 05:34:25 +0100

Notification developed by Android (realizing message pop-up, prompt sound and click event)

Notification manager The NotificationManager class is a notification manager. This object is a service maintained by the system and is obtained in the form of singleton mode, so it is generally not instantiated directly. In Activity, you can use Activity Getsystemservice (string) method to get the notification manager object, Activity Gets ...

Posted by wopopd83 on Sat, 05 Mar 2022 23:41:38 +0100

linux network communication

linux network programming 1, socket 1. Detailed explanation of common functions 1.establish socket: int socket(int domain, int type, int protocol); domain: AF_INET This is most used to generate socket Protocol, use TCP or UDP To transmit, use IPv4 Address of AF_INET6 Similar to the above, but for use IPv6 Address of ...

Posted by cosminb on Sat, 05 Mar 2022 15:32:41 +0100

EventBus concise tutorial

brief introduction EventBus is an event publish / subscribe framework for Android and Java programming. When using EventBus for event delivery, the publication and subscription of events are fully decomposed and coupled, which frees programmers from the traditional and original event delivery methods (such as Handler, BroadcastReceiver, Interfa ...

Posted by ADLE on Sat, 05 Mar 2022 13:47:00 +0100

Find Liangji App buried point Case automatic regression

Find a beautiful machine and bury it. Case Automatic Regression 1, Background and purpose The total number of buried points on the line is more than 1000, and the main process case is more than 300. In the process of functional iteration, there are often statements about the regression of existing buried points. In the past, it used to consum ...

Posted by Skara on Sat, 05 Mar 2022 12:37:35 +0100

CH6 content provider

target Master the creation method of content providers and be able to create content providers independentlyMaster the steps of using content providers to access other applications, and be able to read the mobile phone address bookMaster the use of content observers, and be able to use content observers to observe the data changes of other ...

Posted by pspeakman on Sat, 05 Mar 2022 06:06:20 +0100

An article takes you to the mystery of gradle from the perspective of source code

Hello, dear friends, Yien is seeing you again. Unlike the general introduction articles on the Internet, which only stay at the level of "how to use", this article understands gradle from the perspective of source code. Of course, if you haven't read my previous article "If you don't understand gradle after reading this ar ...

Posted by bhola on Sat, 05 Mar 2022 03:12:17 +0100

Understand the number of relativelayout#on measure calls to child from the perspective of source code

Those who are familiar with the drawing process know that ViewGroup can decide the drawing time and call times of child. Today we will start from RelativeLayout Start learning and see how many times it calls onMeasure for the child View. For simplicity, we choose the time to enter the Activity in the previous blog When entering Activity, why ...

Posted by zako234 on Fri, 04 Mar 2022 23:12:36 +0100

Transmission parameters in AIDL include in, out and inout

preface Today, we developed AIDL, created a new interface and wrote a function. As a result, we reported an error when build ing Process 'command 'xxx/aidl'' finished with non-zero exit value 1 After a long time of trying, I finally got it. During this period, I reviewed a lot of knowledge and summarized it together. Data types support ...

Posted by monkey_05_06 on Fri, 04 Mar 2022 21:17:05 +0100