Comments (7)
found a workaround in the sample project:
execute with the listener both implemented RequestListener and RequestProgressListener
but it's still a issue ,right?
from robospice.
You should not be able to plugin a request listener that way but always use
the spice manager to link requests and listeners, may they be progress
listeners or not. So yes, there is a problem I believe here. Would you mind
to fill an official issue in the github repo for this ?
Thanks for finding this,
Stéphane
2012/12/31 sospartan [email protected]
found a workaround in the sample project:
execute with the listener both implemented RequestListener and
RequestProgressListener
but it's still a issue ,right?—
Reply to this email directly or view it on GitHubhttps://github.com//issues/16#issuecomment-11774086.
Stéphane NICOLAS,
OCTO Technology
Développeur & Consultant Android / Java
..........................................................
50, Avenue des Champs-Elysées
75008 Paris
+33 (0)6.26.32.34.09
www.octo.com - blog.octo.com
www.usievents.com
...........................................................
from robospice.
Thanks for reply , this #16 is already post , what do mean by
Would you mind to fill an official issue in the github repo for this ?
In my project , I want listen all the progress update in Activity( control the progress bar in action bar), and listen every request result in separate fragment .Should I link all the requests in Activity and notify fragment manually ? Is there any best practice for this kind of job ?
from robospice.
Could you be more clear, I can't understand exactly.
Give an example please.
Stéphane
2012/12/31 sospartan [email protected]
Thanks for reply , this #16https://github.com/octo-online/robospice/issues/16is already post , what do mean by
Would you mind to fill an official issue in the github repo for this ?
In my project , I want listen all the progress update in Activity( control
the progress bar in action bar), and listen every request result in
separate fragment .Should I link all the requests in Activity and notify
fragment manually ? Is there any best practice for this kind of job ?—
Reply to this email directly or view it on GitHubhttps://github.com//issues/16#issuecomment-11776237.
Stéphane NICOLAS,
OCTO Technology
Développeur & Consultant Android / Java
..........................................................
50, Avenue des Champs-Elysées
75008 Paris
+33 (0)6.26.32.34.09
www.octo.com - blog.octo.com
www.usievents.com
...........................................................
from robospice.
My app is just like a browser , single Activity with fragments . The Activity's content view is a ProgressBar ,address EditText and a fragment container view where to display pages content by different fragments.
from robospice.
There are obviously different design that could be used.
My intuition would be somthing like
public class BrowserContainerActivity extends Activity implements
ProgressNotifier {
@OverRide
public void setProgress( int progress ) {
//update progressbar
}
}
public class BaseBrowserFragment extends Fragment {
private class UrlRequestListener implements RequestListener,
RequestProgressListener {
public void onSuccess(InputStream result) {
}
public void onFailure(SpiceException exception) {
}
public void onRequestProgressUpdate( RequestProgress progress ) {
-
progress.getProgress());*
((ProgressNotifier) getActivity()). setProgress( 100 *
}
}
And then you could perform your queries inside your fragments. I would
definitely handle the results of requests as InputStream to be able to
handle large pages.
Stéphane
2012/12/31 sospartan [email protected]
My app is just like a browser , single Activity with fragments . The
Activity's content view is a ProgressBar ,address EditText and a fragment
container view where to display pages content by different fragments.—
Reply to this email directly or view it on GitHubhttps://github.com//issues/16#issuecomment-11779678.
Stéphane NICOLAS,
OCTO Technology
Développeur & Consultant Android / Java
..........................................................
50, Avenue des Champs-Elysées
75008 Paris
+33 (0)6.26.32.34.09
www.octo.com - blog.octo.com
www.usievents.com
...........................................................
from robospice.
The initial issue was to be able to register a RequestProgressListener directly on a SpiceRequest. This bug is corrected in current state of repo so I close the issue. Please continue on Google Group for further on your specific problem.
from robospice.
Related Issues (20)
- proguard warning HOT 1
- Getting a Callback after Fragment has been detached
- Retrofit throwing exceptions for every single call HOT 2
- Caching skipped if List sub-type is involved HOT 2
- Is This library still maintained ? HOT 5
- robospice usecase: external rest-service returns null
- Could not find class 'com.octo.android.robospice.persistence.ObjectPersister' HOT 4
- Best Practice for design to connect to multiple services
- Robospice and binary post requests? HOT 5
- response headers missing? HOT 4
- removeDataFromCache(Class clazzm, Object cacheKey) not working on 1.4.13
- BigBinaryRequest with customized headers/interceptors.
- Android O background service limitations HOT 5
- Download a file with query params HOT 1
- java.lang.NoSuchMethodError: No virtual method No virtual method open(Ljava/net/URL;)Ljava/net/HttpURLConnection; HOT 10
- Build failed on windows (android studio2.23 @win7 64-bit), but no problem on Mac. HOT 4
- RoboSpice within the MVVM pattern HOT 2
- How to log api response time at common place? HOT 1
- Android O (8.1.0) : invalid channel for service notification HOT 8
- Xmlrpc Request
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from robospice.