title: Android: How to check if string is Base64 encoded?
body: <p>I am not sure how to check if a String is Base64 encoded or not using <code>android.Base64</code>. I know in standard Java using <code>java.util.Base64</code> calling <code>Base64.getDecoder().decode()</code> would through an <code>IllegalArgumentException</code> if the String wasn't already in Base64, but on android I get no such error, so how can I check if it is Base64 encoded?</p>