List of usage examples for android.content Context getPackageName
public abstract String getPackageName();
From source file:Main.java
/** Intent action for reloading the JS */ public static String getReloadAppAction(Context context) { return context.getPackageName() + RELOAD_APP_ACTION_SUFFIX; }
From source file:Main.java
public static String getAppPackageName(Context context) { return context.getPackageName(); }
From source file:Main.java
public static String getIntentPrefix(Context context) { return context.getPackageName(); }
From source file:Main.java
public static boolean isFree(Context ctx) { return ctx.getPackageName().contains("free"); }
From source file:Main.java
private static String getAppPackage(Context context) { return context.getPackageName(); }
From source file:Main.java
public static String getPackageName(Context context) { String packageName = context.getPackageName(); return packageName; }
From source file:Main.java
private static String getPackageName(Context context) { String packageName = context.getPackageName(); return packageName; }
From source file:Main.java
public static boolean isInMainProcess(Context pContext) { return pContext.getPackageName().equalsIgnoreCase(getCurrentProcessName(pContext)); }
From source file:Main.java
public static String getAppPackage(Context context) { String packageName = context.getPackageName(); return packageName; }
From source file:Main.java
public static String getCurrentApplicationVersion(Context ctx) { String name = ctx.getPackageName(); String version = ""; try {/* w ww .j a v a 2s .co m*/ PackageInfo info = ctx.getPackageManager().getPackageInfo(name, 0); version = info.versionName; } catch (PackageManager.NameNotFoundException e) { } return version; }