[JAVA] I was addicted to doing onActivityResult () with DialogFragment

What I wanted to do

Press the button on DialogFragment to open the gallery and receive the result with ʻonActivityResult ()` on DialogFragment.

What actually happened

Isn't ʻonActivityResult () called on DialogFragment? For some reason, the DialogFragment caller (MainActivity) ʻonActivityResult () is called. (This is being used by another operation. I want to complete the Dialog Fragment on the Dialog Fragment)

Solution

Call super.onActivityResult () with ʻonActivityResult ()` on MainActivity.

Impressions

I'm a very beginner so I don't know why this will call ʻonActivityResult ()` on DialogFragment ... Please let me know in the comments.

Referenced site

Fragment onActivityResult is not called

Recommended Posts

I was addicted to doing onActivityResult () with DialogFragment
I was addicted to starting sbt
I was addicted to setting default_url_options with Rails devise introduction
What I was addicted to with the Redmine REST API
I was addicted to rewriting to @SpringApplicationConfiguration-> @SpringBootTest
I was addicted to the roll method
I was addicted to the Spring-Batch test
What I was addicted to when implementing google authentication with rails
I was addicted to using RXTX on Sierra
Problems I was addicted to when building the digdag environment with docker
I was addicted to installing Ruby/Tk on MacOS
I was addicted to unit testing with the buffer operator in RxJava
SpringSecurity I was addicted to trying to log in with a hashed password (solved)
I was addicted to the record of the associated model
A memo that I was addicted to when making batch processing with Spring Boot
What I was addicted to when trying to properly openAPI/Swagger documentation with Rails + Grape + Grape Swagger
What I was addicted to when introducing the JNI library
What I fixed when updating to Spring Boot 1.5.12 ・ What I was addicted to
What I was addicted to while using rspec on rails
I was addicted to looping the Update statement on MyBatis
A story I was addicted to in Rails validation settings
I was addicted to the setting of laradock + VSCode + xdebug
I was addicted to using Java's Stream API in Scala
The story I was addicted to when setting up STS
A story I was addicted to with implicit type conversion of ActiveRecord during unit testing
I was addicted to WSl when trying to build an android application development environment with Vue.js
I tried to interact with Java
Android memo-I was addicted to Permission
[Circle CI] A story I was addicted to at Start Building
A note when I was addicted to converting Ubuntu on WSL1 to WSL2
About the matter that I was addicted to how to use hashmap
I was addicted to the API version min23 setting of registerTorchCallback
Technical causes and countermeasures for the points I was addicted to with the first Android app & Kotlin
Memorandum: What I was addicted to when I hit the accounting freee API
[Rails] I was addicted to the nginx settings when using Action Cable.
[Java] Java was said to be okay to concatenate strings with +, so I checked
A story I was addicted to when testing the API using MockMVC
I just wanted to logrotate with log4j 2
A story that I was addicted to twice with the automatic startup setting of Tomcat 8 on CentOS 8
My.cnf configuration problem that I was addicted to when I was touching MySQL 8.0 like 5.7
I was addicted to a simple test of Jedis (Java-> Redis library)
I tried to get started with WebAssembly
I want to use DBViewer with Eclipse 2018-12! !!
Recorded because I was addicted to the standard input of the Scanner class
I was a little addicted to running old Ruby environment and old Rails
I was addicted to scrollview because I couldn't tap the variable size UIView
[CircleCI] I was addicted to the automatic test of CircleCI (rails + mysql) [Memo]
I was a little addicted to ssh connection from mac to linux (ubuntu)
I tried to implement ModanShogi with Kinx
I was addicted to not being able to connect to AWS-S3 from the Docker container
I was a little addicted to the S3 Checksum comparison, so I made a note.
I tried to verify AdoptOpenJDK 11 (11.0.2) with Docker image
I tried to make Basic authentication with Java
I tried to manage login information with JMX
I want to use java8 forEach with index
I want to play with Firestore from Rails
I wanted to gradle spring boot with multi-project
I tried to break a block with java (1)
I want to perform aggregation processing with spring-batch
[Rails] I want to load CSS with webpacker
When I tried to unit test with IntelliJ, I was told "java.lang.OutOfMemoryError: Java heap space"