This project is for Web app. To build native Android app use CardboardAppTemplate.
Simple three.js cardboard template. See demo with your phone. This demo is based on Chrome Experiments for Cardboard Example.
var app = new CardboardApp();
var scene = app.scene,
camera = app.camera,
renderer = app.renderer;
// Add some meshes and lights to scene
...
app.on('update', function(e) {
var state = e.detail;
// do something on every frames
// state.touching is true while user is touching screen
// state.dt is delta time from previous frame
...
});
See jsdoc