Coder Social home page Coder Social logo

cordova-android-chromium's Introduction

Introduction

This project is forked from Davis Ford's android-chromium it is very important to read the original documentation from his repository.

Goal of this Project

The goal of this project is to make the Cordova API to run inside the Chromium WebView.

Project Structure

This project contains three sub-project added to the android-chromium code.

  • cordova - The version 2.9 of Cordova framework, I've made some changes to it so that it works with the Chromium Web View.
  • cordova-chromium The bridge between Chromium classes and the Cordova classes. It contains the bare minimum code to make the cordova framework compile and replaces the stock Android Web View interfaces with Chromium ones.
  • cordova-chromium-sample The APK project that uses both the cordova( which in turn depends on cordova-chromium).

Build / Install

Make a copy of local.properties.sample and edit it to point to the folder where your SDK lives

$ cp local.properties.sample local.properties
$ vi local.properties

Use the gradle wrapper. Run gradlew build (Mac / Linux) or gradlew.bat build (Windows) -- either command will build everything in the whole project space. Alternatively, you can install gradle yourself, if you'd prefer to not use the wrapper (it is painless).

$ cd cordova-chromium-sample && gradle installDebug

Known Issues

  • Since I've taken code from Content Shell project to make Cordova work, The file:///android_asset and file:///android_res url schemes does not work I guess that is because the native .so library file that comes with Content Shell does not support these kind of schemes so a temporary solution is to copy a www.zip file to the assets folder of the project and unzip the file to a location on the data directory of the application and load the files from there. There are plans in the future to make it work.

cordova-android-chromium's People

Contributors

davisford avatar r4md4c avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

cordova-android-chromium's Issues

Application Crashes when pressing back button then start the app again.

As the title states the application crashes when starting the application after back button is pressed with NullPointerException.

That happens because the Browser process is created on the Application context not the Activity, so when the back button is pressed just the front Activity is destroyed not the Application.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.