When you create an intent, you can put data in it, and the same data will be transmitted along with the intent when the service starts.
Intent intent = new Intent(context, Class) ; intent.putExtra(key, value); startService(intent);
At the end of the reception, get the intention and get additional value from it.
Bundle b = getIntent().getExtra(); b.get<ValueType>(key);
Atmaram
source share