Skip to content
Up navigation not receiving result from children activity
Scala
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
project
res
src/com/oscarvarto
.gitignore
AndroidManifest.xml
README.md
build.sbt
proguard-project.txt
project.properties

README.md

AnUpNav

Up navigation not receiving result from children activity

A is the parent Activity (corresponding fragment: AFragment) B is the child Activity (corresponding fragment: BFragment)

AFragment calls startActivityForResult and starts B

BFragment should accept a simple Double, make B set that double as a result and when Up navigation is called, return to A, showing in a textView the Double introduced in B.

The project is using pfn's android-sdk-plugin and scala. AFragment has a "DEBUG_TAG" so that it some debugging with ADB Logcat can be done.

I can see the "Activity.RESULT_CANCELLED" while debugging (if I press the back arrow instead of the up navigation key in the ActionBar), however, I cannot receive "Activity.RESULT_OK".

I need some help, please.

Thanks

Something went wrong with that request. Please try again.