[Class] Custom Toast Messages

SoyEli

Active Member
Licensed User
Longtime User
Hello:

[Class] Custom Toast Messages

Is this like a custom msgbox ?
Or can it work like the real "ToastMessageShow" ?
I could not get it to work on top of other screens, like when the phone rings you can not see it.

Thank you :)
 

margret

Well-Known Member
Licensed User
Longtime User
Within your APP it should work just like the standard toast message. On a device with a phone it may not as the OS will bring it's selected app to the front when a call takes place. I have noticed this on the Galaxy SII when any app is running and a call comes in, it pauses the app and brings the phone app to front. Some apps, even the ones that come with the phone, restart the activity after the call is completed as if it was FirstTime = True. I don't know if there is any way around this, maybe someone else can provide some input.
 
Upvote 0

margret

Well-Known Member
Licensed User
Longtime User
It's not really like a msgbox but you could call it a sort of msgbox because it does show messages. It is however modeless and without seeing the Java code for the default toast message, I would think it's very similar as much as it can be in B4A.

It is a panel with a label and set to the front most position with a timer to control the amount of time it is displayed. The issue is once the app using this class is released, the toast is released with it. The OS is what normally handles the toast and why it can still be displayed when you exit the app. That is the one thing this will not do, nor can it display as the top level form for a different application. But, it will do some things the system toast message will not!:D
 
Upvote 0

bsnqt

Active Member
Licensed User
Longtime User
It's not really like a msgbox but you could call it a sort of msgbox because it does show messages. It is however modeless and without seeing the Java code for the default toast message, I would think it's very similar as much as it can be in B4A.

It is a panel with a label and set to the front most position with a timer to control the amount of time it is displayed. The issue is once the app using this class is released, the toast is released with it. The OS is what normally handles the toast and why it can still be displayed when you exit the app. That is the one thing this will not do, nor can it display as the top level form for a different application. But, it will do some things the system toast message will not!:D

margret, if you have time please read my post HERE
 
Upvote 0
Top