Category Archives: Programming

Android Studio – using photo camera.

This tutorial is a good example how to use photo camera with Android Studio. Start the default project named BitCam and change this files: The BitCam.java file:

The activity_bit_cam.xml file:

The result is a android application with a button. When you press the button the photo camera start.

Android Studio – using SensorEventListener.

This tutorial is about programming android hardware sensors service: TYPE_ACCELEROMETER. You can start by using last version of Android Studio version 3.1.1 with the default project Empty Activity. Is very simple to use accelerometer with Android Studio by read the values and show us into the text view area. The SensorEventListener is used to read… Read More »

Go – about errors .

The golang come with a fair amount of functions end up returning errors like values. The golang errors functions looking like this:

You can use the errors package and that implements functions to manipulate errors. The official golang example:

You can see how is created the new custom errors using the New function:… Read More »