Android Development: how ComposeUI solves the principle of layout nesting!

summaryBackground: too many layout levels and too nested layouts will lead to exponential growth in measurement time, which will eventually affect layout performance.Status quo: Compose does not have the above layout nesting problem, because it fundamentally solves the impact of layout level on layout performance.Solution principle: the Compose ...

Added by sciwaysoft on Tue, 14 Dec 2021 12:07:34 +0200

Sound in its environment, easy steps to teach you to turn audio into 3D surround sound

In the fields of music creation, audio and video editing and games, it is more and more important to bring immersive audio experience to users. How do developers create 3D surround sound effects in applications? Huawei audio editing service 6.2. Version 0 brings the spatial dynamic rendering function, which can render audio elements such as hum ...

Added by cleary1981 on Tue, 14 Dec 2021 11:47:33 +0200

Android Getting Started tutorial | Audio

Collect and play audio PCM data, read and write audio wav filesUse AudioRecord and AudioTrack to collect and play audio PCM data, and read and write audio wav filespreparationAndroid provides AudioRecord and MediaRecord. MediaRecord to select the recording format. AudioRecord obtains data in PCM coding format. AudioRecord can set relevant param ...

Added by pneudralics on Tue, 14 Dec 2021 10:22:13 +0200

[Android] Camera Framework layer analysis

The Camera application calls the Framework Camera class APIOpen the camera with the CameraUtil.open() method in the photomodule, videomodule and wideanglepanoramamodule classes of the native Camera2 application of Android Kitkat (packages/apps/Camera2 /). Then call the CameraHolder's open () method and the AndroidCameraManagerImpl's cameraOpen( ...

Added by bampot on Tue, 14 Dec 2021 10:11:09 +0200

Slow down ~ sort out the Activity startup process again

prefaceThe process of starting an activity is divided into two parts: one is to start an activity through the startactivity (intent) method in the activity; Second, we start an App by clicking the application icon on the desktop, and then display the activity; The second method is more comprehensive than the first method, so this paper will ana ...

Added by Retired Bill on Mon, 13 Dec 2021 16:52:53 +0200

Update, install, hide and unhide APK

1, The apk installed by the user has been updatedpublic void registerReceiver(Context context) { Slog.d("PMSdddd", "systemReady1"); IntentFilter filter = new IntentFilter(); filter.addAction(Intent.ACTION_PACKAGE_ADDED); filter.addAction(Intent.ACTION_PACKAGE_CHANGED); filter.addAction(Intent.ACTION_PACKA ...

Added by risi on Mon, 13 Dec 2021 06:17:17 +0200

Android -- Analysis of NUD detection mechanism of WiFi

Android -- Analysis of NUD detection mechanism of WiFi During this period, I encountered the problem of sudden disconnection after several WiFi connections. Finally, it was found that it was caused by Android's NUD detection mechanism. The underlying implementation of NUD(Neighbor Unreachable Detection) still relies on the kernel. The Android ...

Added by dfr574 on Mon, 13 Dec 2021 04:00:57 +0200

Android Performance Optimization: you must not ignore these rendering optimizations!

prefaceThis article mainly explains rendering optimization in Android performance optimizationOptimization principle of over drawingControl the number of over drawing as much as possible = less than 2 times (green), blue is the bestAvoid excessive Pink & Red painting as much as possibleMore than 3 times is not allowedOptimization schemeRemo ...

Added by Credo on Sun, 12 Dec 2021 09:26:44 +0200

SIMLock card locking function

1, Background introduction 1.1 INTRODUCTION The lock card is SIMLock. When the mobile phone is turned on or inserted into the SIM card, the configuration information preset in NV on the modem side of the mobile phone will be compared with the information in the SIM card to detect whether it matches. If it matches, the SIM card can be used nor ...

Added by koray on Sat, 11 Dec 2021 12:01:44 +0200

Compiling WebRTC under Linux (Linux and Android versions)

prefaceWith the influence of COVID-19, the demand for audio and video has explode in the past two years. In the field of audio and video, WebRTC can be said to be an inseparable treasure house, including the whole process of audio and video acquisition, encoding and decoding, transmission and rendering. This paper mainly records the whole proce ...

Added by wiegs on Sat, 11 Dec 2021 11:53:51 +0200