Skip to content
/ Aspect Public

Extremely basic Android project demonstrating Aspect Oriented Programming.

Notifications You must be signed in to change notification settings

Stuie/Aspect

Repository files navigation

Aspect

Extremely basic Android project demonstrating Aspect Oriented Programming.

Instructions

  1. Checkout the source
  2. Build and deploy to a device or emulator with ./gradlew installDebug
  3. Observe the logcat output as you press the buttons

How it works

The MetricsAspect class contains a method that is configured to run whenever an onClick method is called within the project's package.

From the Aspect method it is possible to access the View argument passed to the onClick method along with other useful information about the current execution context.

The classes have been kept as simple as possible to make it simple to understand what is happening.

About

Extremely basic Android project demonstrating Aspect Oriented Programming.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages