Ok there is an option in worklight to call code in native android(java)
I have tested it and it works...but my b4a code is about 2000 lines so it will be a harder task to compile it in eclipse,,,
So i started by compiling this code in b4a and add it in eclipse..
Sub Process_Globals
'These global variables will be declared once when the application starts.
'These variables can be accessed from all modules.
End Sub
Sub Globals
'These global variables will be redeclared each time the activity is created.
'These variables can only be accessed from this module.
End Sub
Sub Activity_Create(FirstTime As Boolean)
'Do not forget to load the layout file created with the visual designer. For example:
'Activity.LoadLayout("Layout1")
Log("a")
End Sub
Sub Activity_Resume
End Sub
Sub Activity_Pause (UserClosed As Boolean)
End Sub
Its nothing just show a log message...But this app force closes when i compiled using eclipse(I have added core.jar and b4ashared.jar in eclipse).Can you please tell whats the problem here?
i have attached a pdf about how to add native support within worklight