Codota Logo
ResolveInfo.toString
Code IndexAdd Codota to your IDE (free)

How to use
toString
method
in
android.content.pm.ResolveInfo

Best Java code snippets using android.content.pm.ResolveInfo.toString (Showing top 5 results out of 315)

  • Common ways to obtain ResolveInfo
private void myMethod () {
ResolveInfo r =
  • Codota Iconnew ResolveInfo()
  • Codota IconPackageManager pm;Intent intent;pm.resolveActivity(intent, flags)
  • Codota IconList list;list.iterator().next()
  • Smart code suggestions by Codota
}
origin: robolectric/robolectric

private static String getPackageName(ResolveInfo resolveInfo) {
 if (resolveInfo.resolvePackageName != null) {
  return resolveInfo.resolvePackageName;
 } else if (resolveInfo.activityInfo != null) {
  return resolveInfo.activityInfo.packageName;
 } else if (resolveInfo.serviceInfo != null) {
  return resolveInfo.serviceInfo.packageName;
 } else if (resolveInfo.providerInfo != null) {
  return resolveInfo.providerInfo.packageName;
 }
 throw new IllegalStateException(
   "Could not find package name for ResolveInfo " + resolveInfo.toString());
}
origin: org.robolectric/shadows-framework

private static String getPackageName(ResolveInfo resolveInfo) {
 if (resolveInfo.resolvePackageName != null) {
  return resolveInfo.resolvePackageName;
 } else if (resolveInfo.activityInfo != null) {
  return resolveInfo.activityInfo.packageName;
 } else if (resolveInfo.serviceInfo != null) {
  return resolveInfo.serviceInfo.packageName;
 } else if (resolveInfo.providerInfo != null) {
  return resolveInfo.providerInfo.packageName;
 }
 throw new IllegalStateException(
   "Could not find package name for ResolveInfo " + resolveInfo.toString());
}
origin: stackoverflow.com

 final Intent mainIntent = new Intent(Intent.ACTION_MAIN, null);
mainIntent.addCategory(Intent.CATEGORY_LAUNCHER);
final List <ResolveInfo> pkgAppsList = getPackageManager().queryIntentActivities( mainIntent, 0);

for(ResolveInfo resolve : pkgAppsList)
{
  Log.d("MY_APP", resolve.toString());
}
origin: com.willowtreeapps/oak-demos

  @Override
  public String toString() {
    StringBuilder builder = new StringBuilder();
    builder.append("[");
    builder.append("resolveInfo:").append(resolveInfo.toString());
    builder.append("; weight:").append(new BigDecimal(weight));
    builder.append("]");
    return builder.toString();
  }
}
origin: com.actionbarsherlock/actionbarsherlock

  @Override
  public String toString() {
    StringBuilder builder = new StringBuilder();
    builder.append("[");
    builder.append("resolveInfo:").append(resolveInfo.toString());
    builder.append("; weight:").append(new BigDecimal(weight));
    builder.append("]");
    return builder.toString();
  }
}
android.content.pmResolveInfotoString

Popular methods of ResolveInfo

  • loadLabel
  • loadIcon
  • <init>
  • getIconResource
  • getClass
  • writeToParcel

Popular in Java

  • Making http requests using okhttp
  • setScale (BigDecimal)
  • scheduleAtFixedRate (Timer)
    Schedules the specified task for repeated fixed-rate execution, beginning after the specified delay.
  • setRequestProperty (URLConnection)
    Sets the general request property. If a property with the key already exists, overwrite its value wi
  • ObjectMapper (com.fasterxml.jackson.databind)
    This mapper (or, data binder, or codec) provides functionality for converting between Java objects (
  • Kernel (java.awt.image)
  • PrintStream (java.io)
    A PrintStream adds functionality to another output stream, namely the ability to print representatio
  • Executor (java.util.concurrent)
    An object that executes submitted Runnable tasks. This interface provides a way of decoupling task s
  • SSLHandshakeException (javax.net.ssl)
    The exception that is thrown when a handshake could not be completed successfully.
  • Runner (org.openjdk.jmh.runner)
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