Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/dbankier/ticontentresolver

Titanium native android module to resolve content uri to their native path.
https://github.com/dbankier/ticontentresolver

Last synced: about 2 months ago
JSON representation

Titanium native android module to resolve content uri to their native path.

Awesome Lists containing this project

README

        

# TiContent for Android

Resolves content uri to their native path.
_Very_ useful when using intents to, e.g. record audio.

## Usage

~~~
// if returned something like this from an intent:
var contentUri = "content://media/external/audio/media/635";

var Content = require("yy.ticontent");
var nativePath = Content.resolveAudioPath(contentUri);
alert("Native Path: file://" + nativePath);
~~~

Supports the following commands:

~~~
Content.resolveAudioPath(contentUri);
Content.resolveImagePath(contentUri);
Content.resolveVideoPath(contentUri);
~~~

###Licence: MIT