Use of SurfaceView for Android Custom Camera (6.0 Permission Request)

Preface There has been no update since I was preparing to jump.However, from this month on, I will continue to record some pits I encountered in android development or write interesting articles.I hope you continue to pay attention to it.Okay, get to the point. Summary This time I started to get to know something about Camera, so I decided to ...

Posted on Sat, 13 Jul 2019 09:17:40 -0700 by CSB

Fast Implementation of FaceU-like Sticker Function: AiyaEffects Project Seeks Star

Since Faceu's popular circle of friends last year, QQ has added the function of dynamic stickers to photography and video chat, the girls'photography is not satisfied with the processing of images such as face-thinning, skin-polishing and big eyes. So a mobile camera software that can't be sold with cat's ears is embarrassed to say that it's a ...

Posted on Tue, 25 Jun 2019 12:03:31 -0700 by genom

Android Camera's Way to Explore: Start

Android Camera's Way to Explore: Start Camera plays an important role in mobile phones. Whether it is two-dimensional code or photo recognition, it can not be separated from the camera. In this paper, Camera in Android will be comprehensively analyzed. Authorization Town Building: <uses-permission android:name="android.permission.CAMERA"/ ...

Posted on Sun, 23 Jun 2019 11:14:06 -0700 by kwstephenchan

Android Camera Foundation

1. Request camera permissions If photography is a necessary feature of your app, you should make it visible only to devices with cameras in Google Play.To let users know that our apps depend on cameras, add tags to the anifest Manifest file: <manifest ... > <uses-feature android:name="android.hardware.camera" ...

Posted on Sun, 19 May 2019 02:05:13 -0700 by Xpheyel

How java gracefully stops a native Thread thread

Recently because of the use of frame animation in the project.As we all know, frame animation is very resource-intensive, and it is easy to OOM once more pictures are involved. To solve this problem, a custom SurfaceView is used, in which bitmap s are drawn frame by frame using subthreads.Because the list of pictures this Surfa ...

Posted on Fri, 10 May 2019 08:56:10 -0700 by dmb

Android Day 14 Multimedia Learning Notes

day14 Android Multimedia 1. Image Processing in Android 1.1 Loading Excessive Resolution Pictures and OOM Abnormalities 1.1.1 OOM Cause - Memory Overflow: OOM memory overflow errors occur when the resolution of the loaded image is too high. This is because the maximum memory application limit for Android vm is 16M. When we process pictu ...

Posted on Thu, 28 Mar 2019 03:24:28 -0700 by Potatis

ijkplayer uses

Here's a brief introduction to the use of ijkplayer ijkplayer yes b Station based FFmpeg Open source player, ijkplayer Provided a IjkMediaPlayer´╝îFunction and usage MediaPlayer Similar, but much stronger Official website Github I. ijkplayer 1. Create a new Android project and add the following code to dependencies under ...

Posted on Tue, 29 Jan 2019 02:51:14 -0800 by gdhanasekar

Media-Media Player_Audio& Media Player_Video of ApiDemos Learning Knowledge Points

The demo project loads audio from local file paths and resource raw files. And examples of loading videos from different paths. Let's look at some of the audio loading code for MediaPlayer_Audio public class MediaPlayerDemo_Audio extends Activity { private static final String TAG = "MediaPlayerDemo"; private MediaPlayer mMediaPlayer; pri ...

Posted on Tue, 18 Dec 2018 06:39:04 -0800 by scotmcc

Play Android Camera Development (2): Preview Camera Basic Photo demo with TextureView and Surface Texture

Google has launched TextureView since Android 4.0. Why? In order to make up for the shortcomings of Surface View, and on the other hand, to balance GlSurface View, of course, this is my guess. The relationship between TextureView, Surfaceview, SurfaceTexture and GLSurfaceView will be specially analyzed after we launch GLSurface ...

Posted on Sun, 16 Dec 2018 09:27:04 -0800 by greencoin