In my application I am using robospice. So in my BaseActivity a created spice manager:
@Override
protected void onStart() {
super.onStart();
if(!spiceManager.isStarted()) {
spiceManager.start(this);
}
}
@Override
protected void onStop() {
if (spiceManager.isStarted()) {
spiceManager.shouldStop();
}
super.onStop();
}
But when I start new activity, in new activity is called onStart() before parent onStop() - so it disconnect the service. Any ideas how to solve it?
Am not sure if i understood your question correctly. But if i did i guess you have problem as your BaseActivity onStop is called after you start new activity.
well in this case you can use onResume and onPause instead of onStart and onStop.
Hope this helps.