I officially refused, this is not the case when the old API is a combination of the following two problems:
There is no java.awt package in Android, but the custom andrioid.awt is one. I tried to edit the jar files belonging to the bouncycastle to adapt to this, but to no avail.
Api does not seem to match at all. Each time I approached email signing and sent it, I would encounter a nosuchfieldexception or nosuchmethodexception runtime error when one api was looking for something in another api.
In the end, I just gave up trying to do it for free and found a site called Chilkat, which has a perfectly working API with a 30-day trial from the first code run.
Their android api are here: Chilkat for Android
The reason I do this is for everyone who has experienced so much blood and sweat over it, because I need to know that there is hope, even if you have to pay for it ...
source share