Skip to content

Instantly share code, notes, and snippets.

@towski
Created February 10, 2014 01:01
Show Gist options
  • Save towski/8908552 to your computer and use it in GitHub Desktop.
Save towski/8908552 to your computer and use it in GitHub Desktop.
class SimpleIntentService < Java::AndroidApp::IntentService
def onHandleIntent(intent)
android.util.Log.v 'Punch', "Handling intent"
sleep 5
end
end
class QuickStartActivity
def onCreate(bundle)
msgIntent = android.content.Intent.new(self, android.app.IntentService)
startService(msgIntent)
end
end
https://developer.android.com/training/run-background-service/send-request.html
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment