I do requests through startService in Service . How to make a check in onStartCommand .

To separate requests, as if a request with a value to do this one, if with another, then another?

 intent.getAction 

does not work, null issues. I thought there is a check to do but

    1 answer 1

    You start the service via intent . Put some identifier in the bundle and in the onStartCommand method get this identifier

    • And through the flags, is it impossible? - Andro
    • It is impossible. It is already responsible for another functional - pavel163