Can be created two instances of SpiceManager in a baseclass for activities (that extends RoboFragmentActivity )

18 views
Skip to first unread message

Emil Petkov

unread,
Dec 16, 2014, 11:21:15 AM12/16/14
to robo...@googlegroups.com
Can be created two instances of SpiceManager in a base class for activities (that extends RoboFragmentActivity ) and is used by several of the activities in our application ( one of them is initial splash screen activity ) . One of the SpiceManager is linked to a offline spice service that I use to load something from a sqlite database. The other is linked to JacksonSpringAndroidSpiceService we are using for rest requests.

It gives me Illegal state exception - already started , on the line that I start the first SpiceManager , when I enter my main activity ( that also extends that base class)

...
@Override
protected void onStart() {
super.onStart();
offlineSpiceManager.start(this); 
...
Reply all
Reply to author
Forward
0 new messages