0 Replies Latest reply on Nov 21, 2013 3:29 PM by jclgml

    Exit app from mobile

    jclgml

      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.