Reputation: 5300
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
Reputation: 1438
You can implement your own Interface
for that. Here you can find an example.
Hope this helps.
Upvotes: 1