Android thread learning - asynchronous message processing 1
Handler asynchronous message processing mechanism
Asynchronous Message processing in Android mainly consists of four parts: Message, Handler, MessageQueue and Looper.
Message: responsible for inter thread message delivery
Handler: used to send and receive information
MessageQueue: the queue used to store messages. Each thre ...
Posted by hedge on Sat, 21 Dec 2019 10:06:39 -0800
3. Data transfer between Android based activities
Zero, preface
Open the frontactivity, open the ToActivity through the button to return the result, and at the same time add the data to the intent,
Fill TextView with data in onCreate method of ToActivity.
Press the return button to pass the ToActivity data to FromActivity, verify the returned result in onActivityResult metho ...
Posted by Deany on Sat, 21 Dec 2019 09:23:21 -0800
Comprehensive practice of Appium id location -- automatic login (postgraduate entrance examination help)
Integrated practice of id location -- automatic login
Test scenario
1. Start the App and enter the login interface
2. Enter the user name "self study network 2018" and password "zxw2018" on the login page and click login.
requirement analysis
1. The modules that detect and upgrade the pop-up window and the gu ...
Posted by bucko on Fri, 20 Dec 2019 08:34:50 -0800
android custom star rating control can only display solid stars
Not much, above
Recently, the app needs to make a level display. I look at the UI chart and only show the real stars (lit stars). As shown in the figure below
But most of the online examples of star rating are like this
Show the stars of modesty
By customizing View
package com.starsbar;
import android.content.Context;
import a ...
Posted by tarlejh on Fri, 20 Dec 2019 07:55:15 -0800
Android basic controls (3)
10.ScrollView
When the content to be displayed on the interface is larger than one screen, we will use scroll view or subclass of scroll view.
ScrollView can only scroll up and down.
However, HorizontalScrollView can only slide left and right.
However, there can only be one view in the scrolling view, so it is common to place m ...
Posted by mw-dnb on Thu, 19 Dec 2019 13:49:52 -0800
Realize page Jump - Intent
Intent can be understood as a messenger (intention), which cooperates to complete the communication between Android components.
Intent to realize page Jump
1. Jump from page A to page B directly: startActivity(intent)
2. Start page B directly, and cut page B to return data to A: startActivityForResult(intent,requestCode),
U ...
Posted by thetechgeek on Thu, 19 Dec 2019 11:16:08 -0800
Android Studio learn to write English dictation app (music player) I
Recently, I fell in love with Android APP. I read some data and wrote while learning. It's just a hobby to pass the time. The tool is Android studio 3.0.1. In order to be lazy, I'm going to write a dictation APP for my children. The idea is to download the audio resource package from APP to SD card at that time. The APP plays an ...
Posted by gerardg on Thu, 19 Dec 2019 09:05:50 -0800
[android learning notes] fuzzy search for ORM Lite learning like
[Objective] to achieve fuzzy search of multiple fields in the table.
[method] ORM Lite like
Method: like(columnName,pattern) uses the% wildcard to match, specifies the row data, and returns the matching result
Usage demonstration: mDao.queryBuilder().where().like("LastName", "A%").query(); match the LastN ...
Posted by sungpeng on Thu, 19 Dec 2019 08:58:38 -0800
4-AI--Activity jump animation
Zero, preface
1. Open RedActivity and click the screen to enter BlueActivity. At this time, RedActivity moves out to the left and BlueActivity moves in to the left
2. Click the back button, BlueActivity moves out right and RedActivity moves in right
Default jump mode:
Effect of this case:
1, Test class
1. Red Activ ...
Posted by jaylee on Thu, 19 Dec 2019 07:14:00 -0800
Gradle for android profile
preface
Create a new project directly under Android Studio and you can use it!
I. Gradle settings file
settings.gradle is used to indicate which modules Gradle should include when building an application. Only app module is included here
include ':app'
II. Top level construction documents
Look at build.gradle of the project under ...
Posted by flash gordon on Wed, 18 Dec 2019 11:01:47 -0800