In my old app I used the following statement:
where TMM_Run was an activity.
With B4XPages it is now a B4XPages class. If I translate the code to:
the logs give me the following error:
I'm not aware that Sub Globals is valid in a B4XPages class. The format for the nNotify is
Obviously the B4XPage class is not an activity. What should the notify method be?
B4X:
nNotify.SetInfo("The Music Machine", Message, B4XPTMM_Run)
With B4XPages it is now a B4XPages class. If I translate the code to:
B4X:
nNotify.SetInfo("The Music Machine", Message, B4XPages.MainPage.TMM_Run)
B4X:
Process object is expected. {Type=B4XPTMM_Run,Rank=0, RemoteObject=True} is an Activity object.
Declaring the variable in Sub Globals instead of Sub Process_Globals will solve this problem.
B4X:
n.SetInfo(Title as Charsequence, Text as CharSequence, Activity as Object)