No data available after Android docks with Bomb

A while ago I did a Demo where I tried to use the Bmob backend cloud, but after filling in the data on the Web, I found that I could not get the data successfully.The entanglement was resolved successfully after a period of time. In a nutshell, the first step is to import Bmob dependencies in Android Studio: Click SDK Import on the left after ...

Posted by phonydream on Thu, 16 Apr 2020 09:35:47 -0700

FFmpeg setting OpenMax hardware encoding

OpenMax is a unified multimedia framework. ffmpeg supports H264 OpenMax encoding. This paper records how to enable OpenMax encoding. ffmpeg version: 4.0 OpenMax header version: 1.2 First download ffmepg, then the header file of OpenMax, and extract the zip of the header file to get Copy the header file to the include of the corresponding pla ...

Posted by thebopps on Thu, 16 Apr 2020 09:11:16 -0700

Android HTTP mode request network

There are many ways to use Http to access the network, but the most common way is POST and GET. The project is just useful, so I wrote a tool class for later use. Generate a construction parameter with handler in HttpUtil class. The reason to generate a construction parameter with handler is that after Android 4.0, whe ...

Posted by devassocx on Thu, 16 Apr 2020 09:04:45 -0700

Flutter Analog Android Racelight

This paper describes how to implement Android's horse-running light in flutter, then expand it to scroll up and down, first with the effect picture: Vertical mode Horizontal mode Upper Code There are two main scrolling modes, vertical and horizontal, so we define two construction methods. The parameters are scroll speed, delay of each scroll, ...

Posted by jarv on Thu, 16 Apr 2020 00:18:38 -0700

appium - wait time

In the process of UI automation, we sometimes need to add some wait time to help us wait for elements to appear, but sometimes too much or too little time is added, which is impossible to judge. Today we introduce several wait times. Let's see which one is right for us, and we'll use which one Forced Wait You should know when you see the nam ...

Posted by zako234 on Wed, 15 Apr 2020 20:23:20 -0700

Jump between Android's activities

1. There is a little change between the jump mode mentioned here and the usual one: We can write a jump method in the class inherited by activity for other classes to use, reducing the use of redundant code package com.ayspot.apps.wuliushijie.base; import android.content.Context; import android.content.Intent; import android.os.Bundle; impo ...

Posted by khurramijaz on Tue, 14 Apr 2020 08:45:55 -0700

How to elegantly apply for Android runtime permissions

​ To reproduce this article, you need to indicate the source: WeChat public number EAWorld, violators must be prosecuted.   Preface:   Android is a privilege-separated operating system where each application has its own unique system identity.By default, no application has permission to perform any action that adversely affects other appli ...

Posted by deRusett on Mon, 13 Apr 2020 19:55:13 -0700

"Self portrait tutorial 57" Python "FastBoot one click brush

Most Android mobile phones / car phones / TVs and other mobile terminal devices, You can refresh the Android system version through fastboot, which is actually the swipe of multiple img files (image files). Preparation stage First, press the combination button (the combination button of each Android terminal is different, for example, some o ...

Posted by Stevis2002 on Fri, 10 Apr 2020 01:13:19 -0700

Replace enumeration with annotation @ IntDef

Before we start, let's take a look at a paragraph in the official Android documentation. Be careful with code abstractions Developers often use abstractions simply as a good programming practice, because abstractions can improve code flexibility and maintenance. However, abstractions come at a significant cost: gen ...

Posted by fross on Thu, 09 Apr 2020 09:04:45 -0700

On the pit of pop-up dialog in Service

1, Mobile phone version problem, most articles do not cover this point, resulting in their code can not be used normally Type > Application > overlay required for version M and above AlertDialog.Builder builder=new AlertDialog.Builder(getApplicationContext()); builder.setTitle("Tips"); builder.setMessage("service Elastic frame"); builder ...

Posted by nagalenoj on Thu, 09 Apr 2020 08:06:19 -0700