{"action":"created","issue":{"url":"https://api.github.com/repos/rovo89/XposedBridge/issues/64","labels_url":"https://api.github.com/repos/rovo89/XposedBridge/issues/64/labels{/name}","comments_url":"https://api.github.com/repos/rovo89/XposedBridge/issues/64/comments","events_url":"https://api.github.com/repos/rovo89/XposedBridge/issues/64/events","html_url":"https://github.com/rovo89/XposedBridge/issues/64","id":105648306,"number":64,"title":"Check Whether Xposed Module is Enabled","user":{"login":"StevenStanleyBayes","id":13411676,"avatar_url":"https://avatars.githubusercontent.com/u/13411676?v=3","gravatar_id":"","url":"https://api.github.com/users/StevenStanleyBayes","html_url":"https://github.com/StevenStanleyBayes","followers_url":"https://api.github.com/users/StevenStanleyBayes/followers","following_url":"https://api.github.com/users/StevenStanleyBayes/following{/other_user}","gists_url":"https://api.github.com/users/StevenStanleyBayes/gists{/gist_id}","starred_url":"https://api.github.com/users/StevenStanleyBayes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/StevenStanleyBayes/subscriptions","organizations_url":"https://api.github.com/users/StevenStanleyBayes/orgs","repos_url":"https://api.github.com/users/StevenStanleyBayes/repos","events_url":"https://api.github.com/users/StevenStanleyBayes/events{/privacy}","received_events_url":"https://api.github.com/users/StevenStanleyBayes/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/rovo89/XposedBridge/labels/question","name":"question","color":"cc317c"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":12,"created_at":"2015-09-09T17:45:01Z","updated_at":"2015-09-12T20:52:31Z","closed_at":null,"body":"I have tried to find a way to check whether the module has been enabled in the Modules of Xposed Installer but I have not found any information. \r\n \r\nCan this be done from an application? Is there any list anywhere? \r\n \r\nOne of the ways is to write something in the error log and read this from the application. Can the error log be read from elsewhere? \r\n \r\nTo find out whether the module is enabled is very important for applications to display a reminder and to adjust performance. Otherwise people may think an application does not work. \r\n "},"comment":{"url":"https://api.github.com/repos/rovo89/XposedBridge/issues/comments/139819107","html_url":"https://github.com/rovo89/XposedBridge/issues/64#issuecomment-139819107","issue_url":"https://api.github.com/repos/rovo89/XposedBridge/issues/64","id":139819107,"user":{"login":"Programming4life","id":2167740,"avatar_url":"https://avatars.githubusercontent.com/u/2167740?v=3","gravatar_id":"","url":"https://api.github.com/users/Programming4life","html_url":"https://github.com/Programming4life","followers_url":"https://api.github.com/users/Programming4life/followers","following_url":"https://api.github.com/users/Programming4life/following{/other_user}","gists_url":"https://api.github.com/users/Programming4life/gists{/gist_id}","starred_url":"https://api.github.com/users/Programming4life/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Programming4life/subscriptions","organizations_url":"https://api.github.com/users/Programming4life/orgs","repos_url":"https://api.github.com/users/Programming4life/repos","events_url":"https://api.github.com/users/Programming4life/events{/privacy}","received_events_url":"https://api.github.com/users/Programming4life/received_events","type":"User","site_admin":false},"created_at":"2015-09-12T20:52:31Z","updated_at":"2015-09-12T20:52:31Z","body":"In Android studio use `BuildConfig.VERSION_CODE` instead of using preferences etc. Resin being when you build your apk in android studio, android studio generates the `BuildConfig.class` based on your project. This class never changes dynamically its a `finale` class with all the variables `static final`. Preferences or any code that would be changed when the user updates the module that code isnt going to work correctly as you've found out. Just use `BuildConfig.VERSION_CODE` like I did and you'll be good to go."}}