code: def is_android_api(self):
          
  
          # Packages found at https://developer.android.com/reference/packages.html
          api_candidates = ["Landroid/", "Lcom/android/internal/util", "Ldalvik/", "Ljava/", "Ljavax/", "Lorg/apache/",
                            "Lorg/json/", "Lorg/w3c/dom/", "Lorg/xml/sax", "Lorg/xmlpull/v1/", "Ljunit/"]
  
          if not self.is_external():
              # API must be external
              return False
  
          if self.apilist:
              return self.orig_class.get_name() in self.apilist
          else:
              for candidate in api_candidates:
                  if self.orig_class.get_name().startswith(candidate):
                      return True
  
          return False
docs: Tries to guess if the current class is an Android API class.
  
          This might be not very precise unless an apilist is given, with classes that
          are in fact known APIs.
          Such a list might be generated by using the android.jar files.
  
          :return: boolean