My code is here:
public static boolean showConfirmationDialog(Context context, String title, String dialogContent) {
AlertDialog.Builder builder = ne
The onClick
paradigm doesn't let you return values, it lets you respond to "events" later, so you'll have to rethink your code paradigm a bit.
For followers, in the event that the inner class is "blocking" (i.e. not this case), you can return values using AtomicReference, ex:
AtomicReference returnValue = new AtomicReference<>();
someMethod( new Runnable() { returnValue.set("my inner class value");} );
return returnValue.get();
though better would be (if possible) have someMethod modified so it can return your value out itself (and use something besides Runnable in this instance). GL!