Working process of BroadcastReceiver

Basic knowledge In terms of types, it can be divided into two categories: orderly broadcasting and standard broadcasting It can be divided into static registered broadcast and dynamic registered broadcast In Android, broadcast is cross process, so when data is transferred between processes, security information may b ...

Posted by ready2drum on Thu, 02 Apr 2020 10:03:20 -0700

Android NDK basic configuration

Android ndk configuration under Windows ndk package This installation uses android ndk version android-ndk-r12b-windows-x86 ʄ Environment variable configuration Add the unzipped ndk PATH to the PATH, and the native is "D:/ndk" Android project configuration 1. Create a new Android project, add local.properties to n ...

Posted by eneyas on Thu, 02 Apr 2020 09:06:55 -0700

Android click the button to turn off the screen

Sometimes we see some pad of control equipment in some hotels. When we click the close button, we will turn off the device and turn off the pad screen. Today, we will try to realize the function of clicking the button to turn off the screen. 1. Create an XML folder under res and a resource file of lock_screen.xml. The source ...

Posted by bonekrusher on Thu, 02 Apr 2020 07:55:25 -0700

CountDownTimer source code analysis

Countdown function, for example: send SMS verification code countdown. 1 public class CountDownTimerActivity extends Activity { 2 3 private Button mSend; 4 private SendCountMessage mCountMessage; 5 6 @Override 7 protected void onCreate(Bundle savedInstanceState) { 8 super.onCreate(savedInstanceState); 9 ...

Posted by mattyj10 on Thu, 02 Apr 2020 06:11:51 -0700

Summary of five ways to use Toast

As for Toast, I'm sure you are familiar with it. Here's a summary. There are five ways to use Toast: Default style Custom location Custom picture Fully custom layout Use in other threads All right, no more nonsense, just look at the code 1. first, add 5 buttons in the activity.xml file to click the event to pop up the Toast ...

Posted by rocram16 on Thu, 02 Apr 2020 02:32:09 -0700

Android gets screen height and width (excluding / including virtual keys), height of status bar

There are many inaccurate ways to get the width and height of the screen on the Internet. Here, I use my mobile phone as a test to summarize some accurate methods, so I have this article. The height below refers to the length of the phone from top to bottom, and the width refers to the length from left to right. 1.Android gets ...

Posted by SleepyP on Thu, 02 Apr 2020 01:26:24 -0700

[small attempt] access to the original path course list of mooc.com

As an old MOOC network( https://www.imooc.com/ )Fans, remember that there are many free path courses at the beginning of mooc.com. It's a good way to get started with a language. Now mooc.com has developed the charging mode and added many higher-level courses, which is a good thing, but the original free path can not be found. If there is an or ...

Posted by carichod on Thu, 02 Apr 2020 00:54:08 -0700

Super Android - BaseAdapter+ListView

0x00 Preface Before that, I learned ListView and three adapters, arrayadapter, simpleadapter and simplecusoradapter in Android This time we mainly focus on BaseAdapter to learn and practice. 0x01 what is BaseAdapter In short, it is a kind of universal adapter, which we usually inherit. We will implement it after ...

Posted by emopoops on Thu, 02 Apr 2020 00:18:36 -0700

Application of iOS predicate

The predicate in Cocoa provides a general query method to process data, The filtering form of data can be obtained and specified. In the actual development of Cocoa, NSPredicate and its parent classes NSComparisonPredicate and nscompoundpredict can be used. Its style is similar to the mixture of SQL query language and regular expression, provid ...

Posted by Anyaer on Wed, 01 Apr 2020 22:49:36 -0700

CoordinatorLayout AppBarLayout combined with pull-down refresh and pull-up to load more sliding conflicts

Reprint: https://blog.csdn.net/axuanqq/article/details/51144295 if (appBarLayout != null) appBarLayout.addOnOffsetChangedListener(this); @Override public void onOffsetChanged(AppBarLayout appBarLayout, int i) { super.onOffsetChanged(appBarLayout, i); if (srlLayout == null) return; ...

Posted by iconicCreator on Wed, 01 Apr 2020 18:54:49 -0700