I am using the broadcaster class to listen to sms messages using this code
package com.escortme.basic;
import android.content.BroadcastReceiver;
import and
Look at the method signature for onReceive()
public void onReceive(Context context, Intent intent) {
You are being passed a context as a parameter. You should be using that context when you need one.
Pol_ViewActivity appState = ((Pol_ViewActivity)context);
EDIT: also I don't know exactly what it is you are trying to do. But you probably shouldn't be trying to obtain an Activity object and call a method on it like you seem to be doing.