How to bring application to foreground when SMS is received in Android
<p>I have an application in android which receives SMS in a specific port. When my application is not running or it is running in background, how can i get the application to foreground and receive the SMS automatically?
Currently it is not receiving an SMS when it is in background. The SMS is only received by the native Messages application.</p>

<p>Also  I want to use sendOrderedBroadcast because my messages should not be stored in native message inbox. So, i have to use sendOrderedBroadcast. Does anyone have an example code for how to do this?</p>

<p>Thanks in advance</p>
