[FAQ03426] when there are multiple launchers in the system, how to set the default launchers to enter automatically after power on?

[DESCRIPTION] After power on and unlocking, if there are multiple launchers in the system, a selection box will pop up to let the user choose to enter a launchers. If the user does not want to select, but wants to directly enter a default Launcher, how to modify it? [SOLUTION] Note: this modification method is not valid for ...

Posted by PHPist on Sun, 29 Dec 2019 08:58:47 -0800

Be elegant!Load large and long pictures like this in Android

When developing, we will inevitably encounter the situation of loading pictures. When the size of pictures is smaller than the size of ImageView, we can certainly happy to load the display directly. But if we load a picture that is much larger than the size of the ImageView, displaying it directly with the ImageView will have a bad visual effe ...

Posted by elgordo1960 on Sat, 28 Dec 2019 15:16:15 -0800

Google's open source dependency on injection and storage is smaller and faster than Spring!

Guice, an open-source dependency injection Library of Google, compares with Spring IoC Smaller and faster. Guice is widely used in elastic search. This paper briefly introduces the basic concept and usage of Guice. Learning objectives   Overview: understand what Guice is and what characteristics it has; Quick start: learn Guice through example ...

Posted by darkhorn on Wed, 25 Dec 2019 01:48:02 -0800

google gcr.io, k8s.gcr.io domestic image

1. First add the official domestic image of docker sudo tee /etc/docker/daemon.json <<-'EOF' { "registry-mirrors": ["https://registry.docker-cn.co"] } EOF 2. gcr.io image According to the open source project: https://github.com/anjia0532/gcr.io_mirror The author will pull the gcr.io related image down, and then push it to the official d ...

Posted by reversenorm on Wed, 18 Dec 2019 07:56:49 -0800

kratos micro service framework learning note 1 (kratos demo)

catalog kratos micro service framework learning note 1 (kratos demo) kratos Ontology demo kratos micro service framework learning note 1 (kratos demo) Most of the time this year has passed. It's not much more extensive and github. Now the development task is almost completed, which will be easi ...

Posted by ari_aaron on Wed, 18 Dec 2019 03:43:44 -0800

Combination of Retrofit and RxJava

These two frameworks are very popular now. The combination of strong and strong forces makes our efficiency more direct First, we need to import the dependencies implementation 'com.squareup.retrofit2:retrofit:2.4.0' implementation 'com.squareup.okhttp3:okhttp:3.11.0' implementation 'com.google.code.gson:gson:2.8. ...

Posted by 25lez25 on Tue, 17 Dec 2019 10:14:25 -0800

Nuxt.js learning - nuxt.js error page, Meta tag of personalized specific page

[TOC] 1. Error page 1.1 official documents: You can customize the error page by editing the layouts/error.vue file Warning: Although this file is in the layouts folder, it should be treated as a page This layout file does not need to contain < nuxt / > tags. You can think of this layout file as a component for displaying application error ...

Posted by suncore on Sun, 15 Dec 2019 11:29:12 -0800

LINQ's Distinct() on a specific attribute

I'm learning with LINQ, but when I don't have a simple list (I can easily do a simple integer list, which is not a problem), I can't figure out how to use Distinct. If you want to use on the object list of one or more properties of an object Distinct , what to do? Example: if an object is Person, it has a Property Id. How do I get all peopl ...

Posted by lettheflamesbegin on Fri, 13 Dec 2019 04:53:32 -0800

Latitude and longitude shift conversion

In the process of map development, the following three types of map coordinate systems are generally accessible: 1.WGS-84 original coordinate system is generally based on WGS-84 coordinate system, the longitude and latitude recorded by International GPS recorder, the original longitude and latitude obtained by GPS positioning, and the longitud ...

Posted by clairian on Wed, 11 Dec 2019 10:45:18 -0800

Exception handling of Resources$NotFoundException in Android WebView 5.x system

Recently, a crash problem was found in the online background. On Android 5. X, when creating a webview, a carsh will occur, with an error message:   Caused by: android.content.res.Resources$NotFoundException: String resource ID #0x2040003 at android.content.res.Resources.getText(Resources.java:318) at android.content.res.VivoResourc ...

Posted by Gambler on Wed, 11 Dec 2019 06:22:05 -0800