Hello, i managed to merge two plugins who used the actions “android.intent.action.MAIN” and “android.intent.category.LAUNCHER” (that is the main conflict, you can have any number of activities but just only one with those two actions) so here is what i did.
The plugins i merged where Mobile Social Plugin and the Vuforia plugin.
I mailed the developer of the Mobile Social Plugin (wich i recommend) asking for advice, he told me that i should recompile the .jar file but include all other plugins there.
In the same package of the plguin there is a .zip called “ANEclipseProject.zip” where the entire Eclipse proyect was located.
I needed Eclipse so i downloaded Eclipse for Android from here AndroidSDK+Eclipse i created a new Eclipse proyect and added the files i got from the zip, then i added the .jar files of the Vuforia plugin (“QCARUnityPlayer.jar” and “Vuforia.jar” to be exact).
Now you have to find how its called the main script, to do this i looked in the manifest how it was called the Activity that wanted the actions MAIN and LAUNCHER, in the Mobile Social Plugin its called “AndroidNativeBridge” find that file in the proyect and open it.
Now you have to find how its named the other plugin activity that wants the actions MAIN and LAUNCHER, for example for vuforia its named “QCARPlayerNativeActivity”, what you should do now is extend the file you opened before (AndroidNativeBridge) to the class “QCARPlayerNativeActivity” (before this the file should be extending “UnityPlayerActivity”), dont forget to add the “import com.qualcomm.QCARUnityPlayer.QCARPlayerNativeActivity;” to the import list to be detected correctly. (the complete name can be seen on the manifest)
Then Eclipse automatically recompiles itself, you can find the .jar in the folder “bin” inside the Eclipse proyect with the name “androidnative.jar” and this file its what you need to overwrite in your proyect, find the file inside unity and replace it with your new .jar.
Now all you need to do is adjust the manifest to include all the activities and permissions of both of the plugins, and in the secondary plugin activities delete the lines where tries to use the actions MAIN and LAUNCHER.
So basically what you need is the Eclipse proyect of one of the plugins and include the jar files of the other plugins, extend the main activity to them and adjust the manifest to include all the atcivities.
Here is the links that was given to me where i got the information about merging the two plugins.
I hope this helps, you can ask me if you have any question, im not an expert but i will try to help.