Comments (5)
I confirm.
from inlineactivityresult.
Still reproduced on implementation 'com.github.florent37:inline-activity-result:1.0.2
from inlineactivityresult.
Hi
With option "don't keep activities" activity that call InlineActivityResult#startForResult()
dies and ActivityResultFragment lose "listener" field value.
I think we cannot implement same behavior as default Activity#startActivityForResult()
. Because, in that way, we must store ActivityResultFragment.ActivityResultListener
interface througth death and recreation of process that cause memory leak (because listener stores link to context and cannot be saved in Bundle).
I didnt find way how to bount new activity with new ActivityResultFragment#onActivityResult()
result. I looked at some other libraries, but they didnt solve this problem too.
But infinite loop can be fixed (i work on it).
from inlineactivityresult.
@victor-denisenko In theory the ViewModel
of the caller should survive activity destruction (not process death) so if it is implementing ActivityResultListener
and not its fragment/activity then the listener will survive too.
In case of a process death there won't be any memory leak because normally the entire app will be restarted. So preserving an arbitrary callback across process death is impossible.
from inlineactivityresult.
google just fixed that : https://developer.android.com/training/basics/intents/result
from inlineactivityresult.
Related Issues (13)
- Where is the class of "com.github.florent37.inlineactivityresult.InlineActivityResult" HOT 5
- Intent not start for the second time.
- Create a new release? HOT 1
- Parcelable encountered IOException writing serializable object (name = java.lang.RuntimeException)
- Support for onRequestPermissionsResult()? HOT 1
- No countermeasure for Activity recreation when the screen rotates HOT 4
- Migrate to Maven Central HOT 5
- AndroidX added registerForActivityResult instead of startActivityForResult
- Make it work with Activity HOT 2
- Make it work without Activity (but with Context) HOT 2
- Intent repeatedly fired HOT 1
- Add startIntentSenderForResult() support
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 inlineactivityresult.