Search code examples
androidiphoneioseventsnsnotificationcenter

Android equivalent to NSNotificationCenter


In the process of porting an iPhone application over to android, I am looking for the best way to communicate within the app. Intents seem to be the way to go, is this the best (only) option? NSUserDefaults seems much lighter weight than Intents do in both performance and coding.

I should also add I have an application subclass for state, but I need to make another activity aware of an event.


Solution

  • You could try this: http://developer.android.com/reference/java/util/Observer.html