Preview of camera+surface at the beginning of live video
The beginning of live video
Nowadays, there are many live platforms on various networks, but do you know how to do live video? People who don't understand may think it should be similar to video recording. But the implementation of android is quite different.
When recording local video on android, you can use MediaRecord to pass in relevant par ...
Posted by jmcall10 on Sun, 08 Dec 2019 13:05:28 -0800
Access to UnionPay payment
Official documents can't be read. I access them based on video demo.
The access is mobile control payment, and the address is as follows:https://open.unionpay.com/tjweb/acproduct/list?apiservId=450&tdsourcetag=s_pctim_aiomsg
1. Import UPPayAssistEx.jar and UPPayPluginExPro.jar into libs
2. Android manifest.xml configuration
< ...
Posted by Craig_H on Sun, 08 Dec 2019 09:19:35 -0800
Review of learning difficulties in the four core components of Android studio
Activity
In an application, an activity can be used to represent an interface, the beginning of an activity, the start of an activity component, and the end of an activity represents the end of an activity's life cycle.
activity status
performance
Resumed
At the top of the stack, visible and interactive
Paused
State whe ...
Posted by jane on Sun, 08 Dec 2019 08:38:03 -0800
Coroutines in Android - One Shot and Multiple Values
In Android, the data we use may be one-time or multiple values
This paper introduces how to deal with these two situations with MVVM mode of coroutines in Android. It focuses on the application of coroutine Flow in Android
One-shot vs multiple values
The data used in practical application may be one shot, multiple values, or stream
For example, ...
Posted by itguysam on Sun, 08 Dec 2019 01:50:03 -0800
What is the best way to detect mobile devices?
Is there a reliable way to detect whether users are using mobile devices in jQuery?Is it similar to the CSS @media property?If the browser is on a handheld device, I want to run other scripts.
The jQuery $.browser function is not what I want.
#1st floor
Small is beautiful to me, so I'm using this technology:
In a CSS file:
/* Sma ...
Posted by Madzz on Sun, 08 Dec 2019 01:02:31 -0800
Custom View for Android Development
stay Custom View for Android Development (1) The most complex custom View is explained in, and the rest two are finished this time ~ ~ ~ go,go,go
Inherit the original control and modify it based on the original control, such as TextView, which is common and simple. This is explained by implementing a TextView example that displays ...
Posted by dcampbell18 on Sat, 07 Dec 2019 22:59:19 -0800
xutils3 database upgrade (markdown version)
xutils is a good android development framework, which reduces a lot of code in the process of using. But there are also a few things to pay attention to. For other uses, please see Detailed usage of xutils3
1. Notes
Unlike the comments of scalpel, the comments of xutils are in runtime (ps: I don't understand either). It is found ...
Posted by jchemie on Sat, 07 Dec 2019 17:16:48 -0800
Make your Dialog more concise
GitHub address
Rebuild a dialog with Builder mode. There are two kinds of Builder in the case, CommonBuilder and MDBuilder. If you want to implement other general dialog, you can inherit from FRBaseDialogBuilder.
1. Usage:
1.1 ordinary Dialog
private void showCommonDialog() {
final FRDialog dialog = new FRDialog.CommonBuilder(this)
...
Posted by gingerboy101 on Sat, 07 Dec 2019 16:13:16 -0800
Kotlin core syntax: higher order functions, Lambda as parameter and return value
Blog Homepage
1. Declare higher-order functions
A higher-order function is one that takes another function as a parameter or return value. In kotlin, functions can be represented by lambda or function references.For example, the filter function in the standard library takes a judging function as a parameter, so it is a higher-order function
lis ...
Posted by renegade44 on Sat, 07 Dec 2019 10:40:46 -0800
ReactNative[IOS] can't hide keyboard by clicking blank position
Recently, in the requirements of the development project, the test students raised a bug. In the following page, there are three input boxes. On iOS phones, after input, the keyboard cannot be hidden; on Android phones, the keyboard has a stow button, so there is no such problem.
Solutions in mind:1. Let the input box lose focus,2. Click the bl ...
Posted by evanesq on Sat, 07 Dec 2019 06:56:36 -0800