Several asynchronous implementations of Android

Article directory Asynchronous implementation with Java methods 1. Inherit Thread class 2. Implement the Runnable interface Asynchronous using Android specific methods 1,AsyncTask 2,Handler 3,RxJava Asynchronous implementation with Java methods There are mainly two ways to implement asynchrony, inherit Thread class a ...

Posted on Thu, 12 Dec 2019 15:15:42 -0500 by james_creasy

Display and hide operation of Window corresponding to AlertDialg

Display and hide operation of Window corresponding to AlertDialg I. The concept of Window II. Working mechanism 2.1 display AlertDialg 2.2 hide AlertDialg I. The concept of Window Window represents the concept of a window. All views in Android are presented through window. It is the direct manager of View. Window is an ...

Posted on Thu, 12 Dec 2019 13:38:58 -0500 by dpluth

Vue < sharing >

Today, I'd like to share a tip that will teach you how to use vue to share in one minute. H5 can't directly call the mobile app and realize the sharing function. If you want to customize the shared content, you must call the sharing interface of wechat in the browser embedded in wechat (QQ browser needs to call its relevant api, and so do other ...

Posted on Thu, 12 Dec 2019 12:32:10 -0500 by paulchen

[Android Development - smart home series]: mobile phone connection WIFI module

[Android Development - smart home series] (III): mobile phone connection WIFI module   Summary A tool class will be used to connect WIFI. The source code can be downloaded by clicking the link. The code in these similar tool classes on the Internet is almost the same. There are two main ways to connect the wireless networ ...

Posted on Thu, 12 Dec 2019 11:57:50 -0500 by jaypotter

Show novice guide mask through transparent Activity

The previous article introduced how to deal with the mask layer through Dialog details However, there are still limitations when using it. Because dialog needs to be attached to a specific Activity to pop up the display. After the attached Activity is finished, the dialog will disappear. For some specific requirements, when the ...

Posted on Thu, 12 Dec 2019 10:51:03 -0500 by JeremyMorgan

Glide4.x load app Icon

Loading an app icon is very simple: ApplicationInfo applicationInfo = packageManager.getApplicationInfo(pkgName.getPkg(), 0); Drawable drawable = applicationInfo.loadIcon(packageManager) It's just a time-consuming process to load the application icon. You need to open a sub thread to load it. Previously, you either used the t ...

Posted on Thu, 12 Dec 2019 09:55:08 -0500 by ayj

Picture upload that thing

Front-end pictures upload those things This article talks about picture upload, mainly for the upload of avatars.As you all know, upload avatars are generally divided into the following four steps: Select Picture->Preview Picture->Clip Picture->Upload Picture Next, the implementation of each step is described in detail. Select Pict ...

Posted on Wed, 11 Dec 2019 21:45:06 -0500 by aleph_x

HTML+Javascript making puzzle game details

Last we talked about the basic layout of the web page. Next, we will bring you specific implementation methods. Make a square table and change its size as shown in the figure. Imagine if we cut a picture into six pieces and put them in the corresponding positions, and then we scramble them, so that we can do the puzzle. However, it's not diffi ...

Posted on Wed, 11 Dec 2019 14:35:26 -0500 by parboy

Resolve the conflict between Android ultra pull to refresh and ViewPager

Because PtrFrameLayout does not judge the event interception in dispatchOnTouchEvent, it will be difficult to turn pages if the internal content contains viewpager. Many articles on the Internet have not been resolved, and many of them are bug gy. Today, we see the conflict resolution method between SwipeRefreshLayout and viewp ...

Posted on Wed, 11 Dec 2019 12:18:11 -0500 by abcdx

App Shortcuts: long press icon to display shortcut

Article directory App Shortcuts Using Shortcut Dynamic use Static use App Shortcuts App Shortcuts is a new feature launched on Android 7.1, which can pop up a shortcut by clicking the icon on the Launcher: Using Shortcut There are two forms of using App Shortcuts. Similar to broadcast, there are dynamic registration a ...

Posted on Wed, 11 Dec 2019 11:30:53 -0500 by hastishah