I am using Conductor (https://github.com/bluelinelabs/Conductor) for Android to replace Fragments.
I was implementing image picking in my app and realized that onActivityResult is called before Controller's onAttach, in case of Fragments, equivalent would be onResume. It would be fine, but my problem is that I use coroutines and the coroutine context is created when my presenter is attached (which is a presenter.attach() call from onAttach of Controller (onResume of Fragment)).
From onAcitivtyResult I call a function that saves the selected image path to a database. This call requires context to be already be created.
I was wondering what people do in this situation.
If I am not mistaking, in Fragments, onActivityResult is also called before onResume, so this question is probably not specific to Conductor.
When onActivityResult called, coroutine context is not yet created
329 views Asked by Sermilion At
0
There are 0 answers
Related Questions in ANDROID
- Delay in loading Html Page(WebView) from assets folder in real android device
- MPAndroidChart method setWordWrapEnabled() not found
- Designing a 'new post' android activity
- Android :EditText inside ListView always update first item in the listview
- Android: Transferring Data via ContentIntent
- Wrong xml being inflated android
- AsyncTask Class
- Unable to receive extras in Android Intent
- Website zoomed out on Android default browser
- Square FloatingActionButton with Android Design Library
Related Questions in KOTLIN
- Volatile properties in Kotlin?
- Using multiple JVM languages in the same project
- Kotlin - IntelliJ Project Setup
- Kotlin let analogue which returns the receiver
- Kotlin 'when' statement vs Java 'switch'
- Use Kotlin extension in android java class
- Kotlin stub/placeholder function for unimplemented code
- Partial class delegation in Kotlin
- SugarORM + Kotlin: Unresovled reference "listAll"
- Kotlin JS - string to number conversion?
Related Questions in KOTLIN-COROUTINES
- Kotlin Coroutines in Android Service
- Unresolved reference: launch
- Can "experimental" Kotlin coroutines be used in production?
- How to use code that relies on ThreadLocal with Kotlin coroutines
- What is the difference between launch/join and async/await in Kotlin coroutines
- Return value from Kotlin coroutines inside a non-suspended function
- Android: How to detect how long workmanager is already in enqueue mode?
- how to return a boolean after completion of coroutine?
- How to fix UI to Light mode
- Why does IO Dispatchers create more than 64 thread in Kotlin corotines?
Related Questions in ONACTIVITYRESULT
- Start onActivityResult not being called from menu option
- android unable to resume activity on result using camera
- onActivityResult not being called when launching another app
- How to store string array (which is converted from array list <string> to string array) in shared preference.?
- Custom RecyclerAdapter and startActivityForResult
- OnSaveInstanceState/OnRestoreInstanceState with java collections
- onActivityResult is not called even though setResult is called
- List set in onActivityResult with data not sticking
- MediaStore.EXTRA_OUTPUT always contains null in Landscape mode
- Sum up value from OnActivityResult
Related Questions in CONDUCTOR
- When onActivityResult called, coroutine context is not yet created
- netflix conductor timeoutSeconds not taking effect for retries
- how to solve the problem occurs during build Conductor
- Netflix Conductor Python client generates an error when creating a task
- Netflix Conductor WorkflowStatusListener
- How to upgrade bluelinelabs/Conductor version 3.1.4 from version 3.0.0
- ERROR:No contact points for [cas_native] when running the lagom project in conductr sandbox locally and cassandra separately in local?
- Shared Element Transition with Android DataBinding
- Android Conductor - how to insert one controller to another as view?
- Back stack handling in Conductor
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Popular Tags
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)