fash866 Member Licensed User Longtime User Jul 23, 2015 #1 My code: Dim acBar As StdActionBar acBar.Initialize("acBar") acBar.Icon=LoadBitmap(File.DirAssets,"ic_action_user.png") acBar.ShowUpIndicator=True The UpIndicator can click and run normally on android 4.0/4.4,But on android 5.0 , the click listener cant work,the code is : Sub acBar_ButtonClicked StartActivity(Main) thisActivity.Finish End Sub
My code: Dim acBar As StdActionBar acBar.Initialize("acBar") acBar.Icon=LoadBitmap(File.DirAssets,"ic_action_user.png") acBar.ShowUpIndicator=True The UpIndicator can click and run normally on android 4.0/4.4,But on android 5.0 , the click listener cant work,the code is : Sub acBar_ButtonClicked StartActivity(Main) thisActivity.Finish End Sub
Erel B4X founder Staff member Licensed User Longtime User Jul 23, 2015 #2 You should use Activity_ActionBarHomeClick event instead. It will work on all versions. Upvote 0
fash866 Member Licensed User Longtime User Jul 28, 2015 #3 Erel said: You should use Activity_ActionBarHomeClick event instead. It will work on all versions. Click to expand... Yes! It' work!!very thank you! Upvote 0
Erel said: You should use Activity_ActionBarHomeClick event instead. It will work on all versions. Click to expand... Yes! It' work!!very thank you!