A.java: public class A{ private Context mContext = null; public A(Context cnt){ mContext = cnt; } } activty.java: .... void onCreat(){ //... A a = new A(this); }
80,351
社区成员
91,288
社区内容
加载中
试试用AI创作助手写篇文章吧