Codota Logo
ResolverActivity.getIcon
Code IndexAdd Codota to your IDE (free)

How to use
getIcon
method
in
com.lody.virtual.client.stub.ResolverActivity

Best Java code snippets using com.lody.virtual.client.stub.ResolverActivity.getIcon (Showing top 3 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
LocalDateTime l =
  • Codota Iconnew LocalDateTime()
  • Codota IconLocalDateTime.now()
  • Codota IconDateTimeFormatter formatter;String text;formatter.parseLocalDateTime(text)
  • Smart code suggestions by Codota
}
origin: android-hacker/VirtualXposed

Drawable loadIconForResolveInfo(ResolveInfo ri) {
  Drawable dr;
  try {
    if (ri.resolvePackageName != null && ri.icon != 0) {
      dr = getIcon(mPm.getResourcesForApplication(ri.resolvePackageName), ri.icon);
      if (dr != null) {
        return dr;
      }
    }
    final int iconRes = ri.getIconResource();
    if (iconRes != 0) {
      dr = getIcon(mPm.getResourcesForApplication(ri.activityInfo.packageName), iconRes);
      if (dr != null) {
        return dr;
      }
    }
  } catch (PackageManager.NameNotFoundException e) {
    VLog.e(TAG, "Couldn't find resources for package\n" + VLog.getStackTraceString(e));
  }
  return ri.loadIcon(mPm);
}
origin: darkskygit/VirtualApp

Drawable loadIconForResolveInfo(ResolveInfo ri) {
  Drawable dr;
  try {
    if (ri.resolvePackageName != null && ri.icon != 0) {
      dr = getIcon(mPm.getResourcesForApplication(ri.resolvePackageName), ri.icon);
      if (dr != null) {
        return dr;
      }
    }
    final int iconRes = ri.getIconResource();
    if (iconRes != 0) {
      dr = getIcon(mPm.getResourcesForApplication(ri.activityInfo.packageName), iconRes);
      if (dr != null) {
        return dr;
      }
    }
  } catch (PackageManager.NameNotFoundException e) {
    VLog.e(TAG, "Couldn't find resources for package\n" + VLog.getStackTraceString(e));
  }
  return ri.loadIcon(mPm);
}
origin: bzsome/VirtualApp-x326

Drawable loadIconForResolveInfo(ResolveInfo ri) {
  Drawable dr;
  try {
    if (ri.resolvePackageName != null && ri.icon != 0) {
      dr = getIcon(mPm.getResourcesForApplication(ri.resolvePackageName), ri.icon);
      if (dr != null) {
        return dr;
      }
    }
    final int iconRes = ri.getIconResource();
    if (iconRes != 0) {
      dr = getIcon(mPm.getResourcesForApplication(ri.activityInfo.packageName), iconRes);
      if (dr != null) {
        return dr;
      }
    }
  } catch (PackageManager.NameNotFoundException e) {
    VLog.e(TAG, "Couldn't find resources for package\n" + VLog.getStackTraceString(e));
  }
  return ri.loadIcon(mPm);
}
com.lody.virtual.client.stubResolverActivitygetIcon

Popular methods of ResolverActivity

  • finish
  • getContentResolver
  • getIntent
  • getPackageManager
  • getResources
  • getSystemService
  • isChangingConfigurations
  • isFinishing
  • loadIconForResolveInfo
  • makeMyIntent
  • onCreate
  • onIntentSelected
  • onCreate,
  • onIntentSelected,
  • showAppDetails,
  • startActivity,
  • startSelected

Popular in Java

  • Reactive rest calls using spring rest template
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • getSupportFragmentManager (FragmentActivity)
    Return the FragmentManager for interacting with fragments associated with this activity.
  • getExternalFilesDir (Context)
  • Graphics2D (java.awt)
    This Graphics2D class extends the Graphics class to provide more sophisticated control overgraphics
  • Properties (java.util)
    The Properties class represents a persistent set of properties. The Properties can be saved to a st
  • Scanner (java.util)
    A parser that parses a text string of primitive types and strings with the help of regular expressio
  • StringTokenizer (java.util)
    The string tokenizer class allows an application to break a string into tokens. The tokenization met
  • Filter (javax.servlet)
    A filter is an object that performs filtering tasks on either the request to a resource (a servlet o
  • JCheckBox (javax.swing)
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now