Android Question Toast message of cell phones destroyed If-Then loop

Watchkido1

Active Member
Licensed User
Longtime User
Hi

A Message of cell phones app: ES FILE EXPLORER : "Internal Memory Free Space...GB" destroyed my If-Then loop and prevents the execution of the app.
The message is triggered by saving the text file or the App.
In my Sub Activity_Create is:
B4X:
...
If File.Exists(File.DirDefaultExternal, "140414.txt") = False Then


        File.WriteString(File.DirDefaultExternal, "140414.txt", "Version 140414")
        Msgbox2(txt, txt1,"weiter", "", "", Null)

    Else
    End If
...
If the Msgbox2 appears also comes this phone Internal toast message and deletes the Msgbox2.
Can I terminate a message with another message block?
What can i do?

Video

Frank
 

Attachments

  • Screenshot_2014-04-14-13-24-42[1].png
    Screenshot_2014-04-14-13-24-42[1].png
    85.9 KB · Views: 147
  • Test.zip
    6.1 KB · Views: 144
  • Screenshot_2014-04-14-20-46-15[1].png
    Screenshot_2014-04-14-20-46-15[1].png
    260.3 KB · Views: 134
Last edited:

Watchkido1

Active Member
Licensed User
Longtime User
Thanks for the tip
But I do not understand what you should do this.
My MsgBox is indeed destroyed by the ES FILE EXPLORER App.
I would have to write something to prevent the loop terminates the IF-THEN and crashing my app.


Danke für den Tipp
Aber ich verstehe nicht was das bringen sollte.
Meine MsgBox wird ja von der ES FILE EXPLORER App zerstört.
Ich müsste etwas schreiben um zu verhindern das die IF-THEN Schleife abbricht und die meine App abbricht.
 
Upvote 0

DonManfred

Expert
Licensed User
Longtime User
Sorry, i should have written in english...

I´m not sure that a simple Toastmessage destroy your msgbox. I haven´t heard something like that before...

The problem must be somewhat other i suppose. What happen when you msgbox dissapears? Did you app go into background?
 
Upvote 0

Watchkido1

Active Member
Licensed User
Longtime User
Hi

This message is generated by Android App: ES FILE Explorer
I can switch it off there ....
But that would not solve my problem.
Other users have ES File Explorer on.

Here's a video
 
Upvote 0
Top