Sha256: 10f71ec478f076c0e70dcc38fbd271960679fc02dc06747d3b7c2da57a64096f
Contents?: true
Size: 513 Bytes
Versions: 1
Compression:
Stored size: 513 Bytes
Contents
require 'ruboto/service' require 'ruboto/util/toast' # Services are complicated and don't really make sense unless you # show the interaction between the Service and other parts of your # app. # For now, just take a look at the explanation and example in # online: # http://developer.android.com/reference/android/app/Service.html class SampleService include Ruboto::Service def on_start_command(intent, flags, startId) toast "Hello from the service" android.app.Service::START_NOT_STICKY end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
ruboto-0.7.0 | assets/samples/sample_service.rb |