class Android::Manifest::Activity
Public Class Methods
valid?(elem)
click to toggle source
the element is valid Activity
element or not @param [REXML::Element] elem xml element @return [Boolean]
# File lib/android/manifest.rb, line 84 def self.valid?(elem) ['activity', 'activity-alias'].include?(elem.name.downcase) rescue => e false end
Public Instance Methods
default_launcher_activity?()
click to toggle source
@return whether this instance is the default main launcher activity.
# File lib/android/manifest.rb, line 98 def default_launcher_activity? intent_filters.any? do |intent_filter| intent_filter.exist?('android.intent.category.LAUNCHER') && intent_filter.exist?('android.intent.category.DEFAULT') end end
launcher_activity?()
click to toggle source
@return whether this instance is the launcher activity.
# File lib/android/manifest.rb, line 91 def launcher_activity? intent_filters.any? do |intent_filter| intent_filter.exist?('android.intent.category.LAUNCHER') end end