Add compile macro for only use on android method