ToastMessageShow not show on real device

ckapucu

Member
Licensed User
Longtime User
In my app ToastMessageShow are working good on emulator but it doesn't show anything on real device. Is it because of short duration?
 

eps

Expert
Licensed User
Longtime User
More likely that it isn't being triggered or you're executing an old version without the toastmessage in it..?
 
Upvote 0

ckapucu

Member
Licensed User
Longtime User
My B4A is last version. My android device os version is 4.1.1. Is there any setting about toggle toastmessage on off?
 
Upvote 0

ckapucu

Member
Licensed User
Longtime User
Solved. I just went to Settings->Manage Applications->[My App] and toggled on Show Notifications and Toasts started to appear. How about a way to programatically set the Application setting "Show notification"? If not i'll use Msgbox instead.
 
Upvote 0

ValDog

Active Member
Licensed User
Longtime User
I have an instance where the ToastMessageShow is not being shown. Code snippet is:

Sub btnInfo_Click
ToastMessageShow("Searching for peaks!", True)
PeakSearch
End Sub

The PeakSearch routine executes, but I don't see the ToastMessageShow line execute. If I insert the ToastMessageShow line again, before the PeakSearch call, I do see the message - but only after PeakSearch executes.

Anyone have any ideas?
 
Upvote 0

ValDog

Active Member
Licensed User
Longtime User
So what is the code in PeakSearch?

I don't understand why that have anything to do with the firing of the ToastMessageShow call?

The PeakSearch code is proprietary - just a lot of manipulation of array data and interface with SQLite database table.
 
Upvote 0

eps

Expert
Licensed User
Longtime User
I don't understand why that have anything to do with the firing of the ToastMessageShow call?

The PeakSearch code is proprietary - just a lot of manipulation of array data and interface with SQLite database table.

I thought you'd commented that code out and the Toastmessage worked.. Hence the question.
 
Upvote 0

ValDog

Active Member
Licensed User
Longtime User
I thought you'd commented that code out and the Toastmessage worked.. Hence the question.

Well, I did - but it still does not make any sense???

I guess I could go thru PeakSearch and comment code out until I find where it is choking the ToastMessageShow call... I'll have to think about that.
 
Upvote 0
Top