K
K
KnightForce2015-04-03 23:42:19
Android
KnightForce, 2015-04-03 23:42:19

What happens in this code snippet?

5c9a9f6ac8be4b33913fa59bef396ad7.png

Answer the question

In order to leave comments, you need to log in

1 answer(s)
G
GavriKos, 2015-04-03
@KnightForce

The activity is cast to the OnSeasonSelectedListener type and is actually written to a variable.
But it is not necessary to do this, it is more correct to make the prototype of the onAttach function immediately with the OnSeasonSelectedListener, and not with the Activity.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question