Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sta je odgovornost ovog BroadcastReceivera #34

Closed
Kursulla opened this issue Jul 4, 2018 · 0 comments
Closed

Sta je odgovornost ovog BroadcastReceivera #34

Kursulla opened this issue Jul 4, 2018 · 0 comments

Comments

@Kursulla
Copy link
Collaborator

Kursulla commented Jul 4, 2018

public class FollowEventBroadcastReceiver extends BroadcastReceiver {

BroadcastReceiver bi trebalo da primi neki event (neki Broadcast) i da inicira dalju obradu.

Medjutim, ovaj BR mulja nesto sa Notifikacija, sa Bazom.....

Posto su BR jako nezgodna stvar, gledaj da ih koristis samo kao neke proxy klase: pozovu se i samo proslede dalje taj dogadjaj koji se desio. Recimo, mozes imati neki FollowEventManager koji ce da radi tu neku logiku koju zelis, a iz ovog BR ga samo trigerujes

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant