Can't connect to own Ubuntu-created WiFi hotspot

I followed this guide to create a hotspot:

Create WiFi hotspot on ubuntu

I go through all the steps but when it comes to the end, connecting my laptop to the hotspot, it does not work.

I have tried connecting to a hidden WiFi network but this also does not connect.

Can anyone help?

$ lsb_release -a
    Distributor ID: Ubuntu
    Description:    Ubuntu 15.04
    Release:    15.04
    Codename:   vivid

$ uname -a
Linux mylinux 3.19.0-28-generic #30-Ubuntu SMP Mon Aug 31 15:52:51 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux

/etc/NetworkManager/system-connections$ sudo cat android-wifi 
[connection]
id=android-wifi
uuid=af9a2d23-c1e4-409d-a80e-d8c8271ba291
type=wifi

[wifi]
ssid=android-wifi
mode=ap
mac-address=A0:A8:CD:6F:0C:34

[wifi-security]
key-mgmt=wpa-psk
psk-flags=1

[ipv4]
method=shared

[ipv6]
method=auto
ip6-privacy=0

Solution 1:

I found the answer.

After following the guide and before enabling WiFi, restart the Network Manager with:

sudo service network-manager restart

Then enable WiFi and it should connect.

Solution 2:

I too face same problem that you had I and I solved by.
Going into system settings; Click the Network Icon -> Edit Connections -> Select your Wifi Network (In your case select android-wifi ) -> Click Edit.

A dialogue box opes like this. enter image description here
Make sure you have checked Automatically connect to this Network...

After that Restart your computer.

Your Wifi Network is now available to use.