Android Question raiseEvent2 problem

Ohanian

Active Member
Licensed User
Longtime User
Hello there
I have a problem in raiseEvent2 method with allowDuringPause parameter .

in RecyclerView i used raiseEvent2 for getItemCount() and getItemViewType(int position) in adapter , though allowDuringPause parameter is true but while scroll if you press back button or for any reason activity is paused , the program stops .
I've also tested another methods for raise.

Errors :

sometimes :

B4X:
activityBA' on a null object reference (@ActitivtyObject is called)

and sometimes :

B4X:
Attempt to invoke virtual method 'int java.lang.Integer.intValue()' on a null object reference
 
Top