> ## Content Index
> Fetch the complete content index at: https://blogs.remobjects.com/llms.txt
> Use this file to discover other available public pages before exploring further.

# Android events in Oxygene for Java
- URL: https://blogs.remobjects.com/2012/01/14/android-events-in-oxygene-for-java/
- Published: 2012-01-14T00:19:00.000Z
- Updated: 2018-08-22T06:17:43.000Z
- Author: brian-long
- Tags: #Import 2026-08-17 20:17

When I first started looking at the [Android SDK](http://developer.android.com/reference/packages.html?ref=blogs.remobjects.com) I quickly realised that events were set up differently to the frameworks I had worked with before. Instead of being defined as closures, or method pointers, event fields are defined using interface types. To handle an event you need to implement the interface in some class.

In Java this is done using some syntactic sugar that gets the compiler to implement the interface in an anonymous helper class. When working with [the Oxygene language](http://www.remobjects.com/oxygene/?ref=blogs.remobjects.com) we also need this syntactic sugar to avoid degenerating into a mess of unwieldy code, hence the introduction of *inline interface implementation*.

There are various ways of using inline interface implementation and a couple of other options for implementing events, so I’ve written up a short article illustrating the primary options available for those using [Oxygene for Java](http://www.remobjects.com/oxygene/java?ref=blogs.remobjects.com) called *Android event handling & inline interface implementation with Oxygene for Java*. If interested in following up on this, you can find the article [here on my web site](http://blong.com/Articles/OxygeneInlineInterfaces/InlineInterfaceImplementation.htm?ref=blogs.remobjects.com).