Android Register/Extend Application Class

August 20, 2018

Create Application class.

class LuaApp : Application() {
    override fun onCreate() {
        super.onCreate()      
    }
}

NOTE: You may extend MultiDexApplication if required.

Edit AndroidManifest.xml.

<manifest xmlns:android="http://schemas.android.com/apk/res/android"
    package="com.mycompany.myapp">
    <application
        android:name=".LuaApp" 
        ... >
        ...
    </application>
</manifest>
This work is licensed under a
Creative Commons Attribution-NonCommercial 4.0 International License.