Android MessageBox options

Android MessageBox options

I want to give users a choice (yes/no or cancel/ok) to perform an action.

For example: when a application is starten, a popup message appears. Pressing yes (or ok) starts the application, pressing no (or cancel) aborts and doesn't start the application.

The example in the scipt for AndroidPlus devices doesn't seem to work.

Anybody got some experience / examples with this?

6 Answers

Order By:   Standard | Newest | Votes
Raymond Chan | posted this 26 August 2019

Please provide more information:

- What are the server and build numbers of your server and device agent?

- What about the device brand and the platform (Android+ or Android Enterprise) used?

- Did you get a message box and the required button(s) shown on your test device screen?  If not, what did you get?   

- Could you please show exactly what are the script commands you used?    How did you get the script sent/initiated on the targeted device?

 

 

  • 0
  • 0
John Doe | posted this 26 August 2019

Hi Mark,

the following is found in the online help for android messageboxes:

 

Note: The Android Plus agent has the following limitations:
  • It does not support a complex showmessagebox that contains more than one command
  • It cannot return the user response
  • It does not support "if" and related keywords

 

Kind Regards John

  • 0
  • 0
Mark | posted this 26 August 2019

- Server: 14.3.4.1087 Agent: 13.7.0.1031

- Zebra MC33. Enrolled as Android+

- Yes, I get a messagebox. The custom buttons don't work, but YES/NO or OK/CANCEL work which is good enough for me

- I run the script from the "SEND SCRIPT" option in the device details.


- Server: 14.3.4.1087 Agent: 13.7.0.1031

- Zebra MC33. Enrolled as Android+

- Yes, I get a messagebox. The custom buttons don't work, but YES/NO or OK/CANCEL work which is good enough for me

- I run the script from the "SEND SCRIPT" option in the device details.

The only thing I need is a way to continue the script (YES / OK) er abort the script (NO / CANCEL).
F.e.
showmessagebox "Text 1" NO_TIMER 4
showmessagebox "Text 2" NO_TIMER 4
When in the "Text 1" messagebox, cancel is pressed, the script should stop (don't show the next messagebox).

I noticed the behavour of the "showmessagebox" has different results when testen in the shell with remote control (in that case the type doesn't work)

  • 0
  • 0
Mark | posted this 26 August 2019

The help function tells me you can use scripting (not very advanced), but even with an if statement for Android Plus devices.
In the shell you can even see the reply of the user.
@John Doe: the manual is not correct, or functionallity is not working....?

  • 0
  • 0
Scott | posted this 26 August 2019

Documentation is incorrect/conflicting.  "IF/THEN" is not supported on Android.  Believe me, I've had several discussions with Soti about that glaring omission.

  • 1
  • 0
Mark | posted this 28 August 2019

Hi Scott,

 

Clear, thank you.

Too bad the messagebox is only to inform, buttons have no function at all.

I'll look for an alternative for this.

  • 0
  • 0

Give us your feedback
Give us your feedback
Feedback