Currently I have an Activity in Android, In the onCreate() I have a function that creates a list of all available MyServices (using aidl) that i have and insert the names etc in an Arraylist.
Still in the Activity in the onStart() I bind all the services and connect to them using a separate class that implements ServiceConnection.
In the onPostCreate() that starts after onStart() and onRestoreInstanceState(Bundle) is called, I immediately (this goes automatic) submit a searchquery to a Class that extends AsyncTask. When connecting to one of the service that handles the searchquery, the service is not available at that moment, the servicelist is always empty in the few seconds when the application is started.
When attaching a debugger, the services are always load and I can't seem to solve the problem.
So my question would be, what method can I use to get notified when all services are loaded and or ready to get queried?