To set the defaults in the firebase remoteconfig we need to use for example a xml with the content...
Asume that the file is placed in res/xml/ and it is named remoteconfigdefaults.xml
it contains:
How do i get the id of the xml to use it in the wrapper?
/**
* Sets defaults in the default namespace,
* using an XML resource.
* @param resourceId
*/
public void setDefaults (String resource){
BA.Log("Calling SetDefaults... "+resource);
int resourceId=BA.applicationContext.getResources().getIdentifier(resource, "string", BA.packageName);
BA.Log("resourceID="+resourceId);
getObject().setDefaults(resourceId);
}
i tried it with
int resourceId=BA.applicationContext.getResources().getIdentifier(resource, "string", BA.packageName);
with
int resourceId=BA.applicationContext.getResources().getIdentifier(resource, "xml", BA.packageName);
and i tried it with remoteconfigdefaults and remoteconfigdefaults.xml as string in the methodcall.
All does not work and results in a resourceId of 0
How do i get the id of an xml resource? Where do i need to place the xml?