i have CustomReceiver that recieve updates in the background , all i"m trying to make the app check if activity is in the front , if it does than click on button programmatically .my app is about synchronized list , so i someone update your list and you on it i want to force refresh button .how to do that ?note : if user is working on the list i do not (!) want to do anything .i tryed something like that \[code\]try { List_Items li = new List_Items(); li.refresh.performClick(); Log.d("never_got", "here"); } catch (Exception e) { }\[/code\]so if activity is not in the front it will catch execption , but it wont push the button...any ideas ?p.s sorry for my english