Extension
io.mohamed.ApplicationMetaData.aix (5.5 KB)
Source Code
package io.mohamed.ApplicationMetaData;
import android.content.Context;
import android.util.Log;
import
com.google.appinventor.components.annotation
s.androidmanifest.MetaDataElement;
import
com.google.appinventor.components.annotation
s.*;
import
com.google.appinventor.components.runtime.*;
import
com.google.appinventor.components.common.Com
ponentCategory;
@UsesApplicationMetadata(metaDataElements =
{@MetaDataElement(name =
"android.webkit.WebView.EnableSafeBrowsing",
value="true")})
@DesignerComponent(version = 1, description
= "This Extension adds a meta data tag to
the manifest.<br> Created By: Mohamed
Tamer",
category =
ComponentCategory.EXTENSION,
nonVisible = true, iconName =
"Myicon")
@SimpleObject(external = true)
public class ApplicationMetaData extends
AndroidNonvisibleComponent {
private ComponentContainer container;
public ApplicationMetaData
(ComponentContainer container) {
super(container.$form());
this.container = container;
}
}
Apk
With kodular : ApplicationMetaData (5).apk (5.2 MB)
With Appinventor:
ApplicationMetaData (6).apk (3.3 MB)
If you tried to decompile both APKs you will find out the difference
However, as I said before, I’m not sure if kodukar supports UsesApplucationMetadata
annotation