I am creating wifi hotspot in my phone and I want get its state change event when I switched on or off hotspot.
You can monitor the wifi state with a BroadcastReciver. Here's an example of how to implement it: http://silverballsoftware.com/android-monitor-wifi-state-with-broadcastreceiver