Skip to content

Latest commit

 

History

History
14 lines (10 loc) · 735 Bytes

README.md

File metadata and controls

14 lines (10 loc) · 735 Bytes

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.