Save pictures to custom folder in media library - image

WhatsApp now saves pictures to a custom folder named "WhatsApp" in the media library.
Is WhatsApp using a undocumented API or is this possible for every developer?
Right now I am only aware of the possibility to save pictures to the "Camera Roll" or to the "Saved Pictures".

It appears WhatsApp has special permission to do that as no current APIs for Windows Phone 8 (with GDR3) allow you to specify a folder name.
The hope is that Windows Phone 8.1 will introduce new APIs for both saving pictures and video.

Related

codenameone downloading files/images visible to other apps

I note that other apps (testing on Android) like WhatsApp, etc have folders that contains images the user has used/downloaded. These folders (like WhatsAppImages) are visible in other apps (Gallery/File Explorers, etc) so you can use those files to share, delete, etc like any other file.
In my codenameone app I download image files but they cannot be seen anywhere on the local device. I understand that for security apps run in a sandbox and this may be why.
But how do these other apps make their downloaded files visible to the general file system and other apps ?
Many Thx
Codename One doesn't support that at this time but you can use native interfaces to add this as explained here for Android: How to save image in android gallery
and here for iOS: How can I save an image to the camera roll?
You can also file an RFE to add this either as a cn1lib or API.

Share videos camera roll wp 8

I tired to googling that how share videos form camera roll in windows phone 8 like in Nokia video upload and facebook app. I used to try this
http://msdn.microsoft.com/en-us/library/windowsphone/develop/ff967563(v=vs.105).aspx
Only share picture but I want to share only videos for my app e.g. when my app show in list when share a video by camera roll of windows phone in sharing
To quote the link you included in your question:
Note that this extensibility is only available when the photo is a JPG
file.
And from my experience, I can confirm that it is not possible to register your app as a share target for a video file.
In other words, if a user tries to share a video from the camera roll or another app, there is no way to make your app appear as one of the options in that list.
Did you try using the share media task function?
Check this article out from the msdn :
http://msdn.microsoft.com/en-us/library/windowsphone/develop/jj207027(v=vs.105).aspx
You can use MediaLibrary and there is already an answer for your question in this link. As said, there is no way to select existing sound media and video files through default choosers. Thank you.

Add songs/photos/videos to Windows Phone 8 Emulator

How can I add media files to library folders of WP emulator so that I can list them in my program?
The Windows Phone 8.1 SDK allows you to use a folder on your dev machine to simulate an SD card for the emulator. If you put a bunch of media files in that folder before "inserting" it into the emulator, they will get picked up and added to the appropriate libraries.
Note that it can take a few seconds for media indexer to wake up and go through the content but you can easily check on its progress in the appropriate built-in app (eg. Music or Photos).
You can find this feature in the emulator's Additional Tools window:
you need to use SaveSong from MediaLibrary
have a look at this
One of the new features of the Windows Phone 8 SDK is the ability to save(add) songs to the phone's MediaLibrary.
Try this out for Songs.
for photos
Try this

Using Cordova/Phonegap to save an image taken from the phone camera Windows Phone 7

I am using Visual Studio 2010 and the Windows Phone 7 Emulator in order to create an app which allows the user to take a photo and then save it into a folder on the file system and also create a reference of it on the database so as all of the images on the database can be displayed on the app. I can't however save the Image that is taken by the camera, I have spent ages looking through the Cordova docs and other websites. It looks as if I need the file location of the image taken by the camera but I cannot get the consol.log to open, I have been through my Registry Editor and I cannot get it to display. I would love an example which would show me how to get the camera image and either save it to localstorage or create a copy in order to save it into a folder.
Thanks in advance
Use FILE_URI for Camera.DestinationType option. It will make the image captured stored in the device's image gallery.
Reference: http://docs.phonegap.com/en/2.6.0/cordova_camera_camera.md.html#cameraOptions

How add video from app to collection?

My app downloads video from server and saves it in IsolatedStorage.
Can i add this video to phone collection?
No, it's not possible in Windows Phone 7. You can use MediaLibrary that will give you access to metadata related to existing songs and pictures, but that's about it. You cannot currently read or write videos stored on the phone.

Resources