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?
Asked
Active
Viewed 121 times
0
-
Post some relevant code so that one can provide you solution. – GrIsHu Sep 18 '13 at 07:11
1 Answers
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