Using the AltBeacon library without extending Application

强颜欢笑 提交于 2019-12-13 05:25:32

问题


I have an Android Application that among other things monitor beacons using the AltBeacon library. My problem is that, from my understanding, to have a class monitoring beacons you must make this class extend Application. But I already have a class extending Application.

Now I cant make my other class not extend Application and I cant make my "beaconClass" extend this class.

My only option is to find a way to use the AltBeacon library without extending Application.

So I would like to know if this is even possible and is there any way I could achieve this.

来源:https://stackoverflow.com/questions/30511492/using-the-altbeacon-library-without-extending-application

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!