How to open facebook app to post and image on wp8? [duplicate] - c#

This question already has answers here:
How can I open the Facebook App for sharing a link on WP8?
(2 answers)
Closed 9 years ago.
I like to know if there is the chance to open the facebook app to post an image with a comment I have this:
await Windows.System.Launcher.LaunchUriAsync(new Uri("fb:post"));
There is the chance to send the image as some parameter or something like that?

those are the classes to share on wp8 development
ShareStatusTask - for sharing status
http://msdn.microsoft.com/en-us/library/windowsphone/develop/microsoft.phone.tasks.sharestatustask(v=vs.105).aspx
ShareMediaTask -for sharing media
http://msdn.microsoft.com/en-us/library/windowsphone/develop/microsoft.phone.tasks.sharemediatask(v=vs.105).aspx

Related

API to know the amount of free stoarge space on my windows device [duplicate]

This question already has answers here:
UWP How to get StorageDevice freespace and capacity?
(3 answers)
Closed 3 years ago.
I am creating a UWP application. I have a use case where I need to print the amount of free local storage available in GB on the windows device on which the app is running. How can this be done?
For this you can use the DriveInfo class. Following this link will provide you with examples System.IO - DriveInfo. Remember to take into consideration how to print the free storage if the device has more than one internal storage device.

How to make file to be opened by my app? [duplicate]

This question already has answers here:
Where does Windows store its "Open With" settings?
(3 answers)
Closed 9 years ago.
I have a little bit confusing problem. I'm not a beginner but I don't know how to do it..
For example I've written a program like notepad from which you can open files, save and etc. But when I set any custom format like ".blabla" to be opened by my app it is not working, so how can I make it to be opened by my app?
It is in WinForms
You need an entry in the registry for custom file extensions. You can try inserting a key in the registry as follows:
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\

how to read image from url and save it into internal storage for windows 8 with c# [duplicate]

This question already has answers here:
Closed 10 years ago.
Possible Duplicate:
How to use httpwebrequest to pull image from website to local file
Let said, I have a picture a http://abc.com/image/abc.jpg and I would like to download it and save into the own storage in my windows 8 store application (not store into the picture library), so that my application can call and display the image and the image is not seem from picture library.
how to achieve the above task with c# ? code samples? thanks!
Probably better to let the browser cache this as that plumbing is already in place.
If you really want to pull this off, use HttpWebRequest is the class to use and How to use httpwebrequest to pull image from website to local file seems to have a descent answer.

How to get applications from taskmanager's tabs? [duplicate]

This question already has answers here:
Closed 11 years ago.
Possible Duplicate:
Retrieve a complete processes list using C#
How can I get a list of applications from the applications in Task Manager in C#?
Also, I'll want see hidden applications. Because, some applications do not appear in processes tab e.g Knignt Online.
What should I do?
Have a look at:
System.Diagnostics.Process.GetProcesses()

facebook photo upload [duplicate]

This question already has answers here:
Closed 12 years ago.
Possible Duplicate:
multiple upload images on c#/jquery
hey guys!
Yesterday i made here a question about an input type="file" to select multiple files instead of one. And you gave me some solutions like plupload and SWFUpload and some more.
But if possible i want to try something a little bit different, like facebook. The solution that you offered me yesterday have flash, or silverlight, html5, gears or browserplus...
So if you could show me an example like the photo upload of facebook or another i would be very happy!
Regards!
Try: Multiple Upload images with c#/jquery?
Facebook's uploader is a Flash uploader. View the source.

Categories