I have this code(class in class) in java (andorid)
public class History extends Activity {
public Integer Type;
private static class HistoryAdapter extends BaseAdapter {
//I don't know how to access variable "Type" here
Integer num = Type;// error
.
.
.
}
.
.
.
}
I can't add more classes above "extends BaseAdapter"
Can someone help me, how can I access variable Type in class HistoryAdapter
Thanks
extends BaseAdapter? And you cannot access instance fields from another class without an instance of the outer class (History).