Class VisualFetcher


  • public class VisualFetcher
    extends android.os.AsyncTask<java.lang.String,​java.lang.Void,​android.graphics.Bitmap>
    Fetches QRCode's visual representation and profile pictures from DiceBear (https://www.dicebear.com) License: MIT

    Art Styles Used:

    • Botts Neutral by Pablo Stanley (https://twitter.com/pablostanley) (License: Free for personal/commercial use)
    • Identicon by Florian Körner (contact@florian-koerner.com) (License: CC BY)

    API Call Code was adapted from: Source: https://stackoverflow.com/questions/24399294/android-asynctask-to-make-an-http-get-request By: Rishabh Dixit (https://stackoverflow.com/users/6940935/rishabh-dixit) (03/09/17) License: cc-wiki

    Source: https://www.digitalocean.com/community/tutorials/android-asynctask-example-tutorial By: Anupam Chugh (09/03/22) License: CC BY-NC-SA 4.0

    Source: https://stackoverflow.com/questions/62585357/how-to-print-read-image-from-rest-api-call-using-java By: abk (https://stackoverflow.com/users/3500996/abk) (03/24/21) Licsense: cc-wiki

    Again, all the code was by andy-mtng (Andy Nguyen's) but git blamed on jmmabanta who integrated his feature.

    • Nested Class Summary

      • Nested classes/interfaces inherited from class android.os.AsyncTask

        android.os.AsyncTask.Status
    • Field Summary

      • Fields inherited from class android.os.AsyncTask

        SERIAL_EXECUTOR, THREAD_POOL_EXECUTOR
    • Constructor Summary

      Constructors 
      Constructor Description
      VisualFetcher()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected android.graphics.Bitmap doInBackground​(java.lang.String... urls)  
      int getResponseCode()
      Retrieve the response code of the HTTP request
      • Methods inherited from class android.os.AsyncTask

        cancel, execute, execute, executeOnExecutor, get, get, getStatus, isCancelled, onCancelled, onCancelled, onPostExecute, onPreExecute, onProgressUpdate, publishProgress
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • VisualFetcher

        public VisualFetcher()
    • Method Detail

      • doInBackground

        protected android.graphics.Bitmap doInBackground​(java.lang.String... urls)
        Specified by:
        doInBackground in class android.os.AsyncTask<java.lang.String,​java.lang.Void,​android.graphics.Bitmap>
      • getResponseCode

        public int getResponseCode()
        Retrieve the response code of the HTTP request
        Returns:
        response code