B4J Question Restart App from code?

Mark Read

Well-Known Member
Licensed User
Longtime User
I have a bluetooth connection from tablet to RPi. The RPi is running a small B4J program with UI.

I can send commands to the pi, catch and execute them (eg Close running app, open com port etc.).

Is it possible to restart a running App by sending a command? The reason is simple, my Pi will be in a place where I cannot reach it to touch the screen.

Many thanks.
 

DonManfred

Expert
Licensed User
Longtime User
Just a thought:

Send the command, on th destination app you start an batch-file which waits some second and then starting your app. Quit the destination app after starting the batch...

Don´t know if this works; give it a try
 
Upvote 0

Mark Read

Well-Known Member
Licensed User
Longtime User
Thanks Jmon, I had not seen that library. Will look into it.
 
Upvote 0

Mark Read

Well-Known Member
Licensed User
Longtime User
If I remember well you can restart the app with AwtRobot

JFI there is a reboot event in this library but it will only work under windows. Thanks anyway. Still looking at jShell.
 
Upvote 0
Top