I’m using the following code fragment to retrieve the AddressList:
ScwService.ScwGetAddressListCallback callback =
new ScwService.ScwGetAddressListCallback() {
@Override
public void onSuccess(List<String> addressList) {
}
@Override
public void onFailure(int errorCode, String errorMessage) {
//handle errors
}
};
String hdPath = ScwService.getHdPath(ScwCoinType.ETH, 0);
ArrayList<String> hdPathList = new ArrayList<>();
hdPathList.add(hdPath);
ScwService.getInstance().getAddressList(callback, hdPathList);
What do I write inside the onSuccess and onFailure methods? I tried printing the values of ‘addressList’ and ‘errorMessage’ but the app won’t install in that case!
Please help me resolve this issue.