Usually, I putExtra inside an Intent to transfer stuff between Activities.
But it seems like I can’t do this with a Service?
Bundle extras = getIntent().getExtras();
That doesn’t work for a android Service. How do I send a string from an Activity to a Service then?
The same way as you did with the
Activity. You will get theIntentin theonStart()callback method, which you would need to override. That will be called whenever a client callsstartService()for yourService, supplying theIntentin question.