code: public String getResourceFilename() {
          switch (resourceType) {
          case ANDROID_ASSETS:
              return assetPath
                      .substring(assetPath.lastIndexOf(File.separator) + 1);
  
          case ANDROID_RESOURCE:
              return resourceFilePath.substring(
                      resourceFilePath.lastIndexOf(File.separator) + 1);
  
          case LINUX_FILESYSTEM:
              return filePath.substring(filePath.lastIndexOf(File.separator) + 1);
  
          case NETWORK:
              return url.getPath().substring(url.getPath().lastIndexOf("/") + 1);
  
          case INPUT_STREAM:
              return inputStreamName;
  
          default:
              return null;
          }
      }
docs: Returns the filename of the resource with extension.
  
  @return Filename of the GVRAndroidResource. May return null if the
  resource is not associated with any file