in transitione: (Latin) something in the very act of transitioning itself.

Create a spinning cube with OpenGL ES and Android

Posted by on 30 Apr, 2011 in Android, Programming | 0 comments

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 More

Grabbing a video using MediaRecorder

Posted by on 30 Apr, 2011 in Android, Programming | 5 comments

Grabbing 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 More

Play a video on Youtube using an Intent

Posted by on 30 Apr, 2011 in Android, Programming | 0 comments

Play a video on Youtube using an Intent

For this demo to work the user needs the Youtube application installed on his device.

Read More

Taking a picture with android.media.Camera

Posted by on 30 Apr, 2011 in Android, Programming | 0 comments

Taking 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 More

Playing an audio file with Android

Posted by on 30 Apr, 2011 in Android, Programming | 0 comments

Playing 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

Posted by on 28 Jan, 2009 in Programming | 5 comments

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 More

Not so easy: updating a Python dictionary

Posted by on 23 Jan, 2009 in Programming | 0 comments

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