Ddms tells that, when I recall my class called in the past, it performs an onCreate() instead of onResume() that I expected…
I noticed that values that I stored in variables of my class in this case are lost and are null.
I presume that Android decide to do so to free memory resources (isn’t it?).
I know that I could use Sharedpreferences to store data in a persistent way and then retrieve… But this is a really dirty way, in my opinion.
So, my question: how to have variables’ values preserved also after an onDestroy() (I think?) that Android decided automatically?
http://developer.android.com/reference/android/app/Activity.html#onSaveInstanceState(android.os.Bundle)