MotoMusher Active Member Licensed User Longtime User Sep 17, 2013 #1 What event is fired when a tab is selected in tabhost? I have several tabs, all working fine. I have a tab I am adding that I want to immediately launch an activity, which is a camera, rather than have the user click into the view.
What event is fired when a tab is selected in tabhost? I have several tabs, all working fine. I have a tab I am adding that I want to immediately launch an activity, which is a camera, rather than have the user click into the view.
NJDude Expert Licensed User Longtime User Sep 17, 2013 #2 You could check the "CurrentTab" in the "TabHost1_TabChanged" event e.g. B4X: Sub TabHost1_TabChanged If TabHost1.CurrentTab = <TAB_NUMBER> Then ... your code End If End Sub Last edited: Sep 17, 2013 Upvote 0
You could check the "CurrentTab" in the "TabHost1_TabChanged" event e.g. B4X: Sub TabHost1_TabChanged If TabHost1.CurrentTab = <TAB_NUMBER> Then ... your code End If End Sub
MotoMusher Active Member Licensed User Longtime User Sep 17, 2013 #3 Thanks. I was trying click, not tabchanged. I appreciate it. Upvote 0