[Android] How to edit/override MainActivity.java

  1. Create a “templates” folder (or similar)
  2. Add <template path="to/your/templates/folder" /> to your project.xml (with the absolute or relative path to your new folder)
  3. Mirror the Lime template directory structure up to and including the file/directory you would like to override
  4. (In this case) You should duplicate the following file into your own “templates/android/MainActivity.java” file:
    https://github.com/haxelime/lime/blob/develop/templates/android/MainActivity.javahttps://github.com/haxelime/lime/blob/develop/templates/android/MainActivity.java
3 Likes