Skip to content

Instantly share code, notes, and snippets.

@josefnpat
Last active January 4, 2016 07:49
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save josefnpat/8590695 to your computer and use it in GitHub Desktop.
Save josefnpat/8590695 to your computer and use it in GitHub Desktop.
love-android-sdl2 usage instructions for Arch Linux
@tangzero
Copy link

Very good! So many thanks for the initiative.

But I think that step where you rename all packages is not really necessary. And, based on the changes I'm making in the project, it can break the app.

Some JNI calls are based on the package where the GameActivity lives.

@tangzero
Copy link

The best way to do this:

  • Copy the GameActivity to, I don't know, BurgerActivity.
  • Make this BurgerActivity class inherit from GameActivity.
  • Move the BurgerActivity to wherever you want.
  • Change the android:name="GameActivity" to android:name="BurgerActivity" in your AndroidManifest.xml.

I know it's not so easy. But it's the secure way to do this.

@tangzero
Copy link

You can create a script to build the project asking for some params.

@josefnpat
Copy link
Author

@tangzero Thanks! I'll update this guide to reflect that asap!

@josefnpat
Copy link
Author

@tangzero

Can you give a working example of BurgerActivity.java that will be mostly futureproof? I'd very much like to implement what you want, but I have no familiarity with the codebase.

@josefnpat
Copy link
Author

@tangzero

Unfortuately I lost our convo on how to make a BurgerActivity.java. Hit me up, run me through it one more time, and I will update the bitbucket wiki page!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment