SearchView and the Activity Lifecycle

I was reading a good post written by Luis G. Valle about SearchViews and he explains two lifecycle ways: Default: searchable activity receives a call to onCreate with an ACTION_SEARCH intent. This will create two instances of your searchable activity (one on top of the other). If you set android:launchMode to singleTop: searchable activity receives … Continue lendo SearchView and the Activity Lifecycle

When should I use Android Service?

To rank higher the process which is hosting my application Because a process running a service is ranked higher than a process with background activities, an activity that initiates a long-running operation might do well to start a service for that operation, rather than simply create a worker thread. An activity can be stopped or destroyed, … Continue lendo When should I use Android Service?