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.
client/main.js
contains all the interesting bits. Hints:
git show master:client/main.js
git show solution:client/main.js
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.
- Clone this repository, checkout
solution
branch. - Install prerequisites.
- Enable USB debugging on the device.
- Start app with
meteor run android-device
. - Copy a file to the device's external storage.
- Create a text file
a
with some contents. - Use something like
adb push a /sdcard/Android/data/com.adammonsen.app/files/a
.
- Create a text file
- Open chrome://inspect in a browser.
- Touch the button in the app and look for debug output in the console.
Copyright (C) 2016 Adam Monsen
MIT license.