Back button function in android
<p>Hi i have three column in database 1)topic 2)subtopic 3)imagename.first i am getting all topic from db in listview. in on clicklistitem am getting subtopic where topic equal which an item i selected if there is no subtopic am directly displaying image.if subtopic present am displaying all subtopic in listview then in onclick listitem am displaying image.now from image if i press backbutton it should list corresponding subtopic listview if it comes from subtopic listview else direct to main listview.how to do this?i couldnt display subtopic listview remaining working fine.</p>
