(self)
return activity
Returns the name of the Activity in the apk.
Returns the name of the Activity in the apk.
Returns the name of the Activity in the apk .
def GetActivityName(self):
    """Returns the name of the Activity in the apk."""
    manifest_info = self._GetManifest()
    try:
      activity = (
          manifest_info['manifest'][0]['application'][0]['activity'][0]
              ['android:name'])
    except KeyError:
      return None
    if '.' not in activity:
      activity = '%s.%s' % (self.GetPackageName(), activity)
    elif activity.startswith('.'):
      activity = '%s%s' % (self.GetPackageName(), activity)
    return activity
def GetActivityName ( self ) : manifest_info = self . _GetManifest ( ) try : activity = ( manifest_info [ 'manifest' ] [ 0 ] [ 'application' ] [ 0 ] [ 'activity' ] [ 0 ] [ 'android:name' ] ) except KeyError : return None if '.' not in activity : activity = '%s.%s' % ( self . GetPackageName ( ) , activity ) elif activity . startswith ( '.' ) : activity = '%s%s' % ( self . GetPackageName ( ) , activity ) return activity