{"action":"created","issue":{"url":"https://api.github.com/repos/AltBeacon/android-beacon-library/issues/250","labels_url":"https://api.github.com/repos/AltBeacon/android-beacon-library/issues/250/labels{/name}","comments_url":"https://api.github.com/repos/AltBeacon/android-beacon-library/issues/250/comments","events_url":"https://api.github.com/repos/AltBeacon/android-beacon-library/issues/250/events","html_url":"https://github.com/AltBeacon/android-beacon-library/issues/250","id":96774272,"number":250,"title":"How do I initialize/disable the library at runtime?","user":{"login":"danielesegato","id":469948,"avatar_url":"https://avatars.githubusercontent.com/u/469948?v=3","gravatar_id":"","url":"https://api.github.com/users/danielesegato","html_url":"https://github.com/danielesegato","followers_url":"https://api.github.com/users/danielesegato/followers","following_url":"https://api.github.com/users/danielesegato/following{/other_user}","gists_url":"https://api.github.com/users/danielesegato/gists{/gist_id}","starred_url":"https://api.github.com/users/danielesegato/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danielesegato/subscriptions","organizations_url":"https://api.github.com/users/danielesegato/orgs","repos_url":"https://api.github.com/users/danielesegato/repos","events_url":"https://api.github.com/users/danielesegato/events{/privacy}","received_events_url":"https://api.github.com/users/danielesegato/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-07-23T09:51:18Z","updated_at":"2015-07-23T13:23:11Z","closed_at":"2015-07-23T13:00:05Z","body":"Hi,\r\n\r\nthe documentation say I need to initialize the library in the Application onCreate().\r\n\r\nBut I have the data needed to initialize it at runtime.\r\n\r\nSpecifically at runtime (after a remote http service call) I know:\r\n- IF beacon tracking should be started at all\r\n- which regions to monitor\r\n\r\nFurthermore I may need to turn it off completely afterward in the lifecycle of the app.\r\n\r\nWhat's the correct way with the current version of the library to handle this use case?"},"comment":{"url":"https://api.github.com/repos/AltBeacon/android-beacon-library/issues/comments/124096889","html_url":"https://github.com/AltBeacon/android-beacon-library/issues/250#issuecomment-124096889","issue_url":"https://api.github.com/repos/AltBeacon/android-beacon-library/issues/250","id":124096889,"user":{"login":"danielesegato","id":469948,"avatar_url":"https://avatars.githubusercontent.com/u/469948?v=3","gravatar_id":"","url":"https://api.github.com/users/danielesegato","html_url":"https://github.com/danielesegato","followers_url":"https://api.github.com/users/danielesegato/followers","following_url":"https://api.github.com/users/danielesegato/following{/other_user}","gists_url":"https://api.github.com/users/danielesegato/gists{/gist_id}","starred_url":"https://api.github.com/users/danielesegato/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danielesegato/subscriptions","organizations_url":"https://api.github.com/users/danielesegato/orgs","repos_url":"https://api.github.com/users/danielesegato/repos","events_url":"https://api.github.com/users/danielesegato/events{/privacy}","received_events_url":"https://api.github.com/users/danielesegato/received_events","type":"User","site_admin":false},"created_at":"2015-07-23T13:23:11Z","updated_at":"2015-07-23T13:23:11Z","body":"Fair enough.\r\nThat didn't replied all my question so I created a new one:\r\nhttp://stackoverflow.com/questions/31588667/how-can-i-start-disable-background-monitoring-for-beacons-at-runtime-with-altb"}}