toast displaytoast display

i am beginner in android,and thanks for giving the check connection code ,and if you give example code for show the toast message whenever the net is up or down without activity .(it show in home page itself)it will help full for me ,i am also tried by using BroadcastReciver but its not working i don't no where i did a mistake . please help thanks....

SUBMIT YOUR ANSWER

  |  
 
 
 

Preview :