Android: file storage of learning notes of data storage scheme (openFileOutput, openFileInput)

file store 1, Functions to be implemented Save the data in the input box to the file with the specified file name to realize data persistence; If the data has been saved, the data saved in the file will be read out and displayed in the input box when the activity starts next time. 2, Basic knowledge 1. Use a callback function onDestroy( ...

Added by misterguru on Wed, 10 Nov 2021 05:55:15 +0200

Encapsulation attempt of network request framework of Retrofit + Kotlin + MVVM

1. ForewordWhen learning Guo Lin's first line of code, I wrote a Caiyun weather App step by step. I was very impressed by the encapsulation of the network request framework inside. I like the combination of Retrofit + Kotlin + collaboration. Later, I also referred to this part of the code in my own project. However, with the in-depth writing of ...

Added by Judas on Sun, 07 Nov 2021 06:14:26 +0200

Stay up late to learn Java language - Interpretation of internal class types

👉 "About the author" As we all know, life is a long process, constantly overcoming difficulties and constantly reflecting on the process of progress. In this process, there will be a lot of questions and thoughts about life, so I decided to share all my thoughts, experiences and stories in order to find resonance!!! Focus on Andr ...

Added by ev5unleash on Sat, 06 Nov 2021 21:55:42 +0200

Stay up late to fight Android Kotlin interoperability

👉 "About the author" As we all know, life is a long process, constantly overcoming difficulties and constantly reflecting on the process of progress. In this process, there will be a lot of questions and thoughts about life, so I decided to share all my thoughts, experiences and stories in order to find resonance!!! Focus on Andr ...

Added by mick_otoole on Sat, 06 Nov 2021 05:33:32 +0200

Interviewer: why do you customize the wrap of view_ Will content fail?

preface Interviewer: why wrap in custom View_ Will content fail? To answer this question, we need to understand the past and present lives drawn by view When is the view drawn? In which life cycle of the Activity is the view drawn? After onResume Get to know viewrootimpl We know that the onResume method is actually just a callback method ...

Added by ecco on Tue, 02 Nov 2021 11:36:55 +0200

Imitation cool dog music home page

1. Preface stay Android Plug-in Development Guide - 2.15 implementation of a music player APP It introduces the basic knowledge of music playing and finally mentions that I want to imitate a music player, so I will continue to imitate it in the next days. In the previous article Imitation cool dog music startup page - Activity transition e ...

Added by Rodders on Sun, 31 Oct 2021 17:41:29 +0200

kotlin synergy async await's abnormal stepping pit and correct posture for exception handling

I believe you are very familiar with using Kotlin to do some asynchronous operations. In particular, combined with some components of Jetpack, it is very convenient for us to write asynchronous tasks in Android development. However, when using a collaborative process, I feel that exception handling is a relatively time-consuming area to unders ...

Added by henrygao on Sat, 30 Oct 2021 10:13:37 +0300

Android introductory tutorial | linear layout of UI layout

home pagespecial columnandroidArticle details0Android introductory tutorial | linear layout of UI layoutAndroid_ An Zi Published 3 minutes agoHow many layouts does Android have?LinearLayoutRelativeLayoutFrameLayoutTableLayoutGridLayoutAbsolute layoutLinearLayoutLinearLayout, also known as linear layout, is a very common layout.Multiple views ca ...

Added by Paingiver on Fri, 29 Oct 2021 05:53:58 +0300

Thread pool resolution

Thread pool Reference articles   Implementation principle of Java thread pool - meituan technical team,Implementation principle and source code analysis of Java thread pool Write in front 1. What is a thread pool Thread Pool is a tool to manage threads based on the idea of pooling, which often appears in multi-threaded servers. Too ma ...

Added by wildmalc on Fri, 29 Oct 2021 03:29:40 +0300

Android foundation summarizes XML data and JSON data

One XML data 1.1 introduction to XML data XML, or Extensible Markup Language, is very suitable for world wide web transmission. It provides a unified method to describe and exchange structured data independent of applications or suppliers. It is widely used on the Internet. To transfer data rather than display data, you need to customize the ...

Added by cwarn23 on Tue, 26 Oct 2021 06:06:38 +0300