Android Question ToastMessageShow shows more than 7sec.

Sinan Tuzcu

Well-Known Member
Licensed User
Longtime User
Helo,

is there an opportunity for shows the ToastMessageShow for more 7 sec.?
Because, I have a long string and nobody can it read to end before msg is closed.
With TRUE is still short.

BR
Sinan
 

ilan

Expert
Licensed User
Longtime User
Helo,

is there an opportunity for shows the ToastMessageShow for more 7 sec.?
Because, I have a long string and nobody can it read to end before msg is closed.
With TRUE is still short.

BR
Sinan

you can create your own toastmsg and close it after x sec. or use a msgbox instead.

you should have a look at the Sleep() command (resumeable sub).
 
Upvote 0

Mahares

Expert
Licensed User
Longtime User
This can be as a good alternative: MsgboxAsync
B4X:
MsgboxAsync("Message", "Title")
Wait For MsgBox_Result (Result As Int)
 
Upvote 0

ilan

Expert
Licensed User
Longtime User
Helo,

I have all try it, but in the Service Modul it doesn't works. I get onyl an errormsg.

do you want to show the message while app is in forground?
why are you calling it from a service?

if the app is in forground you can call from the service a sub that is in the main activity and then show yourmsgbox or a custom toastmessage.
from a servie as far as i know you cannot show msgbox or views. you can only use a toastmessagebut the question is why are u trying to do it from a service?
is a activity in forground?
 
Upvote 0
Top