tez
tez

Reputation: 5300

Creating custom listeners

How to create a custom listener for things like

1.Relavent listener's method should be called if int field of the activity reaches a particular value

2.Another method of the listener should be called when Light sensor reads a particular value

Upvotes: 2

Views: 6294

Answers (1)

Murat Nafiz
Murat Nafiz

Reputation: 1438

You can implement your own Interface for that. Here you can find an example.

Hope this helps.

Upvotes: 1

Related Questions