标签云

微信群

扫码加入我们

WeChat QR Code


public void MyClass is not a class definition, only a method

2018年10月23日57分36秒

I think you are missing some fundamentals of Java programming. I recommend finding some good introductory tutorials and follow those.

2018年10月23日57分36秒

Ok. In the context of android programming: if I'd like to create a single class to handle all network requests (in order to avoid redundancy of code). Could I use an AsyncTask (which must be a subclass according to docs.) and call it from anywhere in the codebase?

2018年10月23日57分36秒

I don’t work with Android, so I can’t answer that one precisely, but VERY broadly speaking yes that could be possible with a class.

2018年10月23日57分36秒