public class

MediaUtil

extends Object
java.lang.Object
   ↳ com.c2call.sdk.pub.util.MediaUtil

Summary

Constants
String TMP_IMAGE
String TMP_IMAGE_CROP
String TMP_USER_IMAGE_CROP
Public Constructors
MediaUtil()
Public Methods
static Bitmap createLocationThumb(String key, int width, int height)
static Bitmap createThumb(Context context, String path, SCRichMessageType type, int width, int height)
static Bitmap createThumb(SimplePlace place, int width, int height)
static Bitmap createThumb(Location location, Address address, int width, int height)
static void deleteTemporaryFiles()
static String getLocalImagePath(Context context, Uri intentUri)
static String getLocalVideoPath(Context context, Uri uri)
static String getMediaPath(SCDownloadType type, String filename)
static String getMediaPath(SCDownloadType type, String filename, boolean ensureDirectoryExist)
static File getProfileMediaFile(String userid, String filename)
static String getSubFolder(SCDownloadType type)
synchronized static boolean isFileStored(Context context, String filePath)
static boolean isLocalFile(Uri uri)
static String movePictureToProfileFolder(String filename)
synchronized static Uri saveImageToMediaStore(Context context, String imagePath, String imageType, String title, String description, long dateTaken, int orientation, Location loc)
synchronized static Uri saveVideoToMediaStore(Context context, String imagePath, String imageType, String title, String description, long dateTaken, int orientation, Location loc)
[Expand]
Inherited Methods
From class java.lang.Object

Constants

public static final String TMP_IMAGE

Constant Value: ".c2call_tmp_picture.png"

public static final String TMP_IMAGE_CROP

Constant Value: ".c2call_tmp_picture_crop.png"

public static final String TMP_USER_IMAGE_CROP

Constant Value: ".c2call_tmp_user_picture_crop.png"

Public Constructors

public MediaUtil ()

Public Methods

public static Bitmap createLocationThumb (String key, int width, int height)

public static Bitmap createThumb (Context context, String path, SCRichMessageType type, int width, int height)

public static Bitmap createThumb (SimplePlace place, int width, int height)

public static Bitmap createThumb (Location location, Address address, int width, int height)

public static void deleteTemporaryFiles ()

public static String getLocalImagePath (Context context, Uri intentUri)

Throws
FileNotFoundException

public static String getLocalVideoPath (Context context, Uri uri)

public static String getMediaPath (SCDownloadType type, String filename)

public static String getMediaPath (SCDownloadType type, String filename, boolean ensureDirectoryExist)

public static File getProfileMediaFile (String userid, String filename)

public static String getSubFolder (SCDownloadType type)

public static synchronized boolean isFileStored (Context context, String filePath)

public static boolean isLocalFile (Uri uri)

public static String movePictureToProfileFolder (String filename)

public static synchronized Uri saveImageToMediaStore (Context context, String imagePath, String imageType, String title, String description, long dateTaken, int orientation, Location loc)

public static synchronized Uri saveVideoToMediaStore (Context context, String imagePath, String imageType, String title, String description, long dateTaken, int orientation, Location loc)