Hi there ,

where to put the code I want the service to perform after it finishes what it is supposed to do ,
for example :
onStart the service should search a data base , then I want the service continue perform some tasks until a condition ,I know it is not proper to write that code in onStart , but where to ??

I hope I explained the idea well,
help is appreciated

It's proper to write this code in OnStart method.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.