Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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
});
```