The android image viewer onDraw bitmap tutorial describes how to display the image bitmap in the custom image view using the onDraw method. To get the bitmap from the calling activity we will be passing the bitmap’s Uri to the custom image view and then loading it from there. Once we have the bitmap we […]

Read more

The android image viewer custom view onMeasure tutorial describes how to set the size of your image view. If your image view settings have been done in the layout xml file then your height will have been defined. This size could either be MATCH_PARENT, WRAP_CONTENT or a specific size. In our sample we have set […]

Read more

The android video app enabling record button tutorial describes the how to create an on click listener for the ImageButton view. And then how to change the image to a red icon for recording and then back to a green icon to indicate that recording is available. Get Code The code to start this tutorial is […]

Read more

The android image viewer zoom animation tutorial describes the steps of how to add animations to an image view when zooming from a thumbnail to full screen image. Get Code The code can be found on github from the following instructions below https://github.com/mobapptuts/android_image_viewer.git Tag image-viewer-thumb-animation or you can run this command git clone https://github.com/mobapptuts/android_image_viewer.git –branch image-viewer-thumb-animation […]

Read more

The android video app starting preview display tutorial describes the steps involved to get the preview screen running on the android camera2 video app. Get Code The code to start this tutorial is on github here https://github.com/mobapptuts/android_camera2_api_video_app.git Tag camera2-video-preview-display or you can run this command git clone https://github.com/mobapptuts/android_camera2_api_video_app.git –branch camera2-video-preview-display Steps Create the CameraRequest Builder member private CaptureRequest.Builder mCaptureRequestBuilder; […]

Read more

The android video app connect camera device tutorial describes how to make a connection to the device’s camera. Patch for Manifest.permission.CAMERA issus For those of you who have been having an issue with the Manifest.permission.CAMERA a patch is provided containing the fix. I’ve provided the patch at github here . And it just needs to be saved to […]

Read more

The android image viewer create custom image view tutorial describes how to create your own ImageView based on the View class. The reason for creating a custom view class is because of the flexibility offered in a custom class of this type. For example for pinch zoom on a image a number of gestures will […]

Read more

The android video app setting preview size tutorial describes how to select the preview dimensions from the values provided from the android camera2 api StreamConfigurationMap. Get Code The code to start this tutorial is on github here https://github.com/mobapptuts/android_camera2_api_video_app.git Tag camera2-video-preview-size or you can run this command git https://github.com/mobapptuts/android_camera2_api_video_app.git clone –branch camera2-video-preview-size Steps Create a method for comparing […]

Read more

The android video app preview orientation tutorial describes how to adjust the TextureView width & height dimensions so that they can be compared against the values supplied from the camera sensor. Get Code The code to start this tutorial is on github here https://github.com/mobapptuts/android_camera2_api_video_app.git Tag camera2-video-preview-orientation or you can run this command git clone https://github.com/mobapptuts/android_camera2_api_video_app.git –branch camera2-video-preview-orientation Steps […]

Read more

The android image viewer adding long click press tutorial is the sixth part to the android image viewer tutorial series. This is a continuation of the android image view series where we will now be adding more advanced features to the android image viewer. The first feature we will be focusing on is pinch zoom. To make […]

Read more