Android learning (20)SurfaceView
SurfaceView plays an important role in game development. It has more freedom to control the screen.
Properties of SurfaceView:
It can draw to the screen in the thread other than the main thread, which can avoid the main thread blocking when the drawing task is heavy, thus impro ...
Posted on Tue, 31 Dec 2019 16:21:21 -0800 by maliskoleather
First, when we use Surface View to develop small games, if we need to draw buttons and interactive objects on the form, then we need to monitor the multi-touch screen, and every touch change needs to interact with the game. How to achieve this?
Posted on Mon, 09 Sep 2019 03:06:07 -0700 by fareedreg
MediaPlayer can play video and audio, and it supports playback of local and network files.This article is about using MediaPlayer to play local videos. If you find it difficult to use MediaPlayer, you can also choose VideoView to play videos.
The Mai ...
Posted on Wed, 04 Sep 2019 21:06:08 -0700 by ashmo
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.
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
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
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
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 ... >
Posted on Sun, 19 May 2019 02:05:13 -0700 by Xpheyel
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
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
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
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