我有一个具有 Application 类的 Android 应用程序,并且我有另一个扩展类PhoneStateListener。
我想在我的类中使用 Application 类中的一个对象来扩展 PhoneStateListener。我不能这样做,因为它的PhoneStateListener类没有扩展Activity。
有什么办法可以Application在我的PhoneStateListener班级中使用班级中的对象吗?
我有一个具有 Application 类的 Android 应用程序,并且我有另一个扩展类PhoneStateListener。
我想在我的类中使用 Application 类中的一个对象来扩展 PhoneStateListener。我不能这样做,因为它的PhoneStateListener类没有扩展Activity。
有什么办法可以Application在我的PhoneStateListener班级中使用班级中的对象吗?