android hot update (no framework)

I. Preface Recently, I saw the andix hot fix framework of Alibaba, but it seems that it can't support all devices. So, I need to manually implement Android hot fix once, and find out how to achieve it. Two, principle When Java's virtual machine JVM runs the code, it loads the. Class bytecode file, while Android's Dalvik/ART ...

Posted by baselineace on Sat, 04 Jan 2020 11:58:13 -0800

Several ways for Android buttons to implement click events

1, Anonymous internal mode This method seems simple and easy to understand on the whole, and is commonly used by individuals xml layout <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_heig ...

Posted by SiriusB on Sat, 04 Jan 2020 04:55:23 -0800

20180828 mobile assistant background wake-up and WiFi intensive wake-up in Doze mode

1. Wake up phenomenon of mobile assistant in the background com.qihoo.appstore and com.tencent.android mainly wake up in the background through JobScheduler and SyncManager events. Because most of the previous broadcast events, such as network static broadcast and application installation static broadcast, have been canceled b ...

Posted by lukegw on Sat, 04 Jan 2020 01:22:06 -0800

Flitter datastore SharedPreferences

SharedPreferences SharedPreferences is a lightweight storage class on Android platform, which is used to save some common configurations of applications. Save settings, properties, and data as key value pairs. There is also a SharedPreferences plug in, Use NSUserDefaults on iOS and SharedPreferences on Android to provide per ...

Posted by PHP-Nut on Sat, 04 Jan 2020 00:07:05 -0800

Android's ScrollView simple use case

Contents 1. Vertical scrolling: Scroll 2. Horizontal scrolling: HorizontalScrollView Vertical scrolling: Scroll Horizontal Scrollview ScrollView is called ScrollView. When the pixels of a screen cannot be displayed, it can be displayed on the UI in a sliding way 1. Vertical scrolling: Scroll Create a new ...

Posted by ale1981 on Fri, 03 Jan 2020 22:04:36 -0800

Android Studio released aar to Jcenter, plug-in could not be found

Reference resources: https://www.jianshu.com/p/5be222e98efc?from=jiantop.com / / used by gradle https://github.com/nuuneoi/JCenter/blob/master/installv1.gradle / / dependent on gradle location   Objectives: Previously, Android Studio released aar to Jcenter. For details, please refer to: https://blog.csdn.net/u014803950/ar ...

Posted by kruahsohr on Fri, 03 Jan 2020 13:53:29 -0800

android studio develops custom buttons and basic animation

Design sketch: This time it mainly records how to change the shape of the button. First, in the project app > res > drawable folder, right-click new to create a drawable return file, and then name the drawable file. Then write the code to control the key shape in the new drawable xml file. The code is as follows: &l ...

Posted by truCido on Fri, 03 Jan 2020 10:48:46 -0800

A simple way to use WebView in android learning notes

Android learning notes Refer to the second edition of the first line of code and the second edition of android programming authority guide In the development process, we want our App to have the function of visiting web pages, but we don't want to use a third-party browser. So here we introduce the WebView technology, which ...

Posted by brob on Fri, 03 Jan 2020 01:16:54 -0800

(90) Android O combing WIFI DHCP process with WiFi state machine

Preface: before (87) WiFi & DHCP Combing the DHCP process, now combing the next process with WiFi state machine.   Preparatory work: grab the log from Xiaomi mix2 8.0 WiFi state machine to the beginning of ObtainingIpState and the end of ConnectedState. 09-01 21:09:28.135 1561 2457 D WifiStateMachine: enter ObtainingIp ...

Posted by ok on Thu, 02 Jan 2020 19:27:40 -0800

Hellocharts Android histogram and pie chart

In addition to using the hellochart framework, this rendering can also be completed by using Echart. I wrote it with Echart first, and then with hellochart later. The reason is that it's painful to call js code with Android native, which wastes my day's work. Example renderings: Histogram: Without too much explanation, the ...

Posted by AL123 on Thu, 02 Jan 2020 18:53:07 -0800