Android Context Check isThemeInstalled(Context c, String theme)

Here you can find the source of isThemeInstalled(Context c, String theme)

Description

is Theme Installed

Declaration

public static boolean isThemeInstalled(Context c, String theme) 

Method Source Code

//package com.java2s;

import android.content.Context;
import android.content.pm.PackageManager;

public class Main {
    public static boolean isThemeInstalled(Context c, String theme) {
        try {/*from ww  w .j a  v a 2s.c o  m*/
            c.getPackageManager().getPackageInfo(theme,
                    PackageManager.GET_ACTIVITIES);
            return true;
        } catch (Exception e) {
            return false;
        }
    }
}

Related

  1. isServiceRunning(Context ctx, String className)
  2. isServiceRunning(Context ctx, String className)
  3. isSystemApplication(Context context, String packageName)
  4. isTablet(Context ctx)
  5. isTablet(final Context context)
  6. isUpdateAvailable(Context paramContext, String paramString)
  7. isValidSigningKey(final Context context, final String certificateToCheckAgainst)
  8. isVoiceSearchServiceExist(Context context)