Create a spinning cube with OpenGL ES and Android
Android supports 3D graphics via the OpenGL ES API, a flavor of OpenGL specifically designed for embedded devices.
This article is not an OpenGL tutorial, it assumes the reader has already basic OpenGL knowledge.
The final result will look like this:
Read MoreGrabbing a video using MediaRecorder
The MediaRecorder is normally used to perform audio and/or video recording. The class has a straightforward API but as it’s based on a simple state machine the methods must be called in the proper order in order to avoid IllegalStateException from popping up.
Create a new Activity and override the onCreate method with the following:
Read MorePlay a video on Youtube using an Intent
For this demo to work the user needs the Youtube application installed on his device.
Read MoreTaking a picture with android.media.Camera
Sometimes you may want more control over the stages involved when taking a picture or you may want to access and modify the raw image data acquired by the camera. In these cases, using a simple Intent to take a picture is not enough.
We’re going to create a new Activity and customize the view to make it full screen inside the onCreate method.
Read MorePlaying an audio file with Android
Playing an audio file is as easy as setting up a MediaPlayer and a MediaController.
First create a new activity that implements the MediaPlayerControl interface.
public class PlayAudioActivity extends Activity implements MediaPlayerControl {
private MediaController mMediaController;
private MediaPlayer mMediaPlayer;
private Handler mHandler = new Handler();
Read More
PyQT playground: image gallery with zoom
In this article I’m going to create a small PyQT based application that displays images in a grid and that zoom the image hovered by the mouse.
Read MoreNot so easy: updating a Python dictionary
Here’s a problem that looks very easy but that it took me more time than I thought to solve.
Consider the following function prototype:
def updateDictValue(dictionary, keyPath, newValue)
dictionary is a normal Python dict, keyPath is a string referring to a key inside dictionary and newValue is the new value which should be put at the key correspondent to keyPath.
Read More

