nested-fragment-issue's People
Forkers
chasel wang9090980 cnzhhi azetor msgpacket ffedeevp usia13 leelei sathiamour sangupandi geek365 pappu1971nested-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
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.