Ergo


License

License

GroupId

GroupId

com.nhaarman.ergo
ArtifactId

ArtifactId

library
Last Version

Last Version

0.2.2
Release Date

Release Date

Type

Type

jar
Description

Description

Ergo
Ergo
Project URL

Project URL

https://github.com/nhaarman/Ergo
Source Code Management

Source Code Management

https://github.com/nhaarman/Ergo

Download library

How to add to project

<!-- https://jarcasting.com/artifacts/com.nhaarman.ergo/library/ -->
<dependency>
    <groupId>com.nhaarman.ergo</groupId>
    <artifactId>library</artifactId>
    <version>0.2.2</version>
</dependency>
// https://jarcasting.com/artifacts/com.nhaarman.ergo/library/
implementation 'com.nhaarman.ergo:library:0.2.2'
// https://jarcasting.com/artifacts/com.nhaarman.ergo/library/
implementation ("com.nhaarman.ergo:library:0.2.2")
'com.nhaarman.ergo:library:jar:0.2.2'
<dependency org="com.nhaarman.ergo" name="library" rev="0.2.2">
  <artifact name="library" type="jar" />
</dependency>
@Grapes(
@Grab(group='com.nhaarman.ergo', module='library', version='0.2.2')
)
libraryDependencies += "com.nhaarman.ergo" % "library" % "0.2.2"
[com.nhaarman.ergo/library "0.2.2"]

Dependencies

There are no dependencies for this project. It is a standalone project that does not depend on any other jars.

Project Modules

There are no modules declared in this project.

Ergo (Deprecated) Build Status

Ergo is an Android library for easily executing tasks using IntentServices. Feel free to use it all you want in your Android apps provided that you cite this project and include the license in your app.

About

Often developers use an AsyncTask for executing tasks such as downloading data. Handling state changes can be a real PITA.
Ergo provides a way of executing these tasks using IntentServices and ResultReceivers. State changes are handled by storing the ResultReceiver (which is bound to the IntentService), and binding proper callbacks again.

Usage

Add the following to your build.gradle:

dependencies {
    compile 'com.nhaarman.ergo:library:0.2.+'
}
  • Extend ErgoService
    • Implement createTask(Intent)
  • Extend ErgoActivity or ErgoFragment
    • Implement onCreateReceivers()
    • Start your ErgoService using ErgoService.startService(Context, Intent, ResultReceiver)

A code example will be available soon.

License

Copyright 2014 Niek Haarman

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

έργο is Greek for 'task'.

Versions

Version
0.2.2
0.2.1
0.2.0
0.1.0