In my application I am sending a port SMS to the mobile.
And when the message is recieved I need to perform some task in my activity and update the UI.
The Context that your BinarySMSReceiver is passed in onReceive is not an Activity - it is the Context in which the receiver is running. To start an Activity, you need to use context.startActivity(Intent) and pass any additional data to the Activity using the Intent.