Android Question Disable Android "App not responding" message

GiovanniPolese

Well-Known Member
Licensed User
Longtime User
Hi to All
Is it possible to disable the message that Android displays when the App is doing a long time operation?
Thanks
 

GiovanniPolese

Well-Known Member
Licensed User
Longtime User
Hi to All
Is it possible to disable the message that Android displays when the App is doing a long time operation?
Thanks
By the way, I found a possible answer, while I don't know the explanation. Take a glance at the following code. Here I have put the ProgressDialogShow, which "seems" to block the OS message asking for wait or Close the App. Empirically it seems to work. I don't know whether it is actually a solution or not..

B4X:
Private Sub LeggeFile_Click
    
    ProgressDialogShow("Reading..") ' this appears only with the following Sleep 
    
    Sleep(100)

    If FileName.Length>0 Then ' a long reading operation
    
        If File.Exists(Starter.rp.GetSafeDirDefaultExternal(""), FileName) Then
        
             wait for (LongFileRead(FileName))  Complete (res As Boolean)
    
            If res Then
               ..............
              ...............
            End If
        End If
    End If
    
    ProgressDialogHide
    
End Sub
 
Upvote 0

MicroDrie

Well-Known Member
Licensed User
Hmm Erel sometimes makes a casual remark that is often the solution to another challenge. If I'm not mistaken I read somewhere that a dialog is blocking the appearance of the next message during the display of a previous dialog. This would suppress the timeout notification of a program not responding.
 
Upvote 0
Top