Android Road 36 - Android network operation
Guide reading
1. Basic knowledge of network operation
2. Basic knowledge of JSON
3. Request data and analysis from the server
Basic knowledge of network operation
Basic knowledge of JSON
A bracket represents a collection, and a curly bracket represents an object
Request data from server and parse
JSON me ...
Added by rIkLuNd on Sun, 03 May 2020 03:18:50 +0300
android realizes the function of manual signature after consumption of UnionPay card machine
A few days ago, I went to the property management office to pay the property fee. The property management staff said that the community introduced high-tech products. After using the bank card for consumption, I didn't need to sign on the UnionPay machine with a pen. I directly touched with my finger to sign the consumption. At that time, I tho ...
Added by steviewdr on Sat, 02 May 2020 12:26:48 +0300
Notes for Android Beginners (2): the simplest code for mobile phone vibration
Beginners are most likely to be confused by the code when they first touch the code, so they should give the minimum generation of core code for beginners, first make clear the core code, and then expand the knowledge, so that the learning effect will be better.
There are a lot of codes on the Internet, which make begi ...
Added by my800stuff on Sat, 02 May 2020 06:25:55 +0300
Several implementation methods of Android text vertical scrolling and vertical horse riding lamp
Method 1: use the system control ViewFlipper mode:
Layout file:
<ViewFlipper
android:id="@+id/view_flipper"
android:layout_width="300dp"
android:layout_height="35dp"
android:layout_centerInParent="true"
android:autoStart="true"
android:background="@drawable/warning_bg"
android: ...
Added by DarkSuperHero on Fri, 01 May 2020 19:56:52 +0300
Android learning notes - wake up your APP through the webpage and pass the reference
Preface
I believe that we will find that many web pages have such functions in our life. One second ago, we were still on the web page, and one second later, we inexplicably entered their APP. So how does this effect work?
After careful study, I found that android:scheme attribute is used to complete the function. Here's my personal opinion. ...
Added by designguy79 on Fri, 01 May 2020 02:44:39 +0300
Java Web Learning Notes - mybatis-07-dao development and use (mapper agent development)
Need to write mapper interface (equivalent to dao interface)
mapper.xml mapping file needs to be written
mybatis can automatically generate proxy objects of mapper interface implementation classes
Development specification
1. namespace in mapper.xml is equal to the address of mapper interface
2. The method name in the mapper.java interfac ...
Added by Zomie on Fri, 01 May 2020 01:27:37 +0300
Using PhotoView to view pictures
The project needs to realize the function of picture viewing. Using ImageView can't scale, using the system's picture viewer can't meet their own customized needs, so I used Viewpager + PhotoView to realize it.
Introducing PhotoView
Github link for PhotoView , PhotoView is designed to help developers easily scale Android ImageView.
1. Conf ...
Added by yanisdon on Thu, 30 Apr 2020 17:22:01 +0300
Awesome, the asynchronous processing mechanism of Servlet3
Servlet3 has been released for several years. How many people know its new features? Here is a brief introduction.
The following features are mainly added:
1. Asynchronous processing support
2. Pluggability support
3. Annotation support, zero configuration, no need to configure web.xml
...
What the hell is asynchronous processing?
Operate the k ...
Added by JamieWAstin on Wed, 29 Apr 2020 19:20:32 +0300
A good paging plug-in of Mybatis com.github.pagehelper
1. Need to import the jar package of PageHelper
If maven is not used, just import the jar package into the lib folder. The PageHelper plug-in has open source on github,
Address: https://github.com/pagehelper/Mybatis-PageHelper/tree/master/src/main/java/com/github/pagehelper.
If maven is used, the plug-in can be introduced in pom.xml as fol ...
Added by Arnerd on Wed, 29 Apr 2020 18:57:15 +0300
Getting started with Java Web listener
monitor
Catalog
OnlineCountListener.java
package com.huangdekai.JavaWeb.listener;
import javax.servlet.ServletContext;
import javax.servlet.http.HttpSessionEvent;
import javax.servlet.http.HttpSessionListener;
/**
* @Autord: HuangDekai
* @Date: 2020/4/28 22:41
* @Version: 1.0
* @since: jdk11
*/
public class OnlineCountListener imple ...
Added by vin_akleh on Wed, 29 Apr 2020 18:08:47 +0300