Also, android will display such QR code if you go to your wifi settings so you can connect other devices easily.
It was my understanding that the android security model doesn't allow this - specifically the settings permission let's you connect to a new network, but not to get the password back for an already saved network.
I think it came in roughly 9 though.