After reading this no longer Android rights component design, I kneel on the clothes pad!

Take a look at Demo's code first It is too laggy to record gif anymore. Gif is too big and web page is very card.Demo's ideas are as follows: normal judgment rights, there are three callbacks, the user confirms that the rights are granted, the user does not give, and the user clicks not to display the system rights pop-up window.Here we start ...

Posted on Thu, 09 Jan 2020 13:18:30 -0500 by wednesday

React native develops AsyncStorage data storage of seven react navigation

1 Preface As we all know, there are different ways to persist data in Android and IOS, such as files, databases, shareprefices, etc. AsyncStorage is a simple key value storage system, which is officially recommended by RN. It stores String data, which is a lightweight Data Persistence technology in RN 2 main usage of asyncsto ...

Posted on Thu, 09 Jan 2020 12:57:28 -0500 by generic

Simple use of Android ultra pull to refresh Library in Android

Recently used Android ultra pull to refresh is a library with powerful functions. The address of this library is:https://github.com/liaohuqiu/android-Ultra-Pull-To-Refresh what you want to know can be seen on GitHub, and the introduction is very detailed. I'll just briefly introduce how to use this library to customize the he ...

Posted on Thu, 09 Jan 2020 11:26:16 -0500 by lighton

Jump from Web link to app specified page and pass value

Declare scheme and parentActivity in the manifest file <activity android:name=".SecondActivity" android:parentActivityName=".MainActivity"> <!--Affirming parentActivity,The user presses the return key to return to the main page--> <!--stay Android 4.1 After version, you can u ...

Posted on Thu, 09 Jan 2020 11:15:30 -0500 by showman

Long press photos to pop up the right-click menu in Android

scene Effect     Note: Blog: https://blog.csdn.net/badao_liumang_qizhi Pay attention to the public address Domineering procedural ape Get programming related ebooks, tutorials and free downloads. Realization Change the layout to LinearLayout and set it to vertical layout through Android: orientation = "vertical" >. Then add an I ...

Posted on Thu, 09 Jan 2020 09:03:22 -0500 by adrianuk29

How to make an Android Spinner with the initial text "choose one"?

I want to use a spinner that initially (when the user has not yet selected it) displays the text "select one.". When the user clicks the spinner, a list of items is displayed and the user selects one of the options. When the user makes a selection, the selected item appears in the spinner instead of selecting one. I have the follo ...

Posted on Thu, 09 Jan 2020 06:02:34 -0500 by adityamenon90

How to use AsyncTaskLoader

This article comes from my own new blog: Analysis of AsyncTaskLoader AsyncTaskLoader ↳ android.support.v4.content.Loader<D> ↳ android.support.v4.content.AsyncTaskLoader<D> Basic Usage Create a custom Loder class that inherits from AsyncTaskLoader cancelLoadInBackground Implement the following th ...

Posted on Wed, 08 Jan 2020 11:37:29 -0500 by duane

Android uses the Action and Data properties of Intent to jump to make a call and send a text message by clicking the button

scene Click the call button to jump to the call page     Click the send SMS button to jump to the send SMS page     Note: Blog: https://blog.csdn.net/badao_liumang_qizhi Pay attention to the public address Domineering procedural ape Get programming related ebooks, tutorials and free downloads. Realization Change the layout to LinearLayout, ...

Posted on Wed, 08 Jan 2020 11:14:08 -0500 by Getran

Project summary 3: the ultimate solution to the problem of white screen or black screen in some mobile phones during the startup of the App developed by ionic3

Problem scenario: with the App developed by ionic3, when the project is relatively large, there will be white screen or black screen in the process of starting some real devices. Cause prediction: the performance of individual mobile phones, especially Android mobile phones, is relatively poor, and the initialization of App be ...

Posted on Tue, 07 Jan 2020 12:20:21 -0500 by ureck

Android uses mediacodec and mediaextractor to decode and play MP4 files

In the previous article, I talked about how to collect camera pictures and code them, and then package them into MP4 format files. If you need to know, you can see Android collects camera images to generate MP4 files This blog mainly explains how to unpack the MP4 file, and then unpack the H264 code stream for screen display. ...

Posted on Tue, 07 Jan 2020 11:04:58 -0500 by fenrir