- Home /
correct approach for using e.g. three android plugins
I would like to know, what would be the correct approach for using e.g. three or more android plugins inside one project.
My first plugin has an AndroidManifest:
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.company.configurator">
<application android:icon="@drawable/app_icon" android:label="@string/app_name">
<activity android:name=".MyAndroidActivity"
android:label="@string/app_name"
android:configChanges="fontScale|keyboard|keyboardHidden|locale|mnc|mcc|navigation|orientation|screenLayout|screenSize|smallestScreenSize|uiMode|touchscreen">
<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.CAMERA" />
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<uses-feature android:name="android.hardware.camera" android:required="false" />
<uses-feature android:name="android.hardware.camera.autofocus" android:required="false" />
</manifest>
The second plugin, would like to integrate the ARToolkit, comes also with its own AndroidManifest.xml. So let's assume we have a third plugin also with its own AndroidManifest.xml and also has:
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
So is there a general approach how to use several Plugins in Android? So far I've seen only kind of advices to merge the AndroidManifest files, or someone siad: "no need to subclass main activity, nor include a single AndroidManifest.xml at all. Android plugins can be wrapped in Fragment
classes as well (kind of sub-activities)." But what is the correct way of working with multiple plugins for android?
I'm not an android developer, I've got one android plugin running and would like to use the ARToolkit and later one other plugin, so it should be kind of extensible. So can anybody help me out with a general approach for using multiple plugins please?
Your answer
Follow this Question
Related Questions
How do I make an Android plugin for unity? 0 Answers
Android Multi-Plugins 0 Answers
How to fix lost data with android 1 Answer