Tabnine Logo
ResolverActivity.getIcon
Code IndexAdd Tabnine 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)

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

  • Updating database using SQL prepared statement
  • onCreateOptionsMenu (Activity)
  • getSystemService (Context)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • ResultSet (java.sql)
    An interface for an object which represents a database table entry, returned as the result of the qu
  • Timestamp (java.sql)
    A Java representation of the SQL TIMESTAMP type. It provides the capability of representing the SQL
  • Calendar (java.util)
    Calendar is an abstract base class for converting between a Date object and a set of integer fields
  • Vector (java.util)
    Vector is an implementation of List, backed by an array and synchronized. All optional operations in
  • BlockingQueue (java.util.concurrent)
    A java.util.Queue that additionally supports operations that wait for the queue to become non-empty
  • Base64 (org.apache.commons.codec.binary)
    Provides Base64 encoding and decoding as defined by RFC 2045.This class implements section 6.8. Base
  • Top plugins for Android Studio
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now