So the app I'm building has to use a specific library. Unfortunately this library uses bouncycastle in it. As is known this will not work with Android. Are there any ways to get around this? I was suggested to build a service layer to interact with the library SDK but I have no idea where to begin or what that really is.
Using Java SDK in Android app
135 Views Asked by Adrian Le Roy Devezin At
2
There are 2 best solutions below
3
Synx
On
If the library comes in a packed .jar file you can import it to your Android project by right clicking on the project > Properties > Java Build Path > Libraries tab and pressing the Add external JAR button
This is valid for Eclipse, there way to do it on Android Studio might be different.
This post may also solve your issue: BouncyCastle on Android
Related Questions in ANDROID
- Creating global Class holder
- Flutter + Dart: Editing name of a tab shows up a black screen
- android-pdf-viewer Received status code 401 from server: Unauthorized
- Sdk 34 WRITE_EXTERNAL_STORAGE not working
- ussd reader in Recket Native module
- Incorrect display of LinearGradientBrush in IOS
- The Binary Version Of its metadata is 1.8.0, expected Version is 1.6.0 build error
- I can't make TextInput to auto expand properly in Android
- Creating multiple instances of a class with different initializing values in Flutter
- How to create a lottie animation
- making android analyze with coverity sast tool
- Flutter plugin development android src not opening after opening example
- I initialize my ViewModel in the Activity with several fragments as tabs, but the fragments(tabs) return null for the updated livedata
- Node.js Server + Socket.IO + Android Mobile Applicatoin XHR Polling Error...?
- How I can use the shared preferences class?
Related Questions in SDK
- DirectX 9 With No SDK Installed - How To Translate a D3DMATRIX?
- Error "_IframeMessenger_get Target Origin is not defined" when starting the project. Autodesk Forma SDK
- `android` Does Not Exist in `~/Android/Sdk/platform-tools`
- -> Requested enabled DevSupportManager, but DevSupportManagerImpl class was not found
- Anyone know of javascript library to dynamically create mappings?
- Short time token with the Graph API and Facebook login through the iOS SDK
- I cannot install the dotnet-sdk-8.0.203-win-x64 version
- Im using mapbox sdk navigation v2 and have a problem with the cycling view
- Azure App Configuration - Replica for 429 HTTP responses
- Connected device (the doctor check crashed)
- Cannot find protocol declaration for 'TransactionHandlerDelegate'" (Swift/MAUI Interop)
- Flutter SDK: Files Deleted Automatically (e.g., dart.exe), Errors in Android Studio
- Mac Sonoma 14.4 Dotnet 8.0.203 SDK webapi https error
- No SDK on Intellij IDEA with jdk17 Installed
- Autodesk RCP, RCS files reading
Related Questions in BOUNCYCASTLE
- SMIME with BouncyCastle and MultiPart with Files
- PACE PIN Generic Mapping implementation in c#
- java Caused by: javax.net.ssl.SSLProtocolException: Cannot decode named group: x25519
- Which certificate to use with Aspose for digital signatures
- BouncyCastle 'Premature end of stream in PartialInputStream' decrypting CSV
- How to remove Subject Public Key Info in bouncy castle for CSR
- java.net.SocketException: Connection reset (AWS and Bouncy Castle)
- "NoClassDefFoundError: org.bouncycastle.operator.OperatorCreationException when running Java code"
- The package org is not accessible when importing org.bouncycastle
- Passing from JCE to Bouncy Castle (Blowfish)
- Output to the PGP encryption logic is incorrect
- Export PKCS#8 from an EC PrivateKey
- How to decrypt with Bouncy Castle a private key encrypted with CKM_AES_GCM on a HSM?
- Delay in DTLS handshake between Bouncy Castle client and Chrome
- IssuerSerial Matching in Pades Signature with IText 8.0.3
Related Questions in SPONGYCASTLE
- Why ECDSA verification fails in Android using Spongy Castle?
- Sign data in PKCS#7 format using SpongyCastle
- Validating PKCS#7 detached signature on Android using BouncyCastle [NoSuchAlgorithmException: no such algorithm: 1.2.840.113549.1.1.11]
- Determining attributes of flutter encrypt.dart
- Generate 33 bytes public key for curve25519 in python
- Generating CSR using Android KeyStore keys
- How to fix or avoid "RSA engine faulty decryption/signing detected" error when signing in java
- Need basic encryption understanding from existing Android code
- seeds.txt and usage.txt not generated for Proguard with Android Studio release build
- I have got below security alert from play store
- Timestamp request with OkHttp
- How to add AttCertValidityPeriod to PKCS10CertificationRequest CSR and retrieve it back from CSR?
- Android Q bouncy castle issue
- JSCEP-Wrong 3rd argument type. Found: 'org.spongycastle.pkcs.PKCS10CertificationRequest', required: 'org.bouncycastle.pkcs.PKCS10CertificationRequest'
- java.security.NoSuchAlgorithmException: no such algorithm: ECDSA for provider BC
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular # Hahtags
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
I ended up finding and modifying the source code of the SDK to implement spongycastle