Introduction and Application of Runtime VI - Practice

What exactly does runtime do in real development?How can we use tools like Niu X? To use runtime, first add a header file before writing the runtime code: #import <objc/objc-runtime.h> //simulator perhaps #import <objc/runtime.h> //real machine #import <objc/message.h> //real machine 1 2 3 4 1. Add a class dynam ...

Posted by Eiolon on Tue, 21 May 2019 09:44:29 -0700

Is your Android application secure?

Preface As you all know, most Android s are written in Java language at present. Even now Google highly recommends kotlin, there are still many projects written in Java. After all, it takes time to replace a language. Therefore, it is well known that Java code is easy to be decompiled, so the prevention of decompilation itsel ...

Posted by keyser soze on Sat, 18 May 2019 17:33:45 -0700

Introduction to Basic Use of layer-list for Android Layer

This article is reproduced from Introduction to the Basic Use of Layer-list-layer-list 1. What is layer-list? What's the effect? 1.1 What is layer-list? Simply understand, layer is a layer, list is a list, then layer-list is the meaning of layer list. But what level list is it? In fact, layer-list is used to create Layer ...

Posted by PRodgers4284 on Thu, 16 May 2019 12:08:33 -0700

How to make processes run in the background in linux

Linux skills I. nohup/setsid/& Use scenarios:If only a temporary command takes a long time to run, what is the easiest way to ensure that it runs stably in the background? There are two ways to solve this problem: either let the process ignore the HUP signal, or let the process run in a new session and become a sub-process that does not bel ...

Posted by Valkrin on Wed, 17 Apr 2019 11:54:32 -0700

Ubuntu 16.10 simulator failed to start

Start Android's own simulator error message on Ubuntu 16.10 as follows: /opt/androidsdk/tools/emulator -netdelay none -netspeed full -avd Android_TV1080_22 libGL error: unable to load driver: i965_dri.so Note: The environment variable $ANDROID_SDK_HOME is set, and the emulator uses that variable to locate AVDs. This may result in the emulato ...

Posted by Amgine on Sat, 06 Apr 2019 15:24:31 -0700

Using qemu to build aarch64 learning environment

Author information Author: Peng Donglin E-mail: pengdonglin 137@163.com QQ: 405728433   software platform Host: Ubuntu 14.04 64-bit version Simulator: Qemu-2.8.0 Linux Kernel Version: Linux-4.10 Busybox version: busybox-1.24.2 Tool chain: gcc-linaro-aarch64-linux-gnu-4.9-2014.07_linux   Reference blog Simulate vexpress-a9 with qem ...

Posted by rortelli on Tue, 02 Apr 2019 20:48:31 -0700

Release Flash after ViewController Creation

Problem description When you are working on a project, you encounter a flashback problem. Looking at the code logic, you can see that the following code causes crash. - (IBAction)buttonTouchUpInside:(id)sender { TestTableViewController *vc = [[TestTableViewController alloc]init]; } Yes, you did not read it wrong. The code above will cau ...

Posted by Barnacles on Sun, 31 Mar 2019 11:27:28 -0700

Network Picture Loading with Cache in Android

Network programming in Android is the core technology of Android development, so learning network programming in Android is very important, very important, very important! Firstly, the core knowledge points used in this paper are explained. 1. child thread Before Android 4.0, access to the network could be written directly to the main thread ...

Posted by Chris_78 on Sat, 30 Mar 2019 10:15:29 -0700

King's Glory Brushing Gold Coin Small Procedure

Two days ago, I asked my classmates to help me become a king. He needed heroes, but I didn't have gold coins. I couldn't afford them. (How important is money!!) I have to brush gold coins in the clouds, but I'm so lazy that I don't want to brush them manually. So, try to do something about it. After a long battle (as if it wasn't too long), it ...

Posted by dotty on Tue, 26 Mar 2019 05:06:30 -0700

Custom capture of Application global exception in Android can replace the forced exit dialog box of the system

As you all know, Android phones and devices are very different now, and programs that run well on the simulator may crash when installed on a particular phone. It is impossible for a developer to buy all the devices and debug them one by one, so after the program is released, if there is a crash, the developer should get it in time. Prepare i ...

Posted by Ferenc on Thu, 21 Mar 2019 15:45:53 -0700