Filepicker for Hololens: List available filepickers? - c#

So HoloLens is stupid in that it only recognizes one FilePicker at a time (no matter how many may be installed). I don't believe the developers are going to try making multiple filepickers work.
So, I'm trying to figure out my own filepicker in an attempt to be a proxy-select for other filepickers.
In essence, I want to make a filepicker chooser that appears as a typical filepicker (if that makes sense).
Trouble is, it doesn't appear possible to get a list of pickers installed!
Am I experiencing a pipe dream, or is there a way to invoke a picker from a list of pickers?

For the moment this is a pipe dream, but I sure hope they fix this. Per the Windows Holographic FAQ:
Note: HoloLens will always use the first app you've installed to handle file storage and this can't be changed. That means if you install Box and then OneDrive, all apps will use the Box file picker app.

Related

Debugging by attaching a process for windows phone apps

I'm currently running VS2013 Update 3, I'm building an app and i;m trying to mimic the Rate My App that shows up rate message dialog in b/w specified intervals.
My problem is that i've made a setting using ApplicationData.current.loclasettings and it is an integer.
and i want to see the settings number being updated every time i close and run the app to ensure the logic is perfect.
but i'm unable to do it. Every time i deploy the app from vs it replace the original app and thus erasing all the settings that have been previously saved.
I've tried to use attach a process but it doesnt work on windowsphones.
Well after a bit of research and going through the documentation it is clear that there is no way you can attach a process to the app that is already running on the phone.
At least for me there was no other way because Microsoft kept the USB debugging thing a little bit undocumented or not documented at all.
So, who ever are looking forward to first launch the app on a connected windows phone and then start the the connect to a process and select the appropriate device for communication , story it is not possible, at least the build that i;m using doesn't support. may there might be a better solution in the future.

Open specific files with my Windows Store application

I'm developing a Media Player Windows Store app, I need to make this app be suggested by Windows when the user tries to open a media file, I never tried to do this on other platforms (WPF, WindowsForms) I know that there are answers around here explaining how to do that in those technologies, but I'm new to this and I'm not sure if it works the same, I appreciate your help.
You need to specify the file types you support in the manifest (you can do this in VS) and then add a handler for when your app is launched this way.
See here for the details: http://msdn.microsoft.com/library/windows/apps/hh779669.aspx

Is it possible to use both windows phone cameras at the same time?

While trying to use both cameras for windows phone app i am not able to display both cameras at the same time..
one of them freeze when the other is working. i used the same code that has been given for reference here:
http://msdn.microsoft.com/en-us/library/windowsphone/develop/hh202956(v=vs.105).aspx
any suggestion or code that shows an example of it?
This scenario is not supported by the API. Opening an additional instance of the camera will close the previous one.
However, to behave nicely with battery usage, you should explicitly .Dispose the device as soon as you are done with it (instead of relying on the auto-close behavior).
(Note that some hardware actually shares resources between the FFC and the BFC, so even if the API allowed for it, it is still unlikely to work with the current version of the OS).
refer this link
http://social.msdn.microsoft.com/Forums/wpapps/en-US/cdefd4cb-94f8-4d98-a4b4-7671606815c6/can-i-use-frontcamera-and-primary-camera-at-the-same-time
but in the phone like S4 it is possible
refer this link
http://www.wpxbox.com/dual-shot-camera-apps-wp/

wp7, select music from device library to put into app

I was wondering if there was a way to create an app where a user is able to take a song from their wp7 music library and have the app copy it to put into isolated storage.
I have an idea for a music editing app but am unable to find if it's even possible for a user to select his or her own music from the device to use.
(sorry for this not being a coding question... I can assure you there will be some down the line)
No, I don't think this is possible. You can get access to the song in order to play and pause it, but you can't get access to the raw data in the current SDK. (Which means you won't be able to copy the data to isolated storage).

How can I programmatically manipulate Windows desktop icon locations?

Several years back, I innocently tried to write a little app to save my tactically placed desktop icons because I was sick of dragging them back to their locations when some event reset them. I gave up after buring WAY too much time having failed to find a way to query, much less save and reset, my icons' desktop position.
Anyone know where Windows persists this info and if there's an API to set them?
Thanks,
Richard
If I'm not mistaken the desktop is just a ListView, and you'll have to send the LVM_SETITEMPOSITION message to the handle of the desktop.
I googled a bit for some c# code and couldn't find a example, but I did found the following article. Torry: ...get/set the positions of desktop icons?. It's delphi code, but I find it very readable and with some P/Invokes you'll be able to translate it to c#.
The desktop is just a ListView control and you can get its handle and send messages to it to move icons around using LVM_SETITEMPOSITION.
Getting icon positions using LVMGETITEMPOS is a bit more complicated, though. You have to pass a pointer to a POINT structure as your LPARAM. If you try to do that, you will likely crash Explorer. The problem is you passed it a pointer in your address space, which the control interpreted as a pointer in Explorer's address space. Ouch!
The solution I've used is to inject a DLL into the Explorer process and send the message from there. Then you just have to have a way to get the position info back to your process.
I am still looking into this and will post the result once I finally get something working. I'm posting this because, thanks indirectly to Davy's post, I also found a classic VB implementation:
Shuffle Desktop Icons Using Interprocess Memory Communication
and that will probably be the basis for my code.
I have no idea about the API, but I know Ultramon (http://www.realtimesoft.com/ultramon/) has a feature included for preserving icon placement (although I've never used it for preserving icon location, it is indispensable for multiple monitor usage). The latest beta release works flawlessly with Vista (except for sometimes having a minor glitch or two when initially logging into my machine via RDP), and of course, haven't had any issues with XP. I've used it for over four years now.
And did I mention that it's the best utility for multiple monitor usage?
may be you want this one?I find it in 《WindowsCoreProgramming 5th》 https://github.com/wang1902568721/WindowsCoreProgramming

Categories

Resources