Android Question App crash after compile relase!!

Spectre

Active Member
Licensed User
Longtime User
Hi!
My app works perfectly if I do debugging.
But if I compile as relase then you stop just start?
suggestions ????

Spectre
 

Spectre

Active Member
Licensed User
Longtime User
worked without problems, I did not change the name and so on.
Only made a few changes to the code.
In debugging works ... !!!
 
Upvote 0

Spectre

Active Member
Licensed User
Longtime User
HI!

when it begins: the program TesinoMTB was end

This code, the entire app did crash on startup
even if I opened the activity on which the code was implemented ???????

B4X:
Dim lst0 As List
    ProgressDialogShow("Calcolo statistiche tracce...")
    lst0 = File.ListFiles(Global.GPSDir &"/MieTracce")
 
    For i = pnlList.NumberOfViews -1 To 0 Step -1
            pnlList.RemoveViewAt(i)
    Next
        Global.ListWP1.Clear
        btnClear.Visible=False
        btnDelete.Visible=False
        NumberOfRows=0
        pnlList.Height = RowHeight
        SelectedItem=-1 
     i=0
    Try
         Dim txtControl As String
    Catch
        Log(LastException)
    End Try
    Try
        For i = 0 To lst0.Size - 1      
            txtControl=lst0.Get(i)
            txtControl=txtControl.ToUpperCase
            If txtControl.Contains(".GPX")=False Then         
                GlobNomeTrack=""
                GlobDateTrack=""
                GlobTimeTrack=""
                tw.Initialize(File.OpenInput(Global.GPSDir & "/MieTracce/", lst0.Get(i)))             
                Line=tw.ReadLine             
                '************************************* STRING PARSER************************************
                dummy=Line             
                pos1=dummy.IndexOf(";")
                pos2=dummy.IndexOf2(";",pos1+1)
                pos3=dummy.IndexOf2(";",pos2+1)

                pos4=dummy.IndexOf2(";",pos3+1)
                pos5=dummy.IndexOf2(";",pos4+1)             
                GlobNomeTrack=dummy.SubString2(0,pos1)             
                GlobDateTrack=dummy.SubString2(pos1+1,pos2)
                GlobTimeTrack=dummy.SubString2(pos2+1,pos3)
                ecc ecc....
 
Upvote 0

Spectre

Active Member
Licensed User
Longtime User
The previous post has iul code with the problem.

if I add these lines to code the app once completed it will not start but is now in crash.

B4X:
 txtControl=lst0.Get(i)
            txtControl=txtControl.ToUpperCase
            If txtControl.Contains(".GPX")=False Then

This happens even if the code is not the main activity!
 
Upvote 0
Top