In my research i wanna to build an android NDK source code that capture the image with mobile camera, and convert the image to binary data..where Red and blue color was used for detecting change of light. It converted the change of light to binary code by detecting the strength of light, setting it to '1' if exceeding the strength of default color, and to '0' if there is no change. The converted binary was sent to Java code in Android Application.