i need to get object list view
in broadcast receiver
class...
but if i write listView = (ListView) findViewById(R.id.listView1);
i get error.
Any ideas?
THANKS in advance everybody!
I hope that you can help me!
public class AlarmReceiver extends BroadcastReceiver {
private Intent intent;
String value1 = null;
String value2 = null;
ListView lv;
ArrayList<String> al;
ArrayAdapter<String> aa;
ArrayList<Sms> dataSms;
public static CustomAdapter adapter;
ListView listView;
/* @Override
protected void onCreate(final Bundle savedInstanceState) {
lv = (ListView) findViewById(R.id.listView1);
}
*/
@Override
public void onReceive(Context context, Intent intent) {
// TODO Auto-generated method stub
// TextView textView = (TextView) ((Activity) context).findViewById(R.id.textView1);
listView = (ListView)findViewById(R.id.listView1);
}