Sha256: cc9e0f7172f2a2616b2e9f49b5e7fdd5c3e9fc2c63d97b0039a6742d4de92a18
Contents?: true
Size: 423 Bytes
Versions: 6
Compression:
Stored size: 423 Bytes
Contents
import android.util.Log class SampleBroadcastReceiver # will get called whenever the BroadcastReceiver receives an intent (whenever onReceive is called) def on_receive(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")}" end end
Version data entries
6 entries across 6 versions & 1 rubygems