Skip to content

liveoak-io/liveoak-example-gallery-cordova

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Gallery Cordova Android Example

This demo application runs as a native application on a mobile device or emulator. It connects remotely to LiveOak endpoints provided by 'gallery' example application.

Installing the application

  • Run Gallery application on LiveOak as described in Gallery Example README.md

  • Open www/js/app.js, and set the value of HOST variable (line 2) to INET_ADDRESS where Gallery is running. Currently it is set to 10.0.2.2 which corresponds to a localhost running an Android emulator.

  • Make sure to have latest version of cordova installed. This demo was tested with [email protected] (NOTE: Updating cordova version might break applications using plugins from previous cordova versions. If you update your cordova version, make sure that you remove and reinstall all plugins again)

  • Set up Cordova native Android project:

$ mkdir platforms plugins
$ cordova plugin add org.apache.cordova.inappbrowser
$ cordova plugin add org.apache.cordova.camera
$ cordova plugin add org.apache.cordova.file
$ cordova platform add android

Running the application

  • Build native application from web app, and run it:
$ cordova run android

Whenever you change web application in www/ simply rerun the last command, to rebuild it as native Android app.

See detailed documentation here .

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published