Skip to content Skip to sidebar Skip to footer

Why Am I Getting A Constructor Undefined Error?

Why is this line: g.setAdapter(new ImageAdapter(this)); giving me the error 'Constructor Undefined'? I used this guide to make tabs http://www.androidbegin.com/tutorial/impleme

Solution 1:

Replace that line with

g.setAdapter(newImageAdapter(getActivity()));

Fragment doesn't inherit from Context.

Post a Comment for "Why Am I Getting A Constructor Undefined Error?"