Hi all,
I have created my b4xtemplate by mixing Klaus's and Erel's ,but when I add the command #If B4A in B4A Ide,why not changed in B4J (there is not have #If B4A command in B4J) after I have saved.
I have created my b4xtemplate by mixing Klaus's and Erel's ,but when I add the command #If B4A in B4A Ide,why not changed in B4J (there is not have #If B4A command in B4J) after I have saved.
B4X:
'Klaus 's template code
....
....
'Erel's template addition only B4A 1.01
#if B4A '<==Add the command
#Region Delegates
Sub Activity_ActionBarHomeClick
B4XPages.Delegate.Activity_ActionBarHomeClick
End Sub
Sub Activity_KeyPress (KeyCode As Int) As Boolean
Return B4XPages.Delegate.Activity_KeyPress(KeyCode)
End Sub
Sub Activity_Resume
B4XPages.Delegate.Activity_Resume
End Sub
Sub Activity_Pause (UserClosed As Boolean)
B4XPages.Delegate.Activity_Pause
End Sub
Sub Activity_PermissionResult (Permission As String, Result As Boolean)
B4XPages.Delegate.Activity_PermissionResult(Permission, Result)
End Sub
Sub Create_Menu (Menu As Object)
B4XPages.Delegate.Create_Menu(Menu)
End Sub
#if Java
public boolean _onCreateOptionsMenu(android.view.Menu menu) {
processBA.raiseEvent(null, "create_menu", menu);
return true;
}
#End If
#End Region
#End If