title: Lose data [ 3G / WIFI ] connectivity when phone goes to sleep mode
body: <p>I am using Samsung Galaxy with ICS.</p>
  
  <p>I am developing a SIP client.  the client loses connection with the server once the phone goes in sleep mode.  Have tried the "WIFI Lock" app from android market and have tried setting WIFI_SLEEP_POLICY_NEVER but no success so far.  Have anybody solved this kind of connectivity issue programatically in the past?  I need to have internet connectivity on.  Bet it mobile data / WIFI because I cannot afford to lose the connection with the server.</p>