[Ssc-dev] update on blog, video, etc..
Shawn Van Every
vanevery at walking-productions.com
Fri Sep 9 18:12:21 EDT 2011
Nathan,
I remember seeing a note regarding a method that I stuck in the code for future reference. It's intended purpose is/was to convert media file uris into paths.
Does this help with some of the issues you are running into?
public String pullPathFromUri(Uri originalUri) {
String originalImageFilePath = null;
String[] columnsToSelect = { MediaStore.Images.Media.DATA };
Cursor imageCursor = getContentResolver().query( originalImageUri, columnsToSelect, null, null, null );
if ( imageCursor != null && imageCursor.getCount() == 1 ) {
imageCursor.moveToFirst();
originalImageFilePath = imageCursor.getString(imageCursor.getColumnIndex(MediaStore.Images.Media.DATA));
}
return originalImageFilePath;
}
-s
On Sep 9, 2011, at 5:00 PM, Nathan of Guardian wrote:
> I had an action packed 24 hours in DC, and am headed back on the
> regional Amtrak.
>
> I've got an edited video that I am attempting to upload to YouTube.
> Working on a blog post with links, etc, all to announce the progress on
> the video proto.
>
> As for ObscuraCamv1.1, been stuck on some tricky stuff related to
> Android Uri's vs. file system paths that Cpp code can use. If I can get
> a build out tomorrow early, I will, but it may have to wait until Monday.
>
> +n
> _______________________________________________
> Ssc-dev mailing list
>
> Post: Ssc-dev at lists.mayfirst.org
> List info: https://lists.mayfirst.org/mailman/listinfo/ssc-dev
>
> To Unsubscribe
> Send email to: Ssc-dev-unsubscribe at lists.mayfirst.org
> Or visit: https://lists.mayfirst.org/mailman/options/ssc-dev/vanevery%40walking-productions.com
>
> You are subscribed as: vanevery at walking-productions.com
Shawn Van Every
vanevery at walking-productions.com
Mobile and Streaming Consulting
http://www.walking-productions.com/notslop
Author: Pro Android Media: http://amzn.to/eYb48C
More information about the Ssc-dev
mailing list