robotemi / sdk

temi is an unparalleled robotic platform introducing a new dimension of development - movement. Using temi’s SDK, developers can create new functionalities and introduce new use cases via temi’s Android tablet. temi’s movement and navigation capabilities run off of it's Linux computer and uses a set of 16 sensors including a Lidar, depth cameras, driving cameras, and microphones. We encourage our developer community to suggest and request expanded functionality within the SDK and we will adhere to your needs. We want to enable you to create skills like never seen before! We will be constantly improving the SDK and its documentation. Please feel free to reach out to us with any questions or thoughts at developers@robotemi.com
https://www.robotemi.com/
205 stars 87 forks source link

setKiosk(false) issue #469

Open luca-skrzydlewski-ssg opened 3 months ago

luca-skrzydlewski-ssg commented 3 months ago

I used this code to close the app and disable kiosk:

TemiProvider.setKiosk(false) finishAffinity(activity) exitProcess(-1)

but it doesn't work anymore, the app closes but as it is still a kiosk it reopens immediately. Is there any problem with setKiosk method?

zjn0505 commented 3 months ago

Please make sure this method is actually called.

https://github.com/robotemi/sdk/wiki/Kiosk-Mode#setkioskmodeon

luca-skrzydlewski-ssg commented 3 months ago

Yes, setKiosk is a simple wrapper for setKioskModeOn:

fun setKiosk(enable: Boolean = true) {
    Robot.getInstance().setKioskModeOn(enable)
}