button actionbar TwoLayoutActivities

angel

Member
Licensed User
Longtime User
Hello

When I click the button actionbar want to open another Layout startActivity (AddBaby) and fails, if I do a button outside the actionbar works. Click event does not work like longClcick works. In the simulator works, but when I install the application on the phone will stop, let the example.

Thank you.
 

Attachments

  • b4a test.zip
    287 KB · Views: 155

dxxxyyyzzz

Member
Licensed User
Longtime User
Change this line
B4X:
AB.AddButton(LoadBitmap(File.DirAssets, "new baby.png"), "", 5, -1, "", "newbaby_Click")
in to
B4X:
AB.AddButton(LoadBitmap(File.DirAssets, "new baby.png"), "", 5, -1, "newbaby_Click", "")
 
Upvote 0

angel

Member
Licensed User
Longtime User
Now was reviewing the method and seen that put the click event in place of longclick because it works, thanks.
 
Upvote 0
Top