Android Bağlam Benim uygulamada
merkez sınıf aşağıda benzeri örneğini edilir null olmasına edilir kaynaklar.
MyStuff.java:
public class MyStuff {
private Context mContext;
public MyStuff(Context c) {
mContext = c;
}
....
private ActionCustom MyAction = new ActionCustom(mContext);
konu mContext bile her zaman c null olmasıdır boş değil. Ben
public MyStuff(Context c) {
mContext = c;
}
ait
Üzgünüm ama işe yaramıyor. Bu noktada bir breakpoint koymuştum.mCextext = c ama asla – Seb
durur ρяσѕρєя K'nın cevabını görmez. Muhtemelen doğrudur. – Laurens
Bu durumda "mContext = c" ve "this.mContext = c" arasındaki fark nedir? –