Android review 09 [content provider, music player]

catalog PersonCp PersonCp.java insert() ContentObserver music player 1. Add read-write permission 1.1. Dynamic permission granting (calling encapsulated methods) 2. Get music files( MainActivity.java ) 2, Music.java (entity class) Apply for access to SD card Set adapter Drop down refresh PersonCp PersonCp.java package cn.wang ...

Posted by jack_indigo on Sun, 31 May 2020 06:46:28 +0200

Using WindowManager to add View -- the basic principle of floating window

Although there are many types of "windows" in Android system, only two types are often used: one is managed by system process, which is called "system window"; the other is generated by application program, which is used to display UI interface. If you are familiar with window manager service (WMS), everything is very simple ...

Posted by c0le on Sat, 30 May 2020 02:18:58 +0200

Getting Started with Android Reverse Cracking

Preface A little bit of Android Reverse was done the year before, but it hasn't been done for a long time. Recently, a buddy asked me to help him do a subtitle about Android Reverse, so pick up the knowledge of Android Reverse and start over. This apk is a very simple, entry-level Android Reverse Analysis program, so this article is main ...

Posted by manyamile on Sat, 23 May 2020 06:55:43 +0200

Self made certificate of Android HTTPS realizes bidirectional authentication (OkHttp + Retrofit + Rxjava)

Due to a high security project to be done recently, it needs to use HTTPS for two-way authentication. When designing the project architecture, the client uses MVVM architecture, and realizes Android based on DataBinding + Retrofit + Rxjava. Looking up a lot of data, there are many examples of implementing two-way authentication based on native ...

Posted by okyejr on Thu, 21 May 2020 06:36:59 +0200

Android Serial 12 - Perfect news app content area

1. Write a class here to start an activity by first loading the news_we just created in the onCreateView() methodContent_The frag layout, which is unexplained, goes on to provide a refresh() method for displaying news titles and content on the interface.As you can see, here you get the title and content control of the news by the findViewById() ...

Posted by muthuraj_mr on Wed, 20 May 2020 19:19:36 +0200

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