How seriously is recreational cannabis use viewed by cops here?

Will the cops convict me for having a gram or two? And what’s the best way to smoke it if I’m flatting?