parameters: (self)
return_statement: return activity
docstring: Returns the name of the Activity in the apk.
docstring_summary: Returns the name of the Activity in the apk.
docstring_tokens: Returns the name of the Activity in the apk .
function: 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
function_tokens: 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