Giter VIP home page Giter VIP logo

nested-fragment-issue's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

nested-fragment-issue's Issues

can not resolve mActive in SupportV4App.java

Hi,

I have viewpager and state adapter to it. Parent fragment holds the tabs which are fragments..so the tab fragments are one level nested. And one of my fragment holds profile pic which user can click to pick a pic from gallery. So, I am facing the onActivityResult() issue. I have overriden the onActivityResult() in Activity, in parent fragment and in child fragment. And tried startActivityResult() and getParentFragment.startActivityResult() from child fragment. But none of the onActivityResult() hit. So I thought I can try this lib.

So, copied COmmonActivity.java code in my Activity. And created support.v4.app path and placed SupportV4App.java too.

But I get "Can't resolve mActive" compilation error at the below code.
public static ArrayList activityFragmentsActive(FragmentActivity activity) {
return activity.mFragments.mActive;
}

I see in the framework that there is no mActive var. I am totally out in making my stuff work.
Can you please help passing this error ??
Also, do you still suggest me using this lib or you think obsolete ?

Facing the problem with android.app.Fragment

I'm using android.app.Fragment, and one library is using the support.v4 fragments.
And when I call getActivityForResult is getting this same error, but when I tried to apply this solution, it gets me error cause I dont have an FragmentActivity.
Is there anyway arround??

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.