app.showpopup

117 views
Skip to first unread message

Nicola Licari

unread,
Oct 11, 2020, 7:55:22 AM10/11/20
to DroidScript

Good morning,
I do not understand why

app.ShowPopup ("text");

it doesn't show any message on my samsung note8 smartphone.
I have to remedy with

alert ("text");

Steve Garman

unread,
Oct 11, 2020, 11:20:56 AM10/11/20
to DroidScript
Is this an html app or native?

Does the popup appear without the text or do you not see it at all?

What version of DroidScript are you using?

Nicola Licari

unread,
Oct 11, 2020, 3:42:19 PM10/11/20
to DroidScript
Hi Steve, 
the app is native, droidscript version is 1.8 0.0.0.0 
and I don't see the popup.

Steve Garman

unread,
Oct 11, 2020, 4:23:11 PM10/11/20
to DroidScript
I can't remember seeing that problem before.

Does this problem only happen in one app?

If you use a separate minimal app like the code below, does the pop-up show?


function OnStart()
{
lay = app.CreateLayout( "linear", "VCenter,FillXY" );

btn = app.CreateButton( "Test" );
btn.SetTextSize( 32 );
btn.SetOnTouch( btn_OnTouch );
lay.AddChild( btn );

app.AddLayout( lay );
}

function btn_OnTouch()
{
app.ShowPopup( "Popping up" );
}

Nicola Licari

unread,
Oct 13, 2020, 7:31:45 AM10/13/20
to DroidScript

yes Steve, 
even with this code it doesn't work. 
 I also tried with the examples I find on droidscript, where you can copy the code and paste it on a new app or run it directly from the example by starting it with the run key

Steve Garman

unread,
Oct 16, 2020, 5:01:54 PM10/16/20
to DroidScript
No idea what's happening here.

What make and model phone/tablet are you using?

Have you installed a custom ROM? If so, which?

Have you rooted the device yourself? If so, what software did you use?

Nicola Licari

unread,
Oct 18, 2020, 11:46:49 AM10/18/20
to DroidScript
Hi,
I use a Samsung Note8 smartphone
Original smartphone, no custom rom and no root. 
 I don't understand why, and to remedy this problem, I always use alert to display messages.
Not a problem, I'll go ahead to use alert ... thanks.

Steve Garman

unread,
Oct 20, 2020, 11:41:17 PM10/20/20
to DroidScript
There is a suggestion on StackOverflow that this may be something to do with your notification settings

https://stackoverflow.com/questions/53703013/android-toast-doesnt-show-up suggests

Go to your app settings -> Notifications and check if notifications are turned on. This action is possible in newer android versions
Even though a Toast is not a notification, it seems that NotificationManagerService.java will not show Toast if Notifications are disabled

Nicola Licari

unread,
Nov 17, 2020, 4:13:57 AM11/17/20
to DroidScript
Hi Steve 
Sorry for the late reply, it works.
droidscript notifications were disabled. 
 Thanks

Reply all
Reply to author
Forward
0 new messages