Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
次のようなカスタムリスナーを作成する方法
int1.アクティビティのフィールドが特定の値に達した場合、関連するリスナーのメソッドを呼び出す必要があります
int
2.光センサーが特定の値を読み取ったときに、リスナーの別のメソッドを呼び出す必要があります
そのために独自に実装できますInterface。ここに例があります。
Interface
お役に立てれば。