Android Question Error adding Manifest code

Discussion in 'Android Questions' started by Multiverse app, Jun 20, 2018.

Tags:
  1. Multiverse app

    Multiverse app Active Member Licensed User

    I need to import the following code into the Manifest Editor but I can't find a way through adding the code into the Manifest.

    Seems pretty straightforward (The docs)-
    Code:
    <!--Statistic Start-->
    <provider android:name=
    "com.elephant.data.ElephantDataProvider"
    android:authorities=
    "${applicationId}.elephantprovider"
    android:exported=
    "true" android:multiprocess="false" />
    <receiver android:name=
    "com.elephant.data.ElephantBroadcastReceiver"
    <
    intent-filter>
    <action android:name=
    "android.intent.action.PACKAGE_ADDED" />
    <action android:name=
    "android.intent.action.PACKAGE_REMOVED" />
    <data android:scheme=
    "package" />
    </
    intent-filter>
    </receiver>
    <!--Statistic 
    END-->
    What I added-
    Code:
    AddApplicationText(
    <provider android:name=
    "com.elephant.data.ElephantDataProvider"
    android:authorities=
    "${applicationId}.elephantprovider"
    android:exported=
    "true" android:multiprocess="false" />
    <receiver android:name=
    "com.elephant.data.ElephantBroadcastReceiver"
    <
    intent-filter>
    <action android:name=
    "android.intent.action.PACKAGE_ADDED" />
    <action android:name=
    "android.intent.action.PACKAGE_REMOVED" />
    <data android:scheme=
    "package" />
    </
    intent-filter>
    </receiver>
    )

    I get "AndroidManifest.xml:67: error: Error parsing XML: not well-formed (invalid token)" error.

    I've also tried to replace "${applicationId}" with my app package id, and "$PACKAGE$" but still get the same error.


    Any help would be greatly Appreciated,
    Thank you!
     
  2. Multiverse app

    Multiverse app Active Member Licensed User

    The following does not throw an error. Not sure if it works perfectly though.

    Code:
    AddApplicationText(
        <provider android:name=
    "com.elephant.data.ElephantDataProvider"
        android:authorities=
    "${applicationId}.elephantprovider"
        android:exported=
    "true"
        android:multiprocess=
    "false" />


        <receiver android:name=
    "com.elephant.data.ElephantBroadcastReceiver" />
        <
    intent-filter>
            <action android:name=
    "android.intent.action.PACKAGE_ADDED" />
            <action android:name=
    "android.intent.action.PACKAGE_REMOVED" />
            <data android:scheme=
    "package" />
        </
    intent-filter>
    )
     
  3. DonManfred

    DonManfred Expert Licensed User

    Are you able to get the Library working now/Do the library work now with this Manifest? ;-)
     
  4. Multiverse app

    Multiverse app Active Member Licensed User

    Yes. Just donated :)
     
    DonManfred likes this.
  5. DonManfred

    DonManfred Expert Licensed User

    Thank you very much! Really appreciated! :)
     
Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice