I have written service as library project and connected that service to another application.now i want to pass some input values to service.how can I pass?
Pass values like this:
Intent intent = new Intent(SelfMonitor.this, SchedulerService.class);
intent.putExtra("initialDelay", initialDelay);
intent.putExtra("endTime", endTime);
startService(intent);
Get value like this in service:
initialDelay = Integer.parseInt(intent.getStringExtra("initialDelay"));
endTime = intent.getStringExtra("endTime");
but i am getting null pointer
exception?