“No enclosing instance of type” error while calling method from another class in Android

后端 未结 4 1916
庸人自扰
庸人自扰 2020-11-29 06:33

Colleagues, I have the such question: 1. In my first class I have the

public class parseYouTubeAndYahoo extends AsyncTask

        
4条回答
  •  隐瞒了意图╮
    2020-11-29 07:12

    Reference the context of activity to other class and use it.

    Like that: public oneofconstructer(Context ctx, .....)

提交回复
热议问题