Reputation: 1
I'm trying to get this app (my first app) with a load of fragments to work. I analyse the code and all is OK except for depreciation of FragmentManager. App is building OK but can't run in emulator
I've tried clicking the light bulbs but am still in the dark. Looked at the developer.android pages but brain has turned to jelly and am not getting it. Am never sure if the dev pages are showing me outdated info as I got the code I'm currently using from there.
public SectionsPagerAdapter(Context context, FragmentManager fm) {<br>
super(fm);<br>
mContext = context;
}
And my imports:
import android.content.Context;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import androidx.annotation.StringRes;
import androidx.fragment.app.Fragment;
import androidx.fragment.app.FragmentManager;
import androidx.fragment.app.FragmentPagerAdapter;
I've uploaded a screenshot of results at link below. Please help. If possible just say which line needs to be replaced and with what. Thanks in advance. NTH
https://isthisyourface.wixsite.com/helpnadswithcode
Upvotes: 0
Views: 85