Skip to content

Instantly share code, notes, and snippets.

@kjw0723
kjw0723 / CardboardRenderer.java
Created January 20, 2017 06:25
CardboardRenderer class for drawing webRTC android video stream
public class CardboardRenderer implements CardboardView.StereoRenderer {
private static final String TAG = "CardboardRenderer";
private static CardboardRenderer instance = null;
private CardboardView surface;
private static EGLContext eglContext = null;
private Context mContext = null;
@riggaroo
riggaroo / AndroidManifest.xml
Created April 13, 2016 17:31
Custom Android Espresso Test Runner - Unlocking a Device, Granting Permission to turn animations off, turning the Screen on.
<?xml version="1.0" encoding="utf-8"?>
<!-- Put this file in the "debug" folder so it only gets merged into debug builds -->
<manifest
xmlns:android="http://schemas.android.com/apk/res/android"
package="org.bookdash.android">
<uses-permission android:name="android.permission.DISABLE_KEYGUARD"/>
<uses-permission android:name="android.permission.WAKE_LOCK"/>
<!-- Disable animations on debug builds so that the animations do not interfere with Espresso