Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/michaeljymsgutierrez/photo-shoot
Standalone application for taking photos and store to json file for general use of other applications through reading from device external directory / default
https://github.com/michaeljymsgutierrez/photo-shoot
android angularjs cordova ionic ionic-framework ios
Last synced: 22 days ago
JSON representation
Standalone application for taking photos and store to json file for general use of other applications through reading from device external directory / default
- Host: GitHub
- URL: https://github.com/michaeljymsgutierrez/photo-shoot
- Owner: michaeljymsgutierrez
- License: mit
- Created: 2017-11-10T00:36:12.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2018-01-08T02:53:03.000Z (about 7 years ago)
- Last Synced: 2024-11-11T08:50:42.044Z (3 months ago)
- Topics: android, angularjs, cordova, ionic, ionic-framework, ios
- Language: JavaScript
- Homepage:
- Size: 4.54 MB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
##### Snippets and Requirements for using generated data from
```Photo-shoot Application```
###### Requirements
```(Must installed plugins)```
1. `cordova file`
2. `com.lampa.startapp`###### How to use data from ```Photo-shoot``` ?
1. On your application wirte down this snippet on your button function for taking picture.
Note: must be on readystate```javascript
var sApp = startApp.set({
"package": "com.ionicframework.photoshoot620171"
});
sApp.start(function() {
console.log("Successfully started");
}, function(error) {
console.log(error)
});```
2. Once ```Photo-shoot``` has launched , take a picture, go ahead and save it. After taking photo ```Photo-shoot``` will automatically closed and reopened mainactivity of your application on its current state.
3. Now, how can I used the data from ```Photo-shoot``` ?
* Simply write down this code on your controller for specific section:
```javascript
$cordovaFile.readAsText(cordova.file.externalRootDirectory, "photoshoot.json")
.then(function (success) {
// Process here your data, parse first before the data
}, function (error) {
// Hadle error here
});
```