neotech-software / android-retainable-tasks Goto Github PK
View Code? Open in Web Editor NEWA mini-library that makes it really easy to retain background tasks on orientation changes
License: Apache License 2.0
A mini-library that makes it really easy to retain background tasks on orientation changes
License: Apache License 2.0
I have a View that displays a "pie" progress for the Task progress.
After I rotate the screen the progress seems "frozen", but the task successfully completes and I am able to Log.d() the progress. Is there anything else that I have to call in order to update my view again?
Also, how can I send parameters to the onPreExecute method?
The Task.getLastKnownProgress()
method always throws an exception unless the Task never got executed.
Expected behavior would be to see it return the last known progress value or null as soon as the task is executed.
Same issue as #3 but for another annotation.
Version 1.0.0-rc-1 does not seem to support automatic casting the Task
argument to a preferred subclass of Task
. This should however work as other annotations do support it. The generated _TaskBinding
class will currently causes a compile error:
Error:(23, 37) error: incompatible types: Task cannot be converted to MyCustomTask
Example code:
@TaskProgress("task-id")
public void onProgressMyCustomTask(MyCustomTask task, Object progress) {
}
Version 1.0.0-rc-1 does not seem to support automatic casting the Task
argument to a preferred subclass of Task
. This should however work as other annotations do support it. The generated _TaskBinding
class will currently causes a compile error:
Error:(23, 37) error: incompatible types: Task cannot be converted to MyCustomTask
Example code:
@TaskAttach("task-id")
public void onAttachMyCustomTask(MyCustomTask task) {
}
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.