Ejemplo n.º 1
0
 public void start() {
   if (current != null) {
     app.resume();
     current.show();
     return;
   }
   app = new CordovaApplication();
   app.addPlugin("Camera", new CameraPlugin());
   try {
     app.load("index.html");
   } catch (Exception ex) {
     Log.e(ex);
   }
   app.show();
 }
Ejemplo n.º 2
0
 public void stop() {
   current = Display.getInstance().getCurrent();
   app.pause();
 }