Say android:persistent="true" keep alive

Say android:persistent = "true" to keep alive 1. What kind of application configuration can realize this value to keep alive? The pre installed application of the system is related to the pre installed location. See code for details if ((flags&PARSE_IS_SYSTEM) != 0) { if (sa.getBoolean( com.a ...

Added by cashflowtips on Sat, 04 Apr 2020 00:41:40 +0300

The solution to the accuracy problem of JavaScript floating point arithmetic bignumber.js

The principle of accuracy is described in the previous article. https://my.oschina.net/xiaogg/blog/2998192 Also mentioned some solutions Today I'm going to talk about a new approach Is to make use of bignumber.js This plugin. I've applied this plugin to the calculation of grocery shopping Instance address: http://tool.bitefu.net/jisuan/ Buy ...

Added by idnoble on Fri, 03 Apr 2020 19:24:41 +0300

Using Android Studio to develop executable Java application with interface

Using Android Studio to develop executable Java application with interface 1. Create Project and Module Create a new project and then a new module select java library 2. Add Main method and test code package com.example.javareplacecarcols; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; ...

Added by lhaynes on Fri, 03 Apr 2020 04:56:06 +0300

java common design pattern 1 -- Builder pattern

Builder mode is also commonly used in Android development. Usually we use this mode when building a complex object, which can separate the construction of complex object from its representation. Characteristic: Builder mode is usually a chain call. The key point is that each set method returns itself, that is, return ...

Added by l!m!t on Fri, 03 Apr 2020 00:00:18 +0300

Simple message at the top

  Let's see the renderings first A message list, and then click the item to refresh the time, and then click the top to refresh the time. The top rule is based on two fields If it is in the top state, top is 1, and then time will be refreshed for each operation. Time is the saved time stamp. First, look at the entity class package com.fragme ...

Added by mrbippy on Thu, 02 Apr 2020 20:52:09 +0300

React native opens the setting interface

iOS iOS open settings are relatively simple. You can use the Linking component to: Linking.openURL('app-settings:') .catch(err => console.log('error', err)) Android 1. Create the opensettings folder under the Android / APP / SRC / main / Java / COM / < ProjectName > / folder 2. In this folder, create the module file OpenSettingsModul ...

Added by Emperor_Jackal on Thu, 02 Apr 2020 20:45:53 +0300

LruCache details and actual combat

First of all? Before reading this article, let's learn about LinkedHashMap and LruCache. First, let's look at the following two articles: Working principle and implementation of Java LinkedHashMap Android efficiently loads large and multi map solutions, effectively avoiding the program OOM - CSDN blog It's the b ...

Added by Rolando_Garro on Thu, 02 Apr 2020 17:44:02 +0300

How to use Android's local radio

There are security issues with Android's global broadcast. For example, sending some critical data broadcasts may be captured by other applications, or receiving all kinds of garbage broadcasts sent by other programs. Local broadcast is to solve this security problem. It can only be delivered within the application, and the broadca ...

Added by Pandolfo on Thu, 02 Apr 2020 16:21:43 +0300

Meta data of meta data

Meta data in Android is used in the Android manifest.xml file. The < meta data > tag is used to provide additional data for components. It is a key value pair in itself. You can customize the name and value or resource. It can be included in the following six components: <application> <activity> <activit ...

Added by sean14592 on Thu, 02 Apr 2020 12:08:31 +0300

Android EditText enter mobile number auto space

Jane book: Android EditText enter cell phone number space The development requirement is to insert a space in the middle of the mobile EditText on the login page to make the user look convenient. 130 1234 4567, the fourth number and the fifth number in the middle are preceded by a space. It is also required that in ...

Added by needphphelp on Thu, 02 Apr 2020 09:34:15 +0300