Android Question Start Activity works only in debug mode

ronovar

Active Member
Licensed User
Longtime User
I have this code:

B4X:
'CHECK - tmrCheck
Sub tmrCheck_Tick
    'CHECK - LoadChannels
    If (Authorisation(2).Length > 0) Then
        'SHOW - TV
        StartActivity(TV)
    End If
   
    'CHECK - ReadyTV
    If (TV.ReadyTV = True) Then
        'STOP - tmrCheck
        tmrCheck.Enabled = False
        'HIDE - BootScreen
        HideBootScreen   
    End If
End Sub

This works excellent in debug mode, but when i compile as release mode it exits application because of this code:

StartActivity(TV)

I have Main Activity and TV Activity...in Main Activity i have Sub tmrCheck_Tick that Starts Anothet Activity TV...how i need to declare or what i have done wrong...in debug mode start activity TV in release exits application.

I can't figure out why.
 

ronovar

Active Member
Licensed User
Longtime User
Thanks..Erel..i was working before using B4A Bridge (Wifi)...now i connect OTG cable to android device and run apk in release mode and i see error..file not found (some png file)....so i added it into files tab and now apk works excellent in release mode.

Thanks for pointing me out with usb debugging.
 
Upvote 0
Top