Erel,
The AddApplicationText is duplicating the Services, look my example:
I have a service called : ListenTrigger (Used by Google Glass to receive the Vocal Command after "OK GLASS"
but when I put the code with AddApplicationText in Manifest Editor, when I compile the source code, the service is duplicating in androidmanifest.xml, take a look:
In Green, is the code I put with AddApplicationText
In Red, is the code the B4A put automatically.
Question: have any command to IGNORE this automatically creation? Or another way to do this correctly?
<application
android:icon="@drawable/icon"
android:label="Glass Photo">
<service android:name=".listentrigger">
android:enabled="true"
android:exported="true">
<intent-filter>
<action android:name="com.google.android.glass.action.VOICE_TRIGGER" />
</intent-filter>
<meta-data
android:name="com.google.android.glass.VoiceTrigger"
android:resource="@xml/voice_trigger_start" />
</service>
<receiver android:name=".listentrigger$listentrigger_BR">
<intent-filter>
<action android:name="android.intent.action.BOOT_COMPLETED"/>
</intent-filter>
<intent-filter><action android:name="com.google.android.glass.action.VOICE_TRIGGER" /></intent-filter>
</receiver>
<activity
android:windowSoftInputMode="stateHidden"
android:launchMode="singleTop"
android:name=".main"
android:label="Glass Photo"
android:screenOrientation="unspecified">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<service android:name=".listentrigger">
</service>
<receiver android:name=".listentrigger$listentrigger_BR">
</receiver>
<service android:name=".recognizerservice">
</service>
<receiver android:name=".recognizerservice$recognizerservice_BR">
</receiver>
</application>