Oncreatecontextmenu from

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview:   Periodically call event loop in handler (reentrancy adds complexity). •  Can't maintain local state across events (handler must return). •  No CPU concurrency (not suitable for scien7fic apps). •  Event- driven I/O not always well supported (e.g. poor write buffering). COMP 4521 (Muppala) Android UI Overview 22 Handling UI Events in Android UI Events in Android •  More than one way to intercept the events from a user’s interac7on with the applica7on –  Public callback methods available to handle UI events –  Called by the Android framework when the respec7ve ac7on occurs on that object –  Event listeners: collec7on of nested interfaces with callbacks –  Event handlers: more suitable for custom view classes COMP 4521 (Muppala) Android UI Overview 24 Event Listeners •  Interface in the View class that contains a single callback method •  Called by the Android framework when the View to...
View Full Document

Ask a homework question - tutors are online