Skip to content
This repository has been archived by the owner on Dec 26, 2018. It is now read-only.
yuya edited this page Feb 22, 2016 · 23 revisions

How to use

Add repository URL to build.gradle.

repositories {
    maven { url = 'http://ejeinc.github.io/Meganekko/repository' }
}

Add dependency to build.gradle.

dependencies {
    compile 'com.eje_c:meganekko:2.0.0'
}

Add permission to AndroidManifest.xml.

<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />

Add some attributes to AndroidManifest.xml

<application
    android:allowBackup="true"
    android:icon="@mipmap/ic_launcher"
    android:label="@string/app_name"
    android:theme="@android:style/Theme.Black.NoTitleBar.Fullscreen">

    <!-- Required meta data -->
    <meta-data
        android:name="com.samsung.android.vr.application.mode"
        android:value="vr_only" />

    <!-- Preferred configuration -->
    <activity
        android:name=".MainActivity"
        android:configChanges="orientation|screenSize|keyboard|keyboardHidden"
        android:excludeFromRecents="true"
        android:label="@string/app_name"
        android:launchMode="singleTask"
        android:screenOrientation="landscape">

        <!-- This intent filter should be removed when submit to Oculus Store -->
        <intent-filter>
            <action android:name="android.intent.action.MAIN" />
            <category android:name="android.intent.category.LAUNCHER" />
        </intent-filter>
    </activity>
</application>
Clone this wiki locally