0

I have a scan tab which is already selected . When it is pressed for first time it starts the camera. and if we press back without scanning the below image is seen. now i want to again start the camera by clicking the scan tab, without changing the tab.how to do this?

user2699728
  • 377
  • 2
  • 8
  • 25

1 Answers1

0

When you are returning to your activity perform setSelected(false) on your tab.

Evgeni Roitburg
  • 1,958
  • 21
  • 33
  • True my bad. Please refer to this post it will surely help you: http://stackoverflow.com/questions/4337514/android-tabwidget-detect-click-on-current-tab/7750320#7750320 – Evgeni Roitburg Sep 18 '13 at 07:05