Quantcast
Channel: Ignite Realtime : Discussion List - All Communities
Viewing all articles
Browse latest Browse all 10742

Doubt about listeners

$
0
0

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.


Viewing all articles
Browse latest Browse all 10742

Trending Articles