Hello, I’ve been trying to access the Keystore SDK in my application for transaction purposes.
I’m using the following code fragment to get the supported coins in the wallet:
int[] supportedCoins = ScwService.getInstance().getSupportedCoins();
StringBuilder sb = new StringBuilder();
sb.append("Supported coins").append('\n');
for (int i = 0; i < supportedCoins.length; i++ ) {
sb.append('[').append(i).append("] ").append(supportedCoins[i]).append('\n');
}
String s = sb.toString();
This code is available here. The applications crashes when I use this code. Please help me understand what could be the reason behind this. Is there a particular way that should be followed to use this function or is it anything else?