B4A Question Sub Activity_CreateMenu(Menu As ACMenu) when fired and how to prevent - peacemaker    
Jun 21, 2018HI, All
Sometimes there is error at this sub, if without delay the AppCompat activity is required to be closed.
Seems, the menu is not created yet or so.
When the menu creation starts ? How to...
link: enclose all the code with a TRY:
Sub Activity_CreateMenu(Menu As ACMenu)
Try
'Your code to...
link: How to prevent was answered, Don ?
Seems, this new sync Java sub is solving.... i'm testing...
link: This is not the right place for your suggestion. You are free to create a new thread for your Issue...
B4A Question ACToolbar Menu - Activity_CreateMenu called twice - gravel (first post)    
Jun 18, 2017Yes, thank you. I was thinking I could work round it, but it seemed 'not right' that it was ...
link: I guess that you can add a global variable and use it to ignore the second run:
If MenuAlreadySet...
link: after the first CreateMenu
It gets messed up because the second call to CreateMenu I'm seeing...
link: Why does it mess the state that CreateMenu is called twice?
Have you seen these examples...
B4A Question When is Activity_CreateMenu fired - Noelkman (first post)    
Aug 6, 2017   
(1 reaction)I did't even scroll all the way down on the example. I guess it was too long for me the other da...
link: There're a lot of different examples in this post https://www.b4x.com/android/forum/threads/appc...
link: /appcompat-toolbar-menu-menu_opened-event.82108/. It also has a bonus additional event ;-)...
link: , "ToolbarMenu")))
It is in. Furthermore it is not painting the cart anymore for me. I'm really...
B4A Question Activity_CreateMenu And Translation - BitsAndBytes (first post)    
Jun 30, 2017   
(1 reaction)I am sorry i forgot it! I just add it to the code above :)...
link:
Private acMenuPopup As ACPopupMenu
#IgnoreWarnings: 11
Sub Activity_CreateMenu(menu As ACMenu...
link: No worries. In your solution code, how does the popup menu get shown (isn't...
link: I factory reset an old phone today and ran my project on it in debug mode. It worked - android 4.1.2...
B4A Question [Solved] AppCombat - Activity_CreateMenu - Air (first post)    
Aug 16, 2016Thanks,
i did as you said, now it works....
link: When did the Activity_CreateMenu start?
Before Activity_Resume or after?
after
In...
link: When did the Activity_CreateMenu start?
Before Activity_Resume or after?
In Activity_Resume...
B4A Question AppCompat CreateMenu Error When Activity Paused - Kiran Raotole (first post)    
Feb 20, 2020Thanks...
link: Don't use Msgbox.
Don't initialize the GPS like this. It should be initialized in the starter service.
Check this example: ht...
link: .onCreateOptionsMenu(sale_order.java:136)
at android.app.Activity.onCreatePanelMenu(Activity.java...
B4A Question how to hide menu items created by Activity.AddmenuItem3 - Fayez Boulos (first post)    
Mar 8, 2019Thanks Great Erel, your post solved my problem I can have now a better handle on the menus and changing them dynamically through code. here is Erel post.... I am grateful to you guys...
link: Thanks DonManfred
I tried the project in the link, however it complains of unknown type ACmenu and i...
link: -modifyable-and-advanced-menu.49128/...
link: I found one interesting post regarding this point posted by Erel, I will start reading it now... wis...
B4A Tutorial [java] Creating libraries for B4A - Erel    
Sep 29, 2016   
(8 reactions)).
You should prefer to create process objects. Only create Activity objects if it is really needed...-video-tutorial-creating-simple-library.html
Basic4android has a very good support for external...-activities-life-cycle.html
The IDE is a .Net process. It cannot load or inspect jar files. Therefore... the documentation for the online help.
The XML file is created by using a custom Javadoc tool.
Creating a new project:
1. Create a new Java project (not Android project).
2. Add a reference to...
B4A Question Can I create a menu out side the Activity_Create ?? - JonPM (first post)    
Jan 16, 2013The menu items should only be created in Activity_Create. If you need a custom menu there are some libraries available to do this.
Here is an older thread on the topic...
link: Hi,
I need to create a menu when the Menu button is pressed, so there is a condition will run...
B4A Tutorial Material Design 4 - Modifyable and advanced Menu - corwin42    
Jul 31, 2016   
(33 reactions) _onCreateOptionsMenu(android.view.Menu menu) {
if (processBA.subExists("activity_createmenu"... "Activity_CreateMenu" exists. If yes, then we call it and we provide the activities menu... of Activity_CreateMenu:
Sub Activity_CreateMenu(Menu As ACMenu)
Menu.Clear
Dim item... can get access to the Menu object of the activity. This opens the possibility for modifyable menus... the menu of the ToolBar. For a standalone ToolBar (which is not set as the activity ActionBar) we...
Page: 1  
2  
3  
4  
5  
6  
7