final Context context = this; AccountData.sCloverAccount = CloverAccount.getAccount(context); new AsyncTask<Void, Void, Void>() { @Override protected Void doInBackground( Void... voids ) { try { MerchantConnector merchantConnector = new MerchantConnector(context, AccountData.sCloverAccount, null); merchantConnector.connect(); Log.d("", merchantConnector.getMerchant().getId()); } catch (Exception e) { e.printStackTrace(); } return null; } }.execute().get();Any ideas?
Thanks