How to correctly introduce so file into Android studio

How to introduce the third-party so file? However, the third-party official only gives the integration mode in ADT environment. Android studio uses gradle compiling mode by default, which is different from ADT editing mode, so how should so files be introduced? It's very simple. Here, take the integrated JPUSH as an example to see how the ...

Posted by jgh84 on Fri, 15 May 2020 18:09:41 +0200

Binder implementation of Camera

api call Get CameraManager object CameraManager mCameraManager = (CameraManager) context.getSystemService(Context.CAMERA_SERVICE); openCamera mCameraManager.openCamera(cameraId, callback, handler); The openCameraDeviceUserAsync method in CameraManager is called private CameraDevice ...

Posted by kkobashi on Sat, 09 May 2020 17:05:58 +0200

Android can turn off and on the screen through broadcasting

method: PowerManager pm = (PowerManager)getSystemService(Context.POWER_SERVICE); /* PARTIAL_WAKE_LOCK:Keep the CPU running and the screen and keyboard lights may be off. SCREEN_DIM_WAKE_LOCK: Keep CPU running, allow to keep screen display but possibly gray, allow to turn off keyboard light SCREEN_BRIGHT_WAKE_LOCK: Kee ...

Posted by djetaine on Fri, 08 May 2020 17:59:12 +0200

Android Jetpack Architecture - Paging custom pull-up loading more

Jetpack series Android Jetpack architecture component - Lifecycle usage Android Jetpack architecture component - LiveData usage The use and principle of ViewModel, an architecture component of Android Jetpack Android Jetpack architecture component - Paging introduction and Practice Android Jetpack architecture component - Roo ...

Posted by ganlal on Wed, 06 May 2020 06:04:28 +0200

RxJava2 for andorid jar/library source parsing

Catalog: andorid jar/library source code parsing  RxJava2: Role: Optimize logical processes by providing an architecture that provides a model for observers and subscribers.Suitable for complex and multi-data conversion and long processes. Chestnuts: Define three object classes public class ResultInfo { public int code; public String ...

Posted by qteks200 on Wed, 06 May 2020 00:37:28 +0200

Android Project Actual Series - Based on the Learned Valley Exercise Module

Please be patient to read this module because of its large content and length. Exercise module is divided into two parts [x] Exercise List Interface [x] Exercise details interface 1. Exercise List Interface 1. Exercise Interface (1) Create exercise interface In the res/layout folder, create a new layout file named main_view_exercises. ...

Posted by sheraz on Tue, 05 May 2020 23:18:23 +0200

Android drawing mechanism and processing skills

1 unit conversion Due to the different screen density, the length of the same pixel size and the length displayed on the screen with different density are different. The following is the conversion formula of each density value, In mdpi, 1dp = 1px, In hdpi, 1dp = 1.5px, In xhdpi, 1dp = 2px, In the xxhdpi, 1dp = 3px ...

Posted by nite4000 on Mon, 04 May 2020 23:57:40 +0200

Using jQuery mobiscrol plug-in to select date, select and treeList

Mobiscrol is a very useful plug-in for mobile terminal sliding selection. It can be used to select dates, simple options or some complex tree structure options. Simple sharing. The dependency is also relatively simple, just introduce a mobiscrol-2.13.2.full.min.js file and a mobiscrol-2.13.2.full.min.css file. Download directly mobiscrol ...

Posted by travelbuff on Mon, 04 May 2020 23:24:12 +0200

Android uses WeChat, Alipay and qq wallet H5 to pay.

There was a project before Android using webview to load the contents of the web page, and then adding the original function of APP. This project has the integration of WeChat, Alipay, qq wallet and other H5 payment methods. Recently, the content of the payment version has been upgraded on the webpage side, resulting in ...

Posted by fotofx on Mon, 04 May 2020 21:35:36 +0200

Android exception capture

Android exception capture and write text Application scenario The developed software application inevitably has various problems in the actual scene, but the developers can't debug in real time on the spot, and the remote can't present the scene, so that It can't solve this problem. The best solution is to integrate Tencent's mobile anal ...

Posted by .Darkman on Mon, 04 May 2020 19:04:05 +0200