Android Question Process Gloabel Variable

bijou

Member
Licensed User
Hi

When i declare a variable in a process global of my activity, an int variable or timer or mediaplayer, they are not valid for the whole program as it should be, but i have to define them again in each activity, is it normal ?!

B4X:
#Region  Activity Attributes
    #FullScreen: true
    #IncludeTitle: True
#End Region

Sub Process_Globals
    Dim MediaPlayer1 As MediaPlayer
    Dim timer1 As Timer

if not
syntax error
undeclared variable media player1 used before ...
 
Cookies are required to use this site. You must accept them to continue using the site. Learn more…