About the configuration of greenDao

Green Dao is an open-source database solution. As for its advantages and disadvantages, the key is to be able to use it. Here is a simple record of its configuration method The github address of greenDao https://github.com/greenrobot/greenDAO It's also mapped like other articles. The texture is clear. Configure the following code in Gra ...

Posted on Thu, 30 Apr 2020 07:19:22 -0700 by David Bethel

MVP architecture encapsulation

Android MVP framework design MVP structure: M level In data layer, data can be obtained from remote server or local database. In general, data in android applications are mostly Remote server, so the work of layer M can be regarded as the part of network request temporarily. The concrete embodiment of layer m should be the relevant cod ...

Posted on Thu, 30 Apr 2020 00:24:24 -0700 by bobc

retrofit2 of Android jar / library source code analysis

catalog: Source code analysis of andorid jar / Library  Retrofit2: Function: The okhttp library is encapsulated to communicate with the web, and the interface address is called by dynamic proxy, and the result is assigned by callback. Chestnut: Define an interface for access usage. public interface IServiceApi { @FormUrlEncoded @POST( ...

Posted on Mon, 27 Apr 2020 07:37:10 -0700 by Miko

Android project practice series - registration and login module based on erudite Valley

As this module has a lot of content and a long space, please read it patiently. Registration and login module is divided into three parts [x] Welcome screen [x] Registration interface [x] Login interface 1, Welcome screen 1. Create a project named BoXueGu, and the package name is com.boxuegu. 2. Import the interface picture, Lun bg.p ...

Posted on Sun, 26 Apr 2020 17:58:34 -0700 by jdorma0

Android development template code (1) -- simply open the gallery and select photos

First, post the sample code //Check permissions public void checkPermission() { if (ContextCompat.checkSelfPermission(this, Manifest.permission.WRITE_EXTERNAL_STORAGE) != PackageManager.PERMISSION_GRANTED) { ActivityCompat.requestPermissions(this, new String[]{Manifest.permission.WRITE_EXTERNAL_STORAGE}, 1); ...

Posted on Sun, 26 Apr 2020 08:14:36 -0700 by river001

okio of Android jar / library source code analysis

catalog: Source code analysis of andorid jar / Library  Okio: Function: To put it bluntly, it is an IO Library Based on java Native io. To operate, internal optimization, concise, efficient. So it is liked and used by some people Chestnut: Read and write files. private void ReadFile() { try { InputStream in = new FileI ...

Posted on Sat, 25 Apr 2020 18:42:01 -0700 by leoric1928

Best practice of interactive class library of remote control on lightweight TV terminal

1, Introduction Hello everyone, what I'm sharing today is the implementation of an interactive class library of TV remote control. From the end of April to the middle of July last year, tal developed our first intelligent hardware, the future treasure box. The future treasure box is similar to millet box, with cartoon shape, which can be easily ...

Posted on Fri, 24 Apr 2020 03:07:32 -0700 by nailzfan

Android Crash governance

Crash knows: Crash refers to an unexpected exit caused by an unhandled exception or signal, which causes the Android application to crash. When the app crashes, Android will kill the app's progress and display a dialog box to inform the user that his app has stopped due to an unknown accident. Of course, most of the customized systems of domes ...

Posted on Wed, 22 Apr 2020 22:13:59 -0700 by bruceleejr

Kotlin Android (one project from scratch)

LoveDairy In learning the project of kotlin development tutorial (takeout of black horse) with black horse programmer, I suddenly thought that I would copy and run the code with him, and at the same time, I would create a program of my own from scratch through the method I learned. At the same time, I would record my daily learning on this p ...

Posted on Wed, 22 Apr 2020 22:00:09 -0700 by ScubaDvr2

Android advanced: Binder, IBinder, Parcel, AI of Android cross process communication mechanism

###ForewordBinder mechanism is a cross process communication mechanism provided by Android system. This article will start with the introduction of Linux related basic concept knowledge, lead out binder mechanism from the basic concept knowledge, summarize the advantages and disadvantages of binder mechanism and Linux system cross process mech ...

Posted on Wed, 22 Apr 2020 11:18:27 -0700 by boneXXX