Question: I have 3 different activity namely, category,sub\_category and list of items. In sub\_category i created back button using intent Activity. Back button in list\_of items should be focus to sub\_category. i dont know how to do this.. pls guide me..

Answer: 
from category activity
call

```
Intent it=new Intent(category.this,sub_category.class)
startActivityForResult(it);

```

similarly

```
Intent it=new Intent(sub_category.this,list_item.class)
startActivityForResult(it);

```

and in onClickListener of back button simply finish your activity like

```
list_item.this.finish();

```
for going back to previous screen u can call finish() in your current activity. It will remove the current activity from activity Stack and take you to the previous one.