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 def onStartCommand(intent, flags, startId) toast 'Hello from the service' android.app.Service::START_NOT_STICKY end end