TaskFramework is an Open Source Android library that allows developers to easily create applications. TaskFramework is an event bus designed to decouple different parts of your application while still allowing them to communicate efficiently. 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. Less code, better quality!
Using TaskFramework takes four simple steps:
- Use
Task.Builder
to create a task holder; - Implement
Request.java
; - Extend
Response.java
; - Implement
Executor.java
; - Create a task:
String flag = "testAsync";
Task task = new Task.Builder(flag).setSync(false).create();
TestRequest request = new TestRequest(task);
boolean isRegisterSuccess = ClientTaskManager.instance().register(task, this);
TaskServiceManager.send(this, task, request);
Please see the issues section to report any bugs or feature requests and to see the list of known issues.
Please fork this repository and contribute back using pull requests.
Any contributions, large or small, major features, bug fixes, additional language translations are welcomed and appreciated but will be thoroughly reviewed and discussed.
IHONGQIQU.COM |
Copyright (C) 2014 Zhenguo
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.