Intent getCategories - top ranked examples from Open Source projects

These code examples were ranked by Codota’s semantic indexing as the best open source examples for Intent getCategories method.

This code example shows how to use the following methods:getAction, getCategories, getComponent, getData, getPackage
  // cribbed from Android source 
  public boolean filterEquals(Intent other) {
    if (other == null) {
      return false; 
    } 
    if (getAction() != other.getAction()) {
      if (getAction() != null) { 
        if (!getAction().equals(other.getAction())) {
          return false; 
        } 
      } else { 
        if (!other.getAction().equals(getAction())) {
          return false; 
        } 
      } 
    } 
    if (getData() != other.getData()) {
      if (getData() != null) { 
        if (!getData().equals(other.getData())) {
          return false; 

8
CodeRank
This code example shows how to use the following methods:getAction, getCategories, getComponent, getData, getPackage
    // cribbed from Android source 
    public boolean filterEquals(Intent other) {
        if (other == null) {
            return false; 
        } 
        if (getAction() != other.getAction()) {
            if (getAction() != null) { 
                if (!getAction().equals(other.getAction())) {
                    return false; 
                } 
            } else { 
                if (!other.getAction().equals(getAction())) {
                    return false; 
                } 
            } 
        } 
        if (getData() != other.getData()) {
            if (getData() != null) { 
                if (!getData().equals(other.getData())) {
                    return false; 

8
CodeRank
This code example shows how to use the following methods:getCategories
        } 
        return false; 
    } 
 
    private static FastImmutableArraySet<String> getFastIntentCategories(Intent intent) {
        final Set<String> categories = intent.getCategories();
        if (categories == null) {
            return null; 
        } 
        return new FastImmutableArraySet<String>(categories.toArray(new String[categories.size()]));
    } 
 
    private void buildResolveList(Intent intent, FastImmutableArraySet<String> categories,
            boolean debug, boolean defaultOnly,
            String resolvedType, String scheme, List<F> src, List<R> dest, int userId) {
        final String action = intent.getAction();
        final Uri data = intent.getData();
        final String packageName = intent.getPackage();
 
        final boolean excludingStopped = intent.isExcludingStopped();
4
CodeRank
This code example shows how to use the following methods:getCategories
        } 
        return false; 
    } 
 
    private static FastImmutableArraySet<String> getFastIntentCategories(Intent intent) {
        final Set<String> categories = intent.getCategories();
        if (categories == null) {
            return null; 
        } 
        return new FastImmutableArraySet<String>(categories.toArray(new String[categories.size()]));
    } 
 
    private void buildResolveList(Intent intent, FastImmutableArraySet<String> categories,
            boolean debug, boolean defaultOnly,
            String resolvedType, String scheme, List<F> src, List<R> dest, int userId) {
        final String action = intent.getAction();
        final Uri data = intent.getData();
        final String packageName = intent.getPackage();
 
        final boolean excludingStopped = intent.isExcludingStopped();
3
CodeRank

Related Intent getCategories Questions & Answers:

getCategories Method Overview
Return the set of all categories in the intent.
See Code Examples for other Android Intent Methods: