Activity starts the 2-startActivityMayWait method

We start with the analysis parameters in the previous section and finally achieve: result = mInterface.startActivityAndWait(null, null, intent, mimeType, null, null, 0, mStartFlags, profilerInfo, options != null ? options.toBundle() : null, mUserId ...

Posted by Nilanka on Mon, 28 Jan 2019 03:51:16 -0800

The Method of Obtaining Mac Address from Android Mobile Phone

In this period of requirement, it is required to obtain a unique code from the system device as the unique identification of the current logged-in user, and finally decided to adopt the mac address. The first is: The official method of obtaining mac address is: /** * Getting mac address through WiFiManager * @param ...

Posted by colby.anderson on Sun, 27 Jan 2019 23:03:14 -0800

sh scripting in Ubuntu system

In the process of developing Ubuntu system, we often encounter some repetitive operations, such as copy, push and so on. At this point, we can write a sh script ourselves, using the SH script to operate on these repeated actions. 1. Understand the basic grammar before writing sh scripts 1.1 if statement #!/bin/sh myPath="/va ...

Posted by Terrum on Sun, 27 Jan 2019 15:45:14 -0800

Two-way data binding (getter and setter) with computer in vue

Vue is known as a framework to achieve data bidirectional binding, but in fact, in daily development, we use the most is v-model to associate data (vue instance) with view, to achieve data updates, view automatic refresh effect. However, as far as mobile Chengdu is concerned, the effect of two-way data binding is not particular ...

Posted by fr0stx on Sun, 27 Jan 2019 13:54:14 -0800

android Debugging stetho's Things

In the process of debugging Android program, I can't stand every time I look at the log to check the response of the network and export DB (even sometimes I can't export db). Here is a facebook artifact stetho, but this is a limitation. When I use it, I must connect with the debugged mobile phone through usb, and also use chrome ...

Posted by Quest on Sun, 27 Jan 2019 11:30:16 -0800

RxPermission uses

I. RxPermission use 1. Reference dependency: allprojects { repositories { ... maven { url 'https://jitpack.io' } } } dependencies { implementation 'com.github.tbruyelle:rxpermissions:0.10.2' } 2. Android Manifest. XML Declares Permissions <uses-permission android:name="android.permis ...

Posted by j007w on Sat, 26 Jan 2019 11:45:14 -0800

Android app version updates function modules to solve 8.0 and permission issues

This article mainly solves some problems of app version updating function, refers to some codes, mainly 8.0 problems encountered online corresponding articles are relatively few, so specially write an article to summarize. Functional requirements: A download function with a progress bar, and the installation interface can be a ...

Posted by KindMan on Sat, 26 Jan 2019 00:39:13 -0800

Implementation of Custom Control for KPI Wheel Running and Digital Running

In the process of project development, a lot of data are easily fixed (also directly set up data). Dynamic effects can only experience a little change occasionally in the process of switching or loading. In PC web, we can often see the data running and gradually changing process, so that users can use the data more dynamically a ...

Posted by newbeee on Fri, 25 Jan 2019 21:27:17 -0800

OkHttp Upload byte Array Developed by android

Recently, we are going to rebuild Android 9.0 compatibility for the old project. The previous app request was packaged package of org.apache.http.legacy.jar, which will not be accessible on the 9.0 simulator, so it needs to be rebuilt. My plan is to directly change the bottom of the package to okhttp, which is simple and fast. ...

Posted by vampke on Fri, 25 Jan 2019 18:00:14 -0800

One-click modification of color in xib/Storyboard project

git address: https://github.com/winterwd/OneKeyChangeXIBColor    It can be downloaded directly (note that there is no Chinese in the path). If you are interested, read the article. 2018.9.2 This color-changing gadget was originally a problem that I met in my own work, so I made a gadget like this. At that time, it was limit ...

Posted by blinks on Fri, 25 Jan 2019 11:03:14 -0800