org.botlibre.sdk.activity.actions
Class HttpGetImageAction

java.lang.Object
  extended by android.os.AsyncTask<java.lang.Void,java.lang.Void,java.lang.String>
      extended by org.botlibre.sdk.activity.actions.HttpAction
          extended by org.botlibre.sdk.activity.actions.HttpGetImageAction
Direct Known Subclasses:
HttpGetVideoAction

public class HttpGetImageAction
extends HttpAction


Nested Class Summary
 
Nested classes/interfaces inherited from class android.os.AsyncTask
android.os.AsyncTask.Status
 
Field Summary
static boolean downloading
           
static int MAX_FILES
           
static int MAX_HEIGHT
           
static int MAX_WIDTH
           
 
Fields inherited from class android.os.AsyncTask
SERIAL_EXECUTOR, THREAD_POOL_EXECUTOR
 
Constructor Summary
HttpGetImageAction(android.app.Activity activity)
           
HttpGetImageAction(android.app.Activity activity, java.lang.String image, android.view.View view)
           
 
Method Summary
static void clearFileCache(android.content.Context context)
           
static void fetchImage(android.app.Activity activity, java.lang.String image, android.view.View view)
           
static java.io.File getFile(java.lang.String filename, android.content.Context context)
           
static java.io.File getFileCacheDir(android.content.Context context)
           
 
Methods inherited from class org.botlibre.sdk.activity.actions.HttpAction
getException, setException
 
Methods inherited from class android.os.AsyncTask
cancel, execute, execute, executeOnExecutor, get, get, getStatus, isCancelled
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MAX_HEIGHT

public static int MAX_HEIGHT

MAX_WIDTH

public static int MAX_WIDTH

MAX_FILES

public static int MAX_FILES

downloading

public static volatile boolean downloading
Constructor Detail

HttpGetImageAction

public HttpGetImageAction(android.app.Activity activity)

HttpGetImageAction

public HttpGetImageAction(android.app.Activity activity,
                          java.lang.String image,
                          android.view.View view)
Method Detail

clearFileCache

public static void clearFileCache(android.content.Context context)

getFileCacheDir

public static java.io.File getFileCacheDir(android.content.Context context)

getFile

public static java.io.File getFile(java.lang.String filename,
                                   android.content.Context context)

fetchImage

public static void fetchImage(android.app.Activity activity,
                              java.lang.String image,
                              android.view.View view)