Can I get a downloaded file outside a WP7 device? - c#

It seems that all wp7 apps have sandboxing. My app downloads an MP3, can I at least sync it with Zune or somehow save it to PC?

In the current version of WP7 you cannot save songs to the media library.
You can save them to IsolatedStorage, but since your goal is to transfer them off the device, your only option is to upload them to a web service. From there you can then transfer the files to a PC etc.
Thanks,
Stefan Wick - Microsoft Silverlight

Anything that you download can be saved to isolated storage, but that is unique to your application, is not synched with Zune, and cannot be accessed by other applications. You could take a look at this approach for desktop communication, but then you'd need to provide a desktop application. In which case, you might just as well download the MP3 on the desktop and let Zune sync it with your WP7 normally. If you're provided something more than just media playback, then you can just access the phone's media library from your app.

Related

Is there a way to access device browser data with xamarin Forms?

I want a xamarin application to be able to access current browser data on the device. Xamarin.Essentials will give the platform and os being used, so knowing that is there a way (on ios for example) to access the browser data on the device? Example: what tabs are open
Apple care about the security and privacy of user ver much .It's impossible in iOS now .
From iOS file system , an iOS app operating within its own sandbox directory generally .
Although iOS can sharing data between iOS apps and app extensions , however that needs to configure in sahred App (Here is Safari in iOS).
App Groups are the mechanism iOS uses to allow different apps to share data. If the applications have been properly configured with the correct entitlements and provisioning, they can access a shared directory outside of their normal iOS sandbox.
As far as I know , Safari not provides data api for other apps to use .
Reference documents :File system access in Xamarin.iOS, File System Programming Guide

Would It Be Possible To Use The "Share Data Contract" For UWP To Upload Via The Instagram App On Unsupported Upload Devices Running Windows 10?

This is probably a really stupid question to many of you out there but I personally don't know and would like to understand, is it possible to use the share data contract for UWP to share and upload photos to the Instagram Windows 10 app.
As I am aware only touchscreen devices running windows 10 can publish videos and photos to Instagram natively so if it works would be very handy as it would allow unsupported devices to upload and share content.
If you have installed the Instagram app on your devices, you will find that it has registered protocol in the system.
Then you could use the UWP Share data APIs to share images to Instagram.
Here’s MS official Sharing content source app sample.

Auto Camera Upload on Windows 10 UWP App

I would like to add to my app UWP on Windows 10 auto camera upload to the cloud function.
So basically I need this functionality, which according to other sources was not supported in WP8.1 so I dropped the idea.
Now when Lumia 950 and Windows 10 Mobile is out I would very much liked to add this function to my app, but unfortunately I can't find anything about it on newest Windows Mobile. Maybe you can help?
The page you link to is only about having a specific page for the auto upload settings within an app. It doesn't do the automatic uploading for you.
That list was only in WP8 and is not in Windows10 so you can't be added to a list that doesn't exist.
To do the uploading you should look at the Background Transfer API. Specifically the BackgroundUploader class.
There's even a sample. (sample is for Win8.1 but should work with minimal modification.)
update - based on coments
I don't know how Dropbox do it (they may have special privileges not available to every developer) but you could create the functionality to upload newly taken photos by having a background task based on a timed event that checks for new files in the camera roll and uploads any it finds.
this feature is only supported by Silverlight app model, not Universal Windows Platform model.
You might want to use the OneDrive SDK to upload your photo/video to the Cloud https://github.com/onedrive/onedrive-sdk-csharp

How to add photo to iPhone from desktop?

Recently, i want to create an application to sync photos between iphone and desktop by using C# language. I use Manzana library to copy image from PC to iphone.
As my understanding, the image file should be put under to /private/var/mobile/Media/PhotoData/Sync folder. But this does not work, i cannot see imported file when browse iphone photos although the file is copy to the location correctly.
Then i try to update the database file /private/var/mobile/Media/PhotoData/Photos.sqlite. To add a new entry to represent the imported photo file. Then i can see photo in iphone, but without thumbnails. And i have to restart the album application (close the application and start it again) so that to see the new imported photo.
But i found other tools can sync photo to iphone and can see the change immediately without restart the album application.
I want to know how this function is implemented?
Manzana is a C# wrapper of iTunesMobileDevice.dll. the main functionality is deal with iphone file system. and this is quite a old library which is not updated for a long time. I am not sure if there are any APIs to allow user to select an folder or photo file and sync it to iphone just like we do it in itunes, so that we don't need to process the db and thumbnails.
Does anyone have such experience before?
Im using desktop Dropbox as a buffer between mobile app and desktop.
Before this, you need a DropBox registered account and install the application.
After that, simple create a new folder from desktop Dropbox, drag-and-drop all
your photos into the new folder
Then, return to your iphone and retrieve them from DropBox mobile app.

File upload tool

I would like to create a image file upload tool. The tool when started up and would ask the user what directory they would like to monitor and upload files from. In the background the tool would then post securely to a web service of some sort.
Constraints solution should work on Mac and Windows computers. I would like to make the upload process pretty automatic with little user intervention.
Basically the question I have is what would you use to create application that either runs in the background or foreground to basically continuously uploads files to a web server?
I have a couple of thoughts:
HTML5 using web workers (concerns accessing local files not sure the best way to do that)
Silverlight (my guess is I would have to sign the application)
Java web start application (Signing application)
Flash (scared of this idea)
I can do the Java web start application easy enough. Both HTML5 and Silverlight are things that I would like to know. I really don't care about flash at this point.
In Java, you can use the JNotify library: http://jnotify.sf.net . It works on Windows, OS X, and Linux.
I don't know about C# or HTML5. HTML5 (last I checked circa July 2011) doesn't have a filesystem API. In reality you need an app that can be distributed so it can run in the background, so Silverlight is out of the question. If I am misinterpreting your problem, please tell me.
I would try to go with a signed Java applet if you can foresee the need for downloading as well. It is difficult to find a good download solution other then a signed Java applet. A signed Java applet let's you push things to the users filesystem allowing for upload as well as download.

Categories

Resources