I searched and didn't find anything about how to call exit from a mobile Errai app.
I looked at source code and came up with this for android:
public class MainPage extends Composite
{
@Inject
CordovaProducer cordovaProducer;
....
protected void backButtonPushed(@Observes BackButtonEvent event) |
{
this.cordovaProducer.getPhoneGap().exitApp(); |
}
}
This seems to work. Is it the correct way?
jcl.