I need to connect my android mobile phone to my RPi through wifi so i did some search online and found this tried both the automatic way and the manual one provided in the link, and the RPi started to broadcast its wifi! but the problem is when i connect any device to it.. my android phone stucks at "obtaining ip address" and my pc shows troubleshoot the problem, and then the RPi wifi network disappears! another issue in my case that after establishing the hotspot i can't connect to my Rpi via SSH over ethernet cable! so any link or advice to make my RPi broadcast its wifi? (i don't need it to connect me to the internet, just a local wifi network)
I had a very similar situation, hostapd and udhcpd, and it turned out both my Android phone and MacBook were rejecting the DHCP offer from udhcpd because I didn't have any DNS servers configured in udhcpd.conf.
I don't need DNS on this network - this AP isn't a gateway, just a standalone device I need to ssh to every now and then - but once I put in:
opt dns 127.0.0.1
both Android and OS X connected fine.