How many days does Android use action? Usage? Access? Settings permission check that the mobile phone does not use other apps

1 demand Find out how many days the phone hasn't used all the apps           2 ideas Get the package name of the APP that has been used for several days through the action "usage" access "permission, and then get all the user apps of the mobile phone. The remaining APP is the APP that has not been used for many days.   ...

Posted on Sun, 10 May 2020 10:57:11 -0400 by pklover

Android QR code scanning (imitating wechat interface), according to Google zxing

Android QR code scanning (imitating wechat interface), according to Google zxing QR code scanning is often used in Android project development. For example, Google has an open source library (address: https://github.com/zxing/zxing ), there are still a lot of contents in it. If you want to learn more about it, it's good. Of course, we have ...

Posted on Sat, 09 May 2020 11:47:55 -0400 by zampu

Android Service Basic Usage, AIDL, Binder Connection Pool Details

This article describes the communication between Service and Activity. It contains the following: 1. Basic Service Usage 2. Cross-process communication between Service and Activity via AIDL 3. Binder Connection Pool 4. Use Messenger for cross-process communication 5. Sample source address for this article The arti ...

Posted on Fri, 08 May 2020 12:43:37 -0400 by rem

Life Cycle of Android Serial 9-Fragment

1. Fragmentation status and 1. Operation status When a fragment is visible and her associated activity is running, the fragment is running. 2. Pause state When one activity enters a pause state (because another activity that is not full of the screen is added to the top of the stack), the visible fragments associated with it enter a pause state ...

Posted on Fri, 08 May 2020 12:41:50 -0400 by tmann

Android P HIDL demo code writing (original)

Previous articles have analyzed the registration and invocation of HIDL service, and this article summarizes how to write the next HIDL service. Abbreviated HAL file First of all, you need to confirm the package name of the folder and interface, because this is related to the use of script to generate some code. Generally, it is placed in the h ...

Posted on Thu, 07 May 2020 07:08:55 -0400 by Ph0enix

Learn more about Android animation

1, PropertyValuesHolder Reading this article requires the foundation of Android attribute animation in the previous article, so that you can understand what to say next. 1. Understanding and use PropertyValuesHolder is a method similar to ObjectAnimation, but with one target missing, it is the control to be executed. Look at the normal usage: a ...

Posted on Thu, 07 May 2020 05:47:51 -0400 by Dan06

Android installs additional apk s in the assets directory

In practical development, you may encounter other apk s packaged in your own application and installed together. Here are the steps: First copy the test.apk to the main/assets directory and apply for read and write access to the memory card in the manifest file: <uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" ...

Posted on Wed, 06 May 2020 12:14:36 -0400 by solon

Engineering project - campus automatic sign in today, fill in the form

Open today's campus APP at 8 o'clock every morning to sign in and fill in the form.. Can't let people sleep well!! In order to solve this headache, I think of using the Request Library in python to send requests Lu Xun said: people are more and more lazy, more and more inventions! Creation comes from our life! Don't say much, start buil ...

Posted on Tue, 05 May 2020 22:43:38 -0400 by felodiaz

Android Custom View - A refreshing, compact and flexible multi-node progress bar

Preface Recently, there is a small need for a node progress bar in the project. When it is finished, I want to share it with the students who need it. Real machine effect Custom View Complete Code Out-of-the-box~, notes have been detailed /** * @description: Node Progress Bar * @author: DMingO * @date: 2020/4/15 */ public class PointProce ...

Posted on Tue, 05 May 2020 16:55:12 -0400 by egorig

The problem of EditText losing focus after Android uses external code scanner to scan one-dimensional code

Use EditText to get the scanning results of the code scanning gun, but different code scanning guns have different performances. Some code scanning guns can work normally, and some code scanning guns will automatically focus on the next control after scanning, as if pressing Tab on the desktop of windows, scanning will ...

Posted on Tue, 05 May 2020 16:32:08 -0400 by nesargha