I've been reviewing the official documentation for adding the EmojiCompa library here https://developer.android.com/guide/topics/ui/look-and-feel/emoji-compat . It has this code:
public class MyApplication extends Application {
@Override
public void onCreate() {
super.onCreate();
FontRequest fontRequest = new FontRequest(
"com.example.fontprovider",
"com.example",
"emoji compat Font Query",
CERTIFICATES);
EmojiCompat.Config config = new FontRequestEmojiCompatConfig(this, fontRequest);
EmojiCompat.init(config);
}
}
but it doesn't have any information on where/how to retrieve CERTIFICATES. I checked the font request section and wasn't able to find anything there either.
EDIT: To clarify, I see this:
<?xml version="1.0" encoding="utf-8"?>
<resources>
<string-array name="certs">
<item>MIIEqDCCA5CgAwIBAgIJA071MA0GCSqGSIb3DQEBBAUAMIGUMQsww...</item>
</string-array>
</resources>
But do not see any information on where MIIEqDCCA5CgAwIBAgIJA071MA0GCSqGSIb3DQEBBAUAMIGUMQsww... is retrieved, especially with regards to EmojiCompat.
You can add certificates via Android Studio
MaterialButtonCode tab to DesignAll attributes open it and click on fontFamily attribute dropdownMore Fontsfont_certs.xml in your values folderIf you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With