This J2ME code sample shows how to take a camera snapshot and apply the texture on a rotating cube. The example MIDlet also shows you how to use six different textures, one for each face on the cube.
Download Java code sample – combine snapshot functionality with JSR-184 (16.6 KB)