title: Amplify Android - The client issued a subsequent call to `Amplify.configure` after the first had already succeeded
body: <p>I created a function to upload an image to AWS S3 bucket. The function is
  called when a button is pressed. This works for first instance after a new
  Gradle build. But when I try to call the function again, I get the following
  error:</p>
  
  <pre><code>E/StorageQuickstart: The client issued a subsequent call to `Amplify.configure`
  after the first had already succeeded.
  </code></pre>
  
  <pre class="lang-java prettyprint-override"><code>btnSubmit.setOnClickListener(new View.OnClickListener() {
      @Override
      public void onClick(View v) {
          // Upload to AWS S3
          File imageFile = new File(imgFilePath);
          uploadImage(imageFile.getName(), imgFilePath);
          finish();
      }
  });
  </code></pre>
  
  <p>Function:</p>
  
  <pre class="lang-java prettyprint-override"><code>// AWS Amplify
  private void uploadImage(String imageName, String imageAbsolutePath) {
      // Amplify Initialize
      AWSMobileClient.getInstance().initialize(getApplicationContext(), new Callback&lt;UserStateDetails&gt;() {
          @Override
          public void onResult(UserStateDetails userStateDetails) {
              try {
                  Amplify.addPlugin(new AWSS3StoragePlugin());
                  Amplify.configure(getApplicationContext());
                  Log.i("StorageQuickstart", "Amplify Initialized");
                  Amplify.Storage.uploadFile(
                      imageName,
                      imageAbsolutePath,
                      new ResultListener&lt;StorageUploadFileResult&gt;() {
                          @Override
                          public void onResult(StorageUploadFileResult result) {
                              Log.i("StorageQuickStart", "Successfully uploaded: " + result.getKey());
                              Log.i("ImageURL", getS3ObjectUrl(imageName));
                          }
  
                          @Override
                          public void onError(Throwable error) {
                              Log.e("StorageQuickstart", "Upload error.", error);
                          }
                      }
                  );
              } catch (Exception e) {
                  Log.e("StorageQuickstart", e.getMessage());
              }
          }
  
          @Override
          public void onError(Exception e) {
              Log.e("StorageQuickstart", "Initialization error.", e);
          }
      });
  }
  </code></pre>