Monitor novel update status sent to mailbox (crawler and mail
Originally published at https://blog.csdn.net/qq_21484935/article/details/103461778
Idea: request the url of the novel and analyze the content to find the span tag with the update time. Then configure the mailbox to send the content as.
My choice is Netease's 126 email. I log in to my account on the official website. In the settings, open " ...
Posted by PABobo on Wed, 11 Dec 2019 09:50:06 -0800
[Android] simple interface callback
Application scenario
Tool class encapsulation
Take Chestnut: Baidu positioning
The following code is a tool class copied from Baidu positioning SDK
public class LocationTool {
private Context context;
public LocationClient mLocationClient = null;
private mLocationListener myListener = new mLocationListener();
...
Posted by roxiroxi on Wed, 11 Dec 2019 08:54:49 -0800
Time consuming of code point statistics application
In mobile application development, we sometimes need to monitor the time-consuming of some processes, such as application startup time, page Jump time, etc., which is not accurate only by naked eyes. We can realize it in several ways. One way is to obtain startup time by shell, one way is to output time by code point tapping, an ...
Posted by bdcode on Wed, 11 Dec 2019 08:46:10 -0800
Exception handling of Resources$NotFoundException in Android WebView 5.x system
Recently, a crash problem was found in the online background. On Android 5. X, when creating a webview, a carsh will occur, with an error message:
Caused by: android.content.res.Resources$NotFoundException: String resource ID #0x2040003
at android.content.res.Resources.getText(Resources.java:318)
at android.content.res.VivoResourc ...
Posted by Gambler on Wed, 11 Dec 2019 06:22:05 -0800
Android Activity transition animation
Preface
I haven't written blog for a long time. I'm getting lazier and lazier. I still need to change! Today I learned the animation effects that are likely to be applied to my work.
Design sketch
Implementation ideas
LoginActivity jumps to MainActivity through transition Animation:
Determine the starting position coordin ...
Posted by barteelamar on Tue, 10 Dec 2019 20:40:12 -0800
Android Development: APP guide page launch page small Demo (instance)
From the beginning of Android, step by step to now, the process is really hard to say. Only those who have experienced it can understand the pain of learning Android for the first time. So now, when looking at the path on Android, I turn around and write some small demos, hoping to help the people who need them. Later, I will o ...
Posted by dp777 on Tue, 10 Dec 2019 19:11:01 -0800
Applet scroll-view custom drop-down refresh
Although the WeChat applet comes with it. onPullDownRefresh Events can listen for a user's drop-down actions and drop-down refresh lists in callback functions.Sometimes, however, due to page layout, the list data we display on a page is not laid out directly on the whole page, but rather placed in a component like scroll-view.
So how do I do a ...
Posted by 448191 on Tue, 10 Dec 2019 19:05:33 -0800
Array 002 -- one dimensional array
Definition:
The array name meets the writing requirements of identifier (number, English letter, underline).
Array names cannot be the same as other variable names. They are unique in the same scope.
The constant expression in brackets [] indicates the number of array elements, and inta[3] indicates that array a has three el ...
Posted by Hilitec on Tue, 10 Dec 2019 17:03:47 -0800
Compile time annotation AbstractProcessor practice
Annotation in Java is a very amazing thing, especially now there are many Android libraries that are implemented by annotation.
We don't talk about annotations that are processed at Runtime through reflection, but rather at Compile time. Let's start with Java annotation processor.
Simple practice:
1. Create annotation
@Target({E ...
Posted by rd321 on Tue, 10 Dec 2019 14:14:31 -0800
android uses thread pool to speed up parallel computing and return computing results
###This method is suitable for a large number of data comparison, or single calculation without mutual influence
The thread pool has been used before, but in fact, there is no deep understanding and comparison when a large number of calculations are not encountered. Just this time, there is a need to use multithreaded parallel ...
Posted by youdontmeanmuch on Tue, 10 Dec 2019 11:28:00 -0800