How Android detects network types of 3G, 2G, wap, wifi

There are many online codes about how Android detects the type of network, but there are few useful products. Some time ago, because the project needs to involve specific network type checks, especially to distinguish the type of 2G network for WAP or net. Because of the type of wap, we need to configure proxy to access the Int ...

Posted by JAY6390 on Tue, 05 Feb 2019 20:30:17 -0800

Introduction to ArcGIS Runtime SDK for Android (19): Display Local Map Data - mmpk Mobile Map Pack

This article mainly explains how to display the local mmpk mobile map package files with the help of ArcGIS Runtime SDK for Android. Implementation steps: 1. Create an Android project 2. Adding Runtime SDK dependencies The first two steps are omitted. Beginners can refer to them. Introduction to ArcGIS Runtime SDK for Andro ...

Posted by Wes1890 on Tue, 05 Feb 2019 00:03:16 -0800

Basic styles commonly used in vue projects (reset.css and border.css)

reset.css Different browsers often display the same label differently, so when doing a project, we need to set the basic style to achieve the same display effect in different browsers. This is the role of reset.css. All, it is necessary for you to collect it and use it directly when you are doing the project. Specific code: ...

Posted by mrjonnytou on Mon, 04 Feb 2019 00:24:16 -0800

vue.js and vue-waterfall-easy realize waterfall flow + drop-down refresh

vue.js and vue-waterfall-easy realize waterfall flow + drop-down refresh Recent project requirements first need waterfall flow, then need drop-down refresh function. I thought it would be easy to achieve this effect through vue-waterfall-easy and then use drop-down refresh in other ui libraries. But this is not the case. After ...

Posted by rehfeld on Sat, 02 Feb 2019 17:48:15 -0800

Launcher Startup Timing of android System

Today, I am free to study Launcher's start-up time in the system start-up process. It is necessary to share the results of reading the code. First of all, we know that the init process will be generated when the system starts. The init process will start daemons like usbd, adbd and so on. At the same time, it will start the Zy ...

Posted by koglakci on Sat, 02 Feb 2019 14:33:15 -0800

Java API for HDFS operations

1. Environmental Construction Configuration of environment variables HADOOP_HONE Add bin of HADOOP_HOME to PATH Permission issues: Add HADOOP_USER_NAME=root environment variable Configuration of Eclipse Add the following hadoop-eclipse-plugin.jar package to the dropins plugins folder in the Eclipse installation directory ...

Posted by naskoo on Sat, 02 Feb 2019 12:36:15 -0800

Swift - Basic usage of the default UICollectionViewController for the system

When you create without xib, you need to rewrite override init(collectionViewLayout layout: UICollectionViewLayout){} The UICollectionViewLayout value needs to be passed when invoking, otherwise an error will be reported. let layout = UICollectionViewFlowLayout.init() let vc1 = DataCollectionViewController.init(collectio ...

Posted by darkwolf on Sat, 02 Feb 2019 11:00:16 -0800

Android JNI Development Series (X) JNI Accessing Java Instance Variables and Static Variables

JNI accesses Java instance variables and static variables Instance variables and static variables in Java, how to access and modify them in local code. Static variables, also known as class variables (attributes), share the same data in all instance objects and can be accessed directly by class name and variable name. Instance variables are als ...

Posted by adrafa on Sat, 02 Feb 2019 01:18:15 -0800

iOS Architecture Design

Tell me about MVC, MVVM, MVP, and how do you write it in the project? What design patterns have you used? Usually start a project. How do you think about your architecture?   1: What is the architecture? 2: MVC - Apple Edition 3: MVC - Variant 4: MVP 5: MVVM 6: Three-tier Architecture 7: Four-tier Architecture 8: Des ...

Posted by Teach on Sat, 02 Feb 2019 00:09:16 -0800

Kotlin Commission

Delegation in Kotlin In delegation mode, two objects participate in processing the same request, and the object receiving the request delegates the request to another object for processing. Class delegate class MainActivity : AppCompatActivity() { override fun onCreate(savedInstanceState: Bundle?) { super.onCr ...

Posted by .Darkman on Fri, 01 Feb 2019 22:51:15 -0800