Hi,I'm interested in abm nativecontroller.
I copied the code to application page(in DEMO):
ABM.Native.Initialize("com.abmaterial.proj2102", "proj2102", "Manual Registration", "http://prd.one-two.com:51042/proj2102")
ABM.Native.VersionCode = "1"
ABM.Native.VersionName = ""
'ABM.Native.AndroidIcon72x72PngPath = "Z:/icon.png"
'ABM.Native.DesktopIcon256x256PngPath = "Z:/temp/icon.png"
ABM.Native.NoConnectionCancel = "Cancel"
ABM.Native.NoConnectionRetry = "Retry"
ABM.Native.NoConnectionMessage = "This application needs an internet connection!"
ABM.Native.QuitMessage = "Do you want to quit this application?"
ABM.Native.QuitYes = "Yes"
ABM.Native.QuitNo = "No"
' Do Not FORGET To DISABLE THIS LINE If YOU WANT To MAKE CHANGES To THE APPS!
'ABM.NativeGenerateApps(false)
and add the red line in the abmbuttonpage:
Sub btn1_Clicked(Target As String)
'If page.IsBlockedEvent("btn1_clicked") Then Return
page.NativeRequest("test")
If page.BlockEvent("btn1_clicked") Then Return
Dim myTexts, myReturns As List
myTexts.Initialize
myTexts.Add("READ IT")
myReturns.Initialize
myReturns.Add("READIT")
myToastId = myToastId + 1
page.ShowToastWithReturns("toast" & myToastId, "toast", "First raised button! (" & myToastId & ")", 5000, myTexts, myReturns)
page.UnblockEvent("btn1_Clicked")
End Sub
When clicked the button,
the log output:
NativePlatform:
This webapp is not running as a native app!
by the way, this line
'ABM.AppSetUseWebWorker(True)
appsetusewebworker is unkown member. why? it's for 3.05?
I copied the code to application page(in DEMO):
ABM.Native.Initialize("com.abmaterial.proj2102", "proj2102", "Manual Registration", "http://prd.one-two.com:51042/proj2102")
ABM.Native.VersionCode = "1"
ABM.Native.VersionName = ""
'ABM.Native.AndroidIcon72x72PngPath = "Z:/icon.png"
'ABM.Native.DesktopIcon256x256PngPath = "Z:/temp/icon.png"
ABM.Native.NoConnectionCancel = "Cancel"
ABM.Native.NoConnectionRetry = "Retry"
ABM.Native.NoConnectionMessage = "This application needs an internet connection!"
ABM.Native.QuitMessage = "Do you want to quit this application?"
ABM.Native.QuitYes = "Yes"
ABM.Native.QuitNo = "No"
' Do Not FORGET To DISABLE THIS LINE If YOU WANT To MAKE CHANGES To THE APPS!
'ABM.NativeGenerateApps(false)
and add the red line in the abmbuttonpage:
Sub btn1_Clicked(Target As String)
'If page.IsBlockedEvent("btn1_clicked") Then Return
page.NativeRequest("test")
If page.BlockEvent("btn1_clicked") Then Return
Dim myTexts, myReturns As List
myTexts.Initialize
myTexts.Add("READ IT")
myReturns.Initialize
myReturns.Add("READIT")
myToastId = myToastId + 1
page.ShowToastWithReturns("toast" & myToastId, "toast", "First raised button! (" & myToastId & ")", 5000, myTexts, myReturns)
page.UnblockEvent("btn1_Clicked")
End Sub
When clicked the button,
the log output:
NativePlatform:
This webapp is not running as a native app!
by the way, this line
'ABM.AppSetUseWebWorker(True)
appsetusewebworker is unkown member. why? it's for 3.05?