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