Пример #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();
 }
Пример #2
0
 public void stop() {
   current = Display.getInstance().getCurrent();
   app.pause();
 }