【发布时间】:2025-11-22 21:05:01
【问题描述】:
我想,在 Android 应用程序中,哪里是放置以下代码的最佳位置:
static {
Security.insertProviderAt(new org.spongycastle.jce.provider.BouncyCastleProvider(), 1);
// Security.addProvider(new BouncyCastleProvider());
}
有些人在Application 的子类中这样做,但我真的不想继承Application。
提前致谢。
【问题讨论】:
标签: android bouncycastle spongycastle