Eye movement effect of ofo home page based on HTML5 gyroscope

When using the ofo Mini yellow car App recently, I found that the previous bottom scan turned into a little yellow person with moving eyes. I think it's quite interesting. Here, I'll use HTML5 to imitate the effect. ofo eye effect Effect analysis It is not difficult to see from the effect that it is realized by using gyroscope events. Let's ta ...

Posted by Lijoyx on Sat, 02 May 2020 09:29:12 -0700

Use of chimee component in web video playing scheme

1. Overview In view of the fact that H5 video is quite different (compatible) in the Web ecological environment, this paper mainly introduces the usage of developing chimee component with qiwutuan to play video. chimee component address: http://chimee.org/docs/index.html   2. Features of chimee components Chimee supports MP4, M3U8, FLV an ...

Posted by morpheuz on Sat, 02 May 2020 09:14:05 -0700

Network state judgment of android (wifi and mobile network data)

Sometimes we need to monitor the network status changes to remind users of the network status in time. Therefore, we need to monitor more network changes. We don't need to talk about much nonsense. We have listed all network situations in the code. If there is a need, we can prompt according to the actual situation. 1. First of all, it is nece ...

Posted by hermand on Sat, 02 May 2020 04:24:55 -0700

Content provider of Android's four components

1 Introduction As one of the four components of Android, the main function of content provider is to expose private data for other applications. For example, an application needs to read the mobile contacts in the mobile phone for its own use. From this we can know that this is also a way of communication between processes in Android. Content ...

Posted by sava on Sat, 02 May 2020 02:34:36 -0700

Recommend Huploadify to upload pictures or files

In the previous project, uploadify(flash version) was used to realize the image upload function. The upload plug-in browser that relies on flash is not compatible enough, so Huploadify was used to replace uploadify for the following reasons: 1. Does not depend on flash. 2. The library file size is one third of uploadify. 3. Browser c ...

Posted by dr.wong on Fri, 01 May 2020 15:17:11 -0700

Abstract factory pattern -- the creation pattern

Abstract factory pattern Package structure as shown in the figure ps: it's a little abstract to understand   1. Function interface PlayGame.java public interface PlayGame { public void game(); } 2. Two kinds of devices, Computer.java and Phone.java, to realize the function interface public class Computer implements PlayGame{ @Overr ...

Posted by kutchbhi on Fri, 01 May 2020 07:13:42 -0700

Cross domain request processing of vue proxyTable interface

1. Foreword When using vue to develop mobile app and using http to request interface data, cross domain request of vue proxyTable interface appears 2. The vue http request code is as follows: this.$http.post(this.URL + '/mobile/base/getBaseInfo.do',{type:1}) .then(function (res) { alert(res.data.name) }) .catch(function (er ...

Posted by fighter1430 on Thu, 30 Apr 2020 18:21:42 -0700

Use of Android BottomNavigationView

Google's officially updated Support25.0.0 includes the bottom Navigation view, which is the bottom navigation bar component, as shown in the following figure: Let's take a look at how to use this component Upgrade Support package Upgrade the Support package to 25.0.0 and add a reference to build.gradle dependencies { co ...

Posted by nitram on Thu, 30 Apr 2020 12:34:00 -0700

Judge whether Android mobile phone (OPPO mobile phone) has recording permission compatible with less than 6.0

In the project, when the old version of OPPO mobile 5.1 is encountered, the recording permission is explicitly denied, but the callback is still true. Since 6.0, the runtime permission has been issued, and the way to obtain the permission has become unified. First, configure the required permission in the list file, and then take photos or re ...

Posted by unknownsheep on Thu, 30 Apr 2020 08:16:49 -0700

Detailed steps to use Alibaba big fish Java

Summary Alibaba greater (formerly Alibaba big fish) is a product of Alibaba communication, which integrates the communication capabilities of three major operators. Aligreater provides personalized services including SMS, voice, direct charging of traffic, private special line, shop mobile number, etc. Open SMS service Step 1: Step 2: ...

Posted by Agtronic on Mon, 27 Apr 2020 09:42:33 -0700