Android Thermal Repair Technology: Analysis of QQ Space Patch Scheme (2)

In the next few blogs, I'll use a real demo to show you how to implement hot fixes. Specific contents include: How to pack patch packs How to load patch packs through ClassLoader 1. Create Demo Demo is very simple. Create a demo with only one Activity: package com.biyan.demo public class MainActivity extends Activity { private Calc ...

Posted by GetReady on Sat, 06 Jul 2019 19:33:44 -0700

Summary of Android adb command usage

First, write in front 1. I belong to a rookie now. Every time I encounter a problem or a bug, I open android studio and run the code. Then I start to find the last breakpoint of the activity or fragment or log to debug, which makes it slow and time-consuming to locate the problem. 2. Look at those bulls, hit the terminal directly, clic ...

Posted by strangebeer on Thu, 04 Jul 2019 12:48:12 -0700

Deep Exploration of Glide Caching Mechanism

From Guo Shen's Blog http://blog.csdn.net/guolin_blog/article/details/54895665 Introduction to Glide Cache Glide's cache design can be said to be very advanced, and the scenarios considered are also comprehensive. In terms of caching, Glide divides it into two modules: memory caching and hard disk caching. The functions of these two caching mod ...

Posted by Wien on Thu, 06 Jun 2019 16:04:48 -0700

Lex and Yacc Brief Tutorials

This article modifies an error and adds a more detailed explanation to the article translated by Fu Huizhong (original author: Thomas Niemann). introduction Writing compilers was a very time-consuming task until 1975.This year Lesk[1975] and Johson [1975] published papers on lex and yacc.These tools greatly simplify writing compilers.Details ...

Posted by remnant on Fri, 17 May 2019 02:50:24 -0700

Understanding Java HashMap Source

HashMap Source Analysis Previous articles analyzed the source code of the ArrayList, LinkedList, Vector, Stack List collections. In addition to the List collections, the Java container contains Set and Map as two important collection types.HashMap is the most representative and the collection of Maps we use most often.This article tries to ana ...

Posted by poleposters on Fri, 10 May 2019 03:22:39 -0700

Basic knowledge in [Python-2]

I choose the latest version of Python interpreter Start with the simplest Hello world >>> print("Hello world!") Hello world! >>> Like the simplest calculator Needless to say, you can understand it at a glance. >>> 2+6 8 >>> 2/6 0.3333333333333333 >>> 2//6 0 >>> 5*9 45 ...

Posted by renob on Fri, 19 Apr 2019 17:03:33 -0700

Python data types, operators, statements, loops

1. Data type Numbers(int,long,float,complex) String Boolean(True,False) List Tuple Dict Set 2. Data Type Conversion int(float, string, bytes) float(int, string, bytes) complex(int, float, str) str(int, float, complex, bytes, list, tuple, dict, set, other types) bytes(string) list(str, bytes, tuple, dict, set) tuple(str, bytes, list, dict, se ...

Posted by gchouchou on Tue, 16 Apr 2019 14:18:32 -0700

Question Types of Data Types

1. Let the user enter any string, get the string and calculate how many digits there are. total = 0 text = input("Please enter the content") a = 0 while a <len(text): if text[a].isdigit(): total += 1 a += 1 print(total) 2. Implementing an integer addition calculator (adding two numbers): (strings a ...

Posted by Al42 on Mon, 08 Apr 2019 03:00:30 -0700

Expression evaluation

1: Preface The so-called expression evaluation is to write a micro-calculator. For example, input: (1+9)* 2/2-1, output 9. For such problems, we usually use stack to simulate mathematical operations. In order to simplify the problem, before proceeding with the following analysis, let's make a convention here: this paper only discusses the four ...

Posted by four4swords on Sat, 06 Apr 2019 11:57:31 -0700

Development Model-MVC Framework Development

brief introduction MVC is a design pattern, that is, a method and idea to solve problems, which was put forward in the 1980s, and has a long history. The significance of MVC is to guide developers to decouple data from presentation and improve the reusability of code, especially part of model code. MVC mode means that software can be divided ...

Posted by weedo on Mon, 25 Mar 2019 15:33:29 -0700