Baidu map development - draw point line prompt box 07

The last tweet briefly introduced the interaction with maps, such as moving, zooming, clicking, screenshots and other functions, which are very common businesses. Next, let's learn how to dot, mark information, draw lines and surfaces on the map. Mark points, draw lines, faces, and add prompt information In fact, the function of drawing point ...

Posted by NoobPHP on Wed, 13 Oct 2021 02:01:04 +0200

Interpreting the event distribution mechanism of View in Android

Sequence of event distribution Activity->Window->DecorView->ViewGroup->View Type of event ACTION_DOWN,ACTION_MOVE,ACTION_UP,ACTION_CANCEL Usually an event sequence is such an action_ The down event is the starting point of an event, followed by multiple actions_ Down event, followed by ACTION_DOWN, an action may be received in th ...

Posted by tony_l on Tue, 12 Oct 2021 22:08:20 +0200

PowerManager Service Analysis-updatePowerStateLocked Method

1.2. Detailed updatePowerStateLocked method Next, as discussed above, at the end of the systemReady() method, the updatePowerStateLocked() method is called: public void systemReady(IAppOpsService appOps) {synchronized (mLock) { mSystemReady = true; ........ mDirty |= DIRTY_BATTERY_STATE; updatePowerStateLocked(); } UpdatePow ...

Posted by MnM333 on Sun, 10 Oct 2021 18:29:09 +0200

Teach you how to use Hongmeng HarmonyOS to realize wechat chat interface

brief introduction          This series of articles records the author's learning experience in learning HarmonyOS mobile application development in the first month of his junior year. This article is the project of wechat chat interface, which has several functions 1. Chat information function, includi ...

Posted by menios on Sun, 10 Oct 2021 12:23:02 +0200

Android small window mode, use of picture in picture (PIP)

1. Introduction The picture in picture mode was introduced in Android 8.0, which allows the Activity to be zoomed out and displayed above other activities. At the beginning, the project I maintained realized this function by itself. After Android joined picture in picture, the two functions were parallel and had a lot of problems when interacti ...

Posted by scrypted on Sun, 10 Oct 2021 10:52:47 +0200

Message mechanism analysis of MediaPlayer

1, Introduction: First post a log: 08-18 21:57:20.110 11775 11812 V MediaPlayer: resetDrmState: mDrmInfo=null mDrmProvisioningThread=null mPrepareDrmInProgress=false mActiveDrmScheme=false 08-18 21:57:20.110 11775 11775 E MediaPlayerNative: error (-38, 0) 08-18 21:57:20.110 3206 3206 D MTK_KL : 4,60541,9379664038,-;[MI_AUDIO_Stop:8901][307 ...

Posted by alexweb on Fri, 08 Oct 2021 20:56:12 +0200

Multi touch Android custom controls

preface In the previous blog, we made a picture view that can move with our fingers. It can only support single finger control. If we touch with multiple fingers, it will be all right. We want the effect There are three types of multi touch ① : baton type or preemptive type ② : Collaborative ③ : non-interference type 1, Baton type or ...

Posted by paradigmapc on Thu, 07 Oct 2021 00:05:47 +0200

Android uses java and the simplest animation to write a login registration implementation (simple version)

2021.10.4 simple login and registration, with its own database and simple animation interface.           Recently, learning Android java mobile development requires a login and registration interface. I don't have much time to write a simple version. Get to the point: Ps: you can enter the animation without adding it ...

Posted by Digital Wallfare on Mon, 04 Oct 2021 00:52:04 +0200

Android generates National Day avatars

effect   thinking At first, I wanted to cover the picture with a picture of the national flag, and then adjust the transparency of the picture of the national flag. But the effect is not very good.      Above is a picture of the national flag covered with and two-thirds of the effect. It's not clear enough to cover the head. It's ...

Posted by seoreferrals on Wed, 29 Sep 2021 06:26:16 +0200

Analyze the installation process API29 for APP

First summarize the installation process and the more important classes PackageInstallerActivity.java: This class is invoked when an apk is clicked in the file manager, primarily to display some permission information for the apk to be installed. InstallAppProgress.java: When you have finished viewing all the permissions, the class is cal ...

Posted by 2705ap on Tue, 28 Sep 2021 19:27:06 +0200