- Home /
Android plugin to extend UnityPlayerActivity but not use Unity project's package name
Hi folks, I'm having a tough time with this. I've successfully created plugins that do not extend UnityPlayerActivity without a hitch, but extending is troublesome. I have an SDK I want to integrate that needs to initialize in an onCreate method. I want to make this plugin generic so that I don't have to change it for every project. All of the examples I can find seem to require that you use the same package name in the plugin as you would use in the Unity project. Every attempt I've made to change this leads to a Class Not Found Exception as it appears Unity is replacing the plugin's package name with the Unity project bundle identifier.
So I'm lost... Does anyone have an Eclipse project that is a plugin which is meant to be packaged into a jar and it extends UnityPlayerActivity AND it works with using its own package name instead of the Unity project package name?
Alternatively is there a better way to do this such as creating a custom activity so that it won't conflict with other plugins that extend UnityPlayerActivity?
Thanks!!
Your answer
Follow this Question
Related Questions
How to write a java lib for unity as a plugin to make run another android app? 1 Answer
Android plugin & Activity help needed - "GetMethodID method not found" problems 0 Answers
Now that Unity 4.1.2 broke the Android plugin examples, what do you use to learn them? 1 Answer
Help building changes to .java file included in Unity supplied package. 1 Answer