Part I – handling multi-touch interface and motion sensor inputs
Now that we have introduced the basics of handling sensor inputs, we will develop an interactive, sensor-based data visualization tool. In addition to using motion sensors, we will introduce a multi-touch interface for user interaction. The following is a preview of the final application, integrating all the elements in this chapter:
In this section, we will focus solely on the Java side of the implementation and the native code will be described in part II. The following class diagram illustrates the various components of the Java code (part I) that provide the basic interface for user interaction on the mobile device and demonstrates how the native code (part II) completes the entire implementation:
How to do it…
First, we will create the core Java source files that are essential to an Android application. These files serve as a wrapper for our OpenGL ES 3.0 native code. The code structure is based on the gl3jni
package described...