5
This is allowed?
public Produto(Context context) {
super(context, this);
}
You’re making a mistake :
Cannot refer to 'this' nor 'super' while explicitly invoking a constructor
I’m trying to make a simple MVC for when I type produto.Save()
i manage to rescue the values that were set below:
Produto produto1 = new Produto(this);
produto1.setId(1);
produto1.setNome("CELULAR");
produto1.setPreco(5.5);
produto1.Save();
The source of it lies in this other doubt: Android getDeclaredFields value
You’re trying to pass
this
at a time when the object is still being constructed and therefore not ready to be referenced.– Piovezan