https://github.com/teamsolutionanalysts/ionic-plugin-externalsdcardpath
https://github.com/teamsolutionanalysts/ionic-plugin-externalsdcardpath
Last synced: 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/teamsolutionanalysts/ionic-plugin-externalsdcardpath
- Owner: teamSolutionAnalysts
- Created: 2017-07-31T10:51:00.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2017-08-31T08:14:53.000Z (almost 9 years ago)
- Last Synced: 2025-06-25T19:52:42.769Z (12 months ago)
- Language: Java
- Size: 3.91 KB
- Stars: 1
- Watchers: 2
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Cordova Android external SD card path plugin
Plugin that returns the path of internal and external sd card.
## Using
Install the plugin
$ cordova plugin add https://github.com/teamSolutionAnalysts/ionic-plugin-ExternalSdCardPath.git
```js
var success = function(message) {
var path = JSON.parse(message);
console.log(path.SDCard.external);
}
var failure = function() {
alert("Error calling external Plugin");
}
externalsd.getPath("microSD", success, failure);
```
You can access path of external and internal by following this way:
1) path.SDCard.external
2) path.SDCard.internal
Install Android platform
cordova platform add android
## More Info
For more information on setting up Cordova see [the documentation](http://cordova.apache.org/docs/en/latest/guide/cli/index.html)
For more info on plugins see the [Plugin Development Guide](http://cordova.apache.org/docs/en/latest/guide/hybrid/plugins/index.html)