Skip to content

Latest commit

 

History

History
24 lines (17 loc) · 594 Bytes

README.md

File metadata and controls

24 lines (17 loc) · 594 Bytes

Broadcast Intent Minimal Example for RICOH THETA

https://community.theta360.guide/t/simple-explanation-of-broadcast-intent-for-ricoh-theta-development/4201

Close Camera

To use the CameraAPI, you’ll need to close the main RICOH camera app.

    Intent closeCameraIntent = new Intent("com.theta360.ACTION_MAIN_CAMERA_CLOSE");
    sendBroadcast(closeCameraIntent);

Open Camera

@Override
protected void onPause() {
    super.onPause();

    Intent openCameraIntent = new Intent("com.theta360.plugin.ACTION_CAMERA_OPEN");
    sendBroadcast(openCameraIntent);
}