SOLID – Focusing on Abstraction

I think I've never written about SOLID Principles here, in my blog. So, I will do it trying to be simple, and focusing on abstractions. Single Responsibility Simple, a classe must have only one responsibility. A classe or interface must be cohesive. DIP - Dependence Inversion Principle Each modifications in a class is propagated to … Continue lendo SOLID – Focusing on Abstraction

Can not perform this action after onSaveInstanceState

I've faced this problem sometimes but I've never written about it. It's very interesting because it proves that the Android avoid at all costs lose the state of the activity. This error commonly happens when you try to commit a fragment transaction after the onSaveInstanceState() be called, in other words, when you do it in … Continue lendo Can not perform this action after onSaveInstanceState

Android – Tweaking the Back Stack Behaviour

I've written a post about Android back stack and its default behaviour where every started activity is placed in a "last in, first out" stack. Today, I was reading a great article on Android guides where there is a section to explain about situations where we must to tweak this behavior, something that I forgot … Continue lendo Android – Tweaking the Back Stack Behaviour