Hi. I am unsure of where I should place packet listeners. Should it go into the onCreate() method , or in the onStartCommand(), or should it be put into a separate method that runs every few seconds?
My confusion is mostly with the concept of listeners. Is the listener always running and will trigger as soon as a packet is received? Thanks in advance.