```ruby
require 'ruboto'

# will get called whenever the BroadcastReceiver receives an intent (whenever onReceive is called)
$broadcast_receiver.handle_receive do |context, intent|
  Log.v "MYAPP", intent.getExtras.to_s
end
```

Update sample to match new ruboto split
user
```ruby
require 'ruboto/broadcast_receiver'

# will get called whenever the BroadcastReceiver receives an intent (whenever onReceive is called)
RubotoBroadcastReceiver.new_with_callbacks do
  def on_receive(context, intent)
    Log.v "MYAPP", intent.getExtras.to_s
  end
end

```
assistant