P poseidon Member Licensed User Longtime User May 24, 2012 #1 how someone can arrange codes from activities modules, on main listbox ?? Is any magic? 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?
how someone can arrange codes from activities modules, on main listbox ?? Is any magic? 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?
Erel B4X founder Staff member Licensed User Longtime User May 24, 2012 #2 You can use CallSub to call subs in other activities or services. Note that it will only work with active activities. Upvote 0
You can use CallSub to call subs in other activities or services. Note that it will only work with active activities.
P poseidon Member Licensed User Longtime User May 24, 2012 #3 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
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 ?
Erel B4X founder Staff member Licensed User Longtime User May 24, 2012 #4 No. First the current activity will be paused and then Activity2 will be active. Upvote 0
P poseidon Member Licensed User Longtime User May 24, 2012 #5 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
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
Erel B4X founder Staff member Licensed User Longtime User May 25, 2012 #6 //when this will be executed? -never!? Click to expand... When it is called from a service (and the activity is currently active). Upvote 0
//when this will be executed? -never!? Click to expand... When it is called from a service (and the activity is currently active).