GithubHelp home page GithubHelp logo

meonkeys / cordova-file-test Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 9 KB

Home Page: https://stackoverflow.com/questions/38800845/fileerror-code-5-trying-to-use-absolute-file-paths-with-meteor-1-4-cordova

License: MIT License

CSS 1.28% HTML 8.92% JavaScript 89.80%

cordova-file-test's Introduction

cordova-file-test

Demo Meteor mobile app for this stackoverflow question.

The master branch contains original code referred to in the stackoverflow question. The solution branch contains working code.

How to read the code

client/main.js contains all the interesting bits. Hints:

  1. git show master:client/main.js
  2. git show solution:client/main.js
  3. git diff master:client/main.js solution:client/main.js

Check out mobile-config.js, too. Having the app id is handy, and setting the AndroidExtraFilesystems permission is necessary to be able to access external storage.

Test

  1. Clone this repository, checkout solution branch.
  2. Install prerequisites.
  3. Enable USB debugging on the device.
  4. Start app with meteor run android-device.
  5. Copy a file to the device's external storage.
    1. Create a text file a with some contents.
    2. Use something like adb push a /sdcard/Android/data/com.adammonsen.app/files/a.
  6. Open chrome://inspect in a browser.
  7. Touch the button in the app and look for debug output in the console.

Copyright, License

Copyright (C) 2016 Adam Monsen

MIT license.

cordova-file-test's People

Contributors

meonkeys avatar

Watchers

 avatar  avatar

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.