Try to implement this inside your onCreateView:
For Activity –
BaseActivity.imageLoader.init(ImageLoaderConfiguration.createDefault(getBaseContext()));
For Fragment –
ImageLoader.getInstance().init(ImageLoaderConfiguration.createDefault(getActivity()));
More Related Contents:
- NullPointerException accessing views in onCreate()
- Using context in a fragment
- Android Activity ClassNotFoundException – tried everything
- Replacing a fragment with another fragment inside activity group
- Access ViewPager Fragment method from Activity
- Setting Custom ActionBar Title from Fragment
- Android search with Fragments
- onActivityResult() not called in new nested fragment API
- How to send data from DialogFragment to a Fragment?
- Why is accessing TextView of a Fragment inside Activity throwing an error
- How to get elements of fragments created by ViewPager in MainActivity?
- Android FragmentManager BackStackRecord.run throwing NullPointerException
- When is onAttach called during the Fragment LifeCycle? [duplicate]
- How to check permission in fragment
- RecyclerView not calling onCreateViewHolder or onBindView
- Android – How to change fragments in the Navigation Drawer
- Fragment add or replace not working
- onRequestPermissionsResult not being called in dialog fragment
- How to change fragments using Android navigation drawer
- incompatible types: HomeFragment cannot be converted to Fragment in Android
- How to pass data from Recyclerview to Fragment
- How to update edittext whenever a quantity is added in android studio
- Request runtime permissions from v4.Fragment and have callback go to Fragment?
- How to hide the soft keyboard inside a fragment?
- What result array return in Location.distanceBetween(lat1, lon1, lat2, lon2, results);
- How can We set and get System propertiesi in Android Q
- Android project using httpclient –> http.client (apache), post/get method
- Openssl is not recognized as an internal or external command
- Android JSON parsing of multiple JSONObjects inside JSONObject
- What exactly does Android’s @hide annotation do?