title: SecurityException after Permission has been used
body: <p>I am having  a serious issue with my app. I use the permission <code>android.permission.ACCESS_COARSE_LOCATION</code> in a broadcast receiver and it runs perfectly. </p>
  
  <p>However after a certain amount of time (this seems to be random) the app crashes with the following output:</p>
  
  <blockquote>
    <p>SecurityException neither user 10086 nor current process has permission android.permission.ACCESS_COARSE_LOCATION</p>
  </blockquote>
  
  <p>I have included the permission in the Manifest using <code>&lt;uses-permission etc /&gt;</code> and as a attempt to make it more specific when I <code>sendOrderedBroadcast</code> I broadcast the permission as well and have given the permission to the broadcast receiver so that it can receive the broadcast which is does. </p>
  
  <p>But like I say after a while the SecurityException is thrown at the second line of code:</p>
  
  <pre><code>TelephonyManager Tel = (TelephonyManager) vb.getPsrC()
              .getSystemService(Activity.TELEPHONY_SERVICE);
  GsmCellLocation cellLocation = (GsmCellLocation) Tel.getCellLocation();
  </code></pre>
  
  <p>This crash seems to only occur on a test device running Froyo.</p>
  
  <p>On a device running Gingerbread, the app just restarts the service using less memory and does nothing. are these problems related or is the Security Exception mutually exclusive to the app crashing.</p>