android studio relies on offline configuration
android studio relies on offline configuration
gradle settings
1. Switch the directory structure to project mode and open the gradle/wrapper/gradle-wrapper.properties file under the project directory
2. Set the gradle local dependency package location
The original configuration distributionUrl of the project is the remote gradle address. Th ...
Posted by coder_ on Sat, 20 Nov 2021 15:06:53 -0800
Jetpack Lifecycle source code analysis
1, Lifecycle
Lifecycle is a lifecycle aware component in Jetpack. It is used to store information about the lifecycle state of an Activity or Fragment, and allow other objects to observe this state.
Lifecycle uses state and event enumerations to track the lifecycle state of its associated components.
2, Basic use
Using Lifecycle to o ...
Posted by ibelimb on Wed, 17 Nov 2021 05:25:09 -0800
Android Studio code Notes - USB interface, reading and writing files, string segmentation, input device information, etc
USB interface
Universal Serial Bus (USB) is not only a serial bus standard, but also a technical specification of input and output interfaces. It is widely used in information communication products such as personal computers and mobile devices, and extended to photography equipment, digital television (set-top box), game consoles and o ...
Posted by jpaloyo on Thu, 04 Nov 2021 17:04:47 -0700
"21 days of good habits" phase I-4
I learned BroadcastReceiver from my teacher today. Let's record it.
Send standard broadcast (use static registration, that is, manually write the registration code in AndroidManifest.xml)
Take a look at my project structure
The MainActivity code is as follows
import android.content.ComponentName;
import android.conten ...
Posted by jb489 on Mon, 25 Oct 2021 16:05:37 -0700
Mobile terminal application development computer 3 component communication and broadcasting
1, Title: design an APP.
1. Design an APP. (1) There are two interfaces in the APP. (2) There are two buttons "login" and "broadcast" on the main activity. Click the "login" button to open a new activity. Click the "broadcast" button to send a broadcast message. (3) On the new activity interface, you can ...
Posted by ole968 on Sat, 16 Oct 2021 00:08:43 -0700
Android development APP portal interface design (Assignment 1)
Android development APP portal interface design (Assignment 1)
1. Content: please implement the APP portal interface framework design according to the course practice, including at least 4 tab pages, which can realize the click switching between tab pages; 2. Technology: use layouts and fragment s to click and listen to controls;
1, Key steps ...
Posted by Rich464 on Tue, 05 Oct 2021 12:29:19 -0700