assets/samples/sample_broadcast_receiver.rb in ruboto-1.0.0 vs assets/samples/sample_broadcast_receiver.rb in ruboto-1.0.1
- old
+ new
@@ -4,8 +4,8 @@
# 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 "Exception processing broadcast: #{$!.message}\n#{$!.backtrace.join("\n")}"
+ Log.e 'SampleBroadcastReceiver', "Exception processing broadcast: #{$!.message}\n#{$!.backtrace.join("\n")}"
end
end