I would like, in an Android application where is the best place to place the following piece of code:
static {
Security.insertProviderAt(new org.spongycastle.jce.provider.BouncyCastleProvider(), 1);
// Security.addProvider(new BouncyCastleProvider());
}
Some guys do it in a subclass of Application
, but I really don't want to subclass Application
.
Thanks in advance.