assets/samples/sample_service.rb in ruboto-0.10.2 vs assets/samples/sample_service.rb in ruboto-0.11.0.rc.0
- old
+ new
@@ -5,10 +5,10 @@
# 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 on_start_command(intent, flags, startId)
- toast "Hello from the service"
+ def onStartCommand(intent, flags, startId)
+ toast 'Hello from the service'
android.app.Service::START_NOT_STICKY
end
end