public class

ResourceUtil

extends Object
java.lang.Object
   ↳ com.droidux.core.components.utils.ResourceUtil

Class Overview

Helper class to deal with resources.

Summary

Public Methods
static float convertDpToPx(Context context, float dp)
static String getAppStoreInstallerPackage(Context context)
static int getAppVersionCode(Context context)
static String getAppVersionName(Context context)
static Bitmap getBitmapFromAsset(Context context, String filename)
static boolean isAppInstalled(Context context, String appPackage)
static String readAssetFile(Context context, String filename)
static String readRawText(Context context, int rawResId)
[Expand]
Inherited Methods
From class java.lang.Object

Public Methods

public static float convertDpToPx (Context context, float dp)

Since: API Level 3.0

public static String getAppStoreInstallerPackage (Context context)

Since: API Level 3.0

public static int getAppVersionCode (Context context)

Since: API Level 3.0

public static String getAppVersionName (Context context)

Since: API Level 3.0

public static Bitmap getBitmapFromAsset (Context context, String filename)

Since: API Level 3.0

Throws
IOException

public static boolean isAppInstalled (Context context, String appPackage)

Since: API Level 3.0

public static String readAssetFile (Context context, String filename)

Since: API Level 3.0

Throws
IOException

public static String readRawText (Context context, int rawResId)

Since: API Level 3.0

Throws
IOException