Fragment upload and breakpoint continue

We may encounter the upload of large files in our work. If we transfer them once, we may encounter various problems such as network and timeout. Here, we will introduce the scheme in two ways: fragment upload and breakpoint continue transfer. 1, Slice upload Principle of fragment upload: the front end f ...

Posted by joey3002 on Sat, 18 Jan 2020 06:46:06 -0800

Source analysis of Android mainstream triplet libraries (3. Deep understanding of Glide source)

Preface To be a great Android developer, you need a complete Knowledge System Here, let's grow up as we want. tips: articles are too long to favor your collection first, then read them slowly ~ In the first two chapters, we have analyzed the core source code of OKHttp, the underlying framework of A ...

Posted by GetReady on Thu, 16 Jan 2020 18:29:25 -0800

How does Elasticsearch handle data that has an association?

Three main paradigms of relational databases What is a paradigm? A paradigm is the rule of data modeling. First paradigm: Ensure that each column maintains atomicity. All fields in a database table are indivisible atomic values. Second paradigm: Ensure that each column in the table is related to the ...

Posted by brmcdani on Tue, 14 Jan 2020 16:43:11 -0800

Next generation Fragment Management Library: Navigation

Preface In the past, we used Fragment transactions to add, delete, replace and so on. For rapid development, we will also encapsulate a Fragment controller ourselves. Last year, Google launched its Navigation library with the goal of managing fragments more elegantly. text Let's first review Fragment's transactions: fragmentManager.beginTransa ...

Posted by madrazel on Sat, 11 Jan 2020 01:07:56 -0800

Using the bottom navigation controller of Android BottomNavigationBar

Google added Bottom Navigation navigation control to its Material design. Android has never had an official navigation controller, and its own implementation is really multifarious. With this provision, it is similar to the bottom Toolbar of apple, and our APP will have the same style in the future. Let's see an effect first: ...

Posted by daveyc on Thu, 09 Jan 2020 06:58:23 -0800

linux File System Management Trilogy Two: Creating a File System

The meaning of creating a file system is to format a hard disk partition and create different file systems in different formats. Format: Low-level formatting: Performs before partitioning, mainly partitioning tracks of hard disks, etc. Advanced formatting: partitioned and executed to create a file system What you do when you create a file s ...

Posted by alcibar on Mon, 06 Jan 2020 09:26:44 -0800

4.1 communication in activity

Scenario 1: ActivityA starts ActivityB 1, Method of transferring data from Activity A to activity B Through Intent's Bundle Intent intent = new Intent(ActivityA.this,ActivityB.class); Persion p = new Persion("tang","man"); Bundle b = new Bundle(); b.putSerializable("persion",p); intent.putExtras(b); startActivity(intent); ...

Posted by Chafikb on Sun, 05 Jan 2020 06:16:03 -0800

Learning ios Metal(2) - drawing points with adjustable size

Introduction to basic knowledge of metal, the first Metal By Example series: http://metalbyexample.com/ . Related articles of the blogger mainly give typical problems encountered in engineering practice and solutions.         Source code of this section: https://github.com/sjy234sjy234/Learn-Metal/tree/master/MetalPoint . M ...

Posted by Awestruck on Fri, 03 Jan 2020 09:41:59 -0800

Display of Huanxin's Avatar and nickname

Display of Huanxin's Avatar and nickname - based on Easeui I am a college student. I used Huanxin to participate in the competition. I summarize and record the display method of Huanxin's head image and nickname (suffering). 1. First of all, you need to save your nickname and avatar locally when you log in successfully. When ...

Posted by jacobelias on Thu, 02 Jan 2020 23:29:42 -0800

Android video seamless switching, using MediaPlayer and TextureView

Requirement description For example, when advertising is played, each video lasts for 15 seconds. When switching between videos, machines with poor performance may have a black screen for a period of time, and the experience is not good. Next, we need to solve the problem of black screen. Solution Two surfaceView modes are ...

Posted by josephicon on Thu, 02 Jan 2020 08:26:59 -0800