- Home /
Merging 2 AndroidManifest.xml's
Hi there,
I'm attempting to integrate Inneractive ads into my app using the Inneractive unity plugin. The sample project runs fine, however, when I try to integrate it into my app the ads don't show, I believe this is due to my AndroidManifest.xml.
If I use the one from the Inneractive demo scene the app crashes upon launch and closes immediately on the phone...
Using my current AndroidManifest.xml the app runs fine but no ads are displayed, probably because I haven't got Inneractive's stuff in there, I don't think it's possible to simply have 2 XML files at a time? My current AndroidManifest.xml looks like this: {
}
Inneractive's AndroidManifest.xml is as follows:
{
<activity android:name=".InneractivePluginActivity"
android:label="@string/app_name"
android:configChanges="keyboardHidden|orientation">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
</application>
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.READ_PHONE_STATE" />
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />
}
Is it possible to merge the two together? I have absolutely no experience with xml.
Apologies for the long post and thanks in advance for any help :)
Mike.
/Edit - Doesn't seem to let me post my own androidmanifest.xml, perhaps it's too long?
Has anyone else had issues integrating Inneractive into unity?
Thanks.
Answer by SONIC3D · Dec 09, 2012 at 11:22 AM
In the first line of your inneractive manifest there is the "android:name" start with dot. It will be combined with your package name. So your sample app runs ok but your real project crashes. You should use full package name instead of using the relative representation started with dot.For example:use com.inneractive.example.InneractivePluginActivity