{"action":"closed","issue":{"url":"https://api.github.com/repos/AltBeacon/android-beacon-library/issues/130","labels_url":"https://api.github.com/repos/AltBeacon/android-beacon-library/issues/130/labels{/name}","comments_url":"https://api.github.com/repos/AltBeacon/android-beacon-library/issues/130/comments","events_url":"https://api.github.com/repos/AltBeacon/android-beacon-library/issues/130/events","html_url":"https://github.com/AltBeacon/android-beacon-library/issues/130","id":58313301,"number":130,"title":"Late initialisation of RegionBootstrap","user":{"login":"jchesterisidoro","id":5276353,"avatar_url":"https://avatars.githubusercontent.com/u/5276353?v=3","gravatar_id":"","url":"https://api.github.com/users/jchesterisidoro","html_url":"https://github.com/jchesterisidoro","followers_url":"https://api.github.com/users/jchesterisidoro/followers","following_url":"https://api.github.com/users/jchesterisidoro/following{/other_user}","gists_url":"https://api.github.com/users/jchesterisidoro/gists{/gist_id}","starred_url":"https://api.github.com/users/jchesterisidoro/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jchesterisidoro/subscriptions","organizations_url":"https://api.github.com/users/jchesterisidoro/orgs","repos_url":"https://api.github.com/users/jchesterisidoro/repos","events_url":"https://api.github.com/users/jchesterisidoro/events{/privacy}","received_events_url":"https://api.github.com/users/jchesterisidoro/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-02-20T05:56:36Z","updated_at":"2015-02-22T22:10:45Z","closed_at":"2015-02-22T22:10:45Z","body":"In the reference application, RegionBootstrap is initialised in a custom application class on it's onCreate method and of course, the application class is called before any activity is called.\r\n\r\nIs there a way to initialise RegionBootstrap inside an activity? I already tried making a static variable of RegionBootstrap so i can call it in a different activity, but unfortunately, it doesn't work.\r\n\r\nBeaconApplication.regionBootstrap = new RegionBootstrap((BootstrapNotifier) this.getApplication(), downloadedBeacons);\r\n\r\nThe Regions I needed to be initialised will come from a server, so initialisation of RegionBootstrap must not come from the application class.\r\n\r\nIs there a way to do this?"}}