Android
-
Detailed explanation of the use of Android selector background selector
In the development of applications, the background of listview or button controls should be designed in many cases. Th…… -
In Android, the post request transfers JSON data to the server instance
In a recent project, a requirement is as follows: Input parameters are encapsulated into JSON, example: The content is…… -
Android applications keep waking up in the background (implemented using wakelock)
When using some product columns, such as wechat and QQ, if there is a new message, the mobile phone screen will light …… -
Android implementation notification bar download update app example
1. Design idea: use versioncode as the version upgrade parameter. Android provides us with two attributes for defining…… -
Examples of correct reference to AAR in Android studio library module
Today, connect to an SDK monitored by Haikang. The SDK is provided in the form of AAR, and the module I need to use fo…… -
Implementation of listview like function in Android
Recently, I've been watching Android and using listview to realize the like function. Here's the basic idea. Basic ide…… -
Usage Summary of selector based on Android background
2. Method 2: drawable drawable = getresources(). Getdrawable (r.drawable. XXX); ListView.setSelector(drawable); Howeve…… -
Android determines whether the network is available and whether the connected network can access the Internet
Network status acquisition To upload and download, you need to check the network status of the current mobile phone an…… -
Android screen brightness adjustment implementation code
When adjusting the screen brightness, first set the current activity brightness, and then save it as the system bright…… -
Android programming method for setting and opening WiFi hotspot sharing for others to connect
This paper describes the method of setting up and opening WiFi hotspot sharing for others to connect through Android p…… -
Android table icon library production
A chart lib has been written before, but it is difficult to keep up with the pace of product demand changes due to the…… -
Explain Android runtime permissions and app adaptation methods in detail
Since Android 6.0, Android has strengthened permission management and introduced the concept of runtime permission. Fo…… -
Application example of multi table query in Android room database
Android room database (Introduction) preface In SQLite database, we can specify the relationship between objects, so w…… -
Android programming method for obtaining the WiFi name of the current connection
This example describes the method of Android programming to obtain the WiFi name of the current connection. Share with…… -
Android statusbar transparency method (adapted to different versions)
Full adaptation of transparent status bar The status bar specifies where the phone status information is displayed at …… -
Android implements widget clock sample sharing
1、 Configure widgets in the androidmanifest.xml file: 2、 Create an XML directory under the res directory of the proj…… -
Method of dynamically switching component background for Android
The function of the program described in this paper is to dynamically select component background, system skin, custom…… -
Android captures system exceptions and uploads logs
When doing projects, we often throw out the error utilization exceptions, so that we can check the errors through the …… -
Httpurlconnection and okhttp are two methods to obtain network data
Cut the crap and go straight to the code. Easy to understand. The XML is as follows: Activities are as follows: Note: …… -
Design pattern based on Android — detailed explanation of the strategy pattern of SDK source code
In fact, the strategy model is very simple (do you feel relaxed when you hear this sentence?). For example, sorting, t…… -
Android uses jQuery to realize the special effects of item clicking to show or hide
This article introduces an example of Android using jQuery to realize the special effects of item clicking, displaying…… -
An example of building a general crawler framework based on vert. X and rxjava 2
Recently, because the business needs to monitor some data, although there are many excellent crawler frameworks on the…… -
Android programming is a method to judge whether an application has a certain permission
This paper describes the method of Android programming to judge whether an application has a certain permission. Share…… -
Android imitation Netease client top navigation bar effect
Recently, I just wrote an animation effect of the navigation bar on the home page of Netease client. Now I share it fo…… -
Android 5.0 new control instance details
Google launched some new controls while launching Android 5.0. The following five new controls are most commonly used …… -
Two methods for Android to judge whether the current application is in the foreground or background
1. Judged by runningtaskinfo class (additional permission required): You need to add the following permissions in the …… -
Ionic monitors the Android return key to realize the “press again to exit” function
Apps on Android platform often encounter the function of "press again to exit the app" on the main page, so as to avoi…… -
Method of simple image crawler based on rxjava2
Since October this year, I have tried to import some pictures to tensorflow to generate models, which requires a large…… -
Implementation method of drawing board for Android custom view
Look at the effect: the small control above the middle drawing board is used to display the graphics drawn in real tim…… -
Android custom view pictures move and rotate by path
This example shares the specific code of Android custom view image rotating according to path motion for your referenc…… -
Android listview automatically generates instances of list entries
activity_ The code of the list.xml file is as follows: The listactivity.java file code is as follows: The above exampl…… -
Let ijkplayer support the method of inserting custom GPU filter
Recently, due to work reasons, we need to provide an example of inserting our aiyaeffects SDK into ijkplayer, so we ha……