Sha256: 5c9b53aecd3b03313ac0812b8213599a60bbb4b489271b4fbdcf88dc1a5e1c9c

Contents?: true

Size: 419 Bytes

Versions: 14

Compression:

Stored size: 419 Bytes

Contents

import android.util.Log

class SampleBroadcastReceiver
  # Will get called whenever the BroadcastReceiver receives an intent.
  def onReceive(context, intent)
    Log.v 'SampleBroadcastReceiver', 'Broadcast received!'
    Log.v 'SampleBroadcastReceiver', intent.getExtras.to_s
  rescue Exception
    Log.e 'SampleBroadcastReceiver', "Exception processing broadcast: #{$!.message}\n#{$!.backtrace.join("\n")}"
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
ruboto-1.6.1 assets/samples/sample_broadcast_receiver.rb
ruboto-1.6.0 assets/samples/sample_broadcast_receiver.rb
ruboto-1.5.0 assets/samples/sample_broadcast_receiver.rb
ruboto-1.4.1 assets/samples/sample_broadcast_receiver.rb
ruboto-1.4.0 assets/samples/sample_broadcast_receiver.rb
ruboto-1.3.1 assets/samples/sample_broadcast_receiver.rb
ruboto-1.3.0 assets/samples/sample_broadcast_receiver.rb
ruboto-1.2.0 assets/samples/sample_broadcast_receiver.rb
ruboto-1.1.2 assets/samples/sample_broadcast_receiver.rb
ruboto-1.1.1 assets/samples/sample_broadcast_receiver.rb
ruboto-1.1.0 assets/samples/sample_broadcast_receiver.rb
ruboto-1.0.3 assets/samples/sample_broadcast_receiver.rb
ruboto-1.0.2 assets/samples/sample_broadcast_receiver.rb
ruboto-1.0.1 assets/samples/sample_broadcast_receiver.rb