How to get arguments for starting a service after device has been started?
问题 I'm trying to start a service after the device has been started. The problem is that the service needs some arguments which it normally gets this way: public class ServiceClass extends Service { @Override public int onStartCommand(Intent intent, int flags, int startId) { searchString = (String) intent.getExtras().get(GET_SEARCHSTRING_AFTER_START); [...] return START_STICKY; public static final String GET_SEARCHSTRING_AFTER_START = "SEARCHVALUE"; public class OnStartupStarter[...] } But when