Auto Camera Upload on Windows 10 UWP App - c#

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

Related

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.

Evernote notes overwritten when updated externally

I'm building an app that updates Evernote notes via the Windows C# API. I've noticed an issue where a note that is updated by my app in between sync's in the Windows desktop app (for example) is overwritten.
This also happens when a note is updated in between sync's via another app (e.g. iPhone). To explain this further I've outlined the steps to reproduce the problem using the Windows and iPhone apps.
Please note that in order to repro this there must be a delay in between syncs in the Windows app. Within the app the sync interval can be changed in Tools > Options > Synchronization:
Create note with a reminder in the Windows app
Manually sync Evernote (Windows app)
Sync this note to another device, say the iPhone app
Add a tag to the note & sync (iPhone app)
Complete the reminder in the Windows app
Manually sync Evernote (Windows app)
If the above steps "work", once the Windows app is sync'd the reminder will be active (i.e. not complete) and the tag will be added.
I understand that this sort of scenario is unlikely to happen in a real usage scenario of Evernote, however as I am updating notes regularly via the API the chances of it happening or much more likely.
The ideal solution would be to update specific fields instead of the whole note, however I could see any way to do this.
Anyone have any ideas?
Thanks
When you call NoteStore#updateNote, try to set guid and only attributes you want to update and leave the rest unset.

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.

Can I get a downloaded file outside a WP7 device?

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.

WP7: sending images to twitter

How to implement sending images to some application in Windows Phone 7?
In the Android it's done via Intents.
Windows Phone 7 does not support communication between apps or shared files so as a general rule you can't. There is currenlty no equivalent to androids Intents in WP7.
With regard to an application which works with images you could create a Photo Extras Application to work with images already on the device.
First of all, take a look at this article. Once you get the image, all you have to do is use a service like TwitPic to post it there (an example for the v1.0 API is shown here).

Categories

Resources