-
Notifications
You must be signed in to change notification settings - Fork 47
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Passing data between activity and stepper fragments #7
Comments
till now this library is not supported for passing bundle to pass data between fragments - but surely you can save data in sharedpreference in each fragment and process/communicate between fragments. i'll look into the way to use bundle for communication between fragments in next updats/versions. And the above code you've tried isn't way - you must pass the class names as list and the inbuilt library does the work of creating new fragment instance and destroying it dynamically - i have implemented this because it drastically reduces the memory consumption of fragments in heap memory. - assume if you have 20+ fragment objects at once - it may leak memory/ cause overhead. hope you can understand. |
This is indeed the only weakness of this library. I understand that I might work though? I mean passing bundles or not at all? Looking forward to reading you. |
@Isabellle thanks for mentioning the issue :) |
Sounds great, will wait until this great update is available. |
Hello, |
Can you please update this library? i really need the addBundle method. |
please can you please update the bundle |
Was this issue ever fixed? It seems it's not possible to pass data using shared preferences in the fragments as well. Kindly reach out on whether this is possible |
Hi, I have an issue that I can't solve. In my app, I'll use the stepper to perform a configuration of an already connected bluetooth device.
I need to pass the bluetooth device connectivity information from the main activity to the stepper fragments in order to send command and receive information over bluetooth.
Starting from main, my idea is to use do this:
so I will "receive" the bluetooth device in the activity that extend progressMobileStepper. At this point every thing is all right, in "mBtDevice" I have all the information I need. This is what I have done so far:
The problem is in the "CalibrationStep1Fragment". This is the code:
at this point bundle is null ( Bundle bundle = getArguments(); )
Please tell me if something is not clear and I'll try to give more information.
The text was updated successfully, but these errors were encountered: