b4android GUI - Code and Activity Invocation

poseidon

Member
Licensed User
Longtime User
how someone can arrange codes from activities modules, on main listbox ??
Is any magic?

ejx346.jpg



to sum up :

on code modules
-vars + methods are accessible from another activity

on activity modules
-only vars are accessible from another activity

can somehow invoke a method on activity through reflection or somehow?
 

poseidon

Member
Licensed User
Longtime User
re

also this is a little foggy

when I have an activity

B4X:
Sub Process_Globals
   Dim bmp As Bitmap
End Sub


and on parent activity
B4X:
   Activity2.bmp = bd.Bitmap
   StartActivity(Activity2)

the Activity2 made active on line Activity2.bmp = bd.Bitmap ?
 
Upvote 0

poseidon

Member
Licensed User
Longtime User
re

so the way is (?) :

B4X:
Activity2.bmp = bd.Bitmap
CallSub(Activity2, "RefreshData")
StartActivity(Activity2)
//CallSub(Activity2, "RefreshData") //here never comes

or a previous post of yours :
B4X:
If IsPaused(Main) Then
 StartActivity(Main)
 RefreshDataFlag = True
Else
 CallSub(Main, "RefreshData") //when this will be executed? -never!?
End If
 
Upvote 0
Top