I've been asked to write a prototype application in C# for Windows Phone 7.1 that can take data via functionality like Android's "Share" function and then process such data.
For example: The user opens the mail application and views a PDF attachment. For this attachment, he presses the application's "Share" button, selects my application from a list of registered handlers and my application can process the PDF file.
Questions:
Is such "Share" functionality available in Windows Phone 7.1 at all? (I way told it should be called "Send To")
Can somebody provide me with online reading on how to create respective handlers?
I'm unfamiliar with the offering that Android gives, but you can extend the share picker and there is a detailed article on MSDN with example code to do so.
Related
I have two simple questions since I'm very new to Windows Phone programming:
1:
How do I cange the root frame, or show a different Page on startup, in a Windows Phone 8.1 Silverlight application? I have a LoginPage and then I want to check if the user is logged in show MainPage as root frame and if the user is not logged in show the LoginPage.
2:
Windows Phone Silverlight applications seems so different to me compared to the Windows Phone WinRT applications, or maybe I'm just not experienced enough. For example I can't put a placeholder/hint text in a textBox in Silverlight but it's super easy in WinRT, why is it like that? Isn't that something very basic that many IDE's implements? Or have I missed something mayor when I'm developing a Silverlight application for Windows Phone?
I know that Windows Phone WinRT is used to create universal apps and Silverlight is used to create only mobile apps for Windows Phone, but why is developing a mobile app in Silverlight so much different (at least to me) compared to build a Windows Phone app i WinRT?
For your first question, use the UriMapper.
The basic principle is that you check if the user is logged in or not and based on that, navigate to the correct view.
The code is not all that complicated, there is a very good tutorial up on Shawn Kendrot his blog here...
For question 2, how to add some sort of hint/watermark can be done in several different ways.
But a very simple version is presented on MSDN here... it uses events to set and clear the watermark.
Point 1
You have to go to Package.appxmanifest and under the tab called Application the second field contains the startup page name. Currently it should be MainPage.xaml, just change it to LoginPage.xaml.
Point 2
I don't quite understand your question. Silverlight and Windows Runtime are two different platforms, they have in fact many different libraries. The goal of Windows Runtime is to run the same application on several different devices, so different hardware requirements and different resolutions. It was a need to organize the environment differently and of course Microsoft added some minor changes such as the hint text (e.g.).
What is so different to you? I did the porting of an app from SL to WinRT but it's not difficult nor tricky at all.
I found a similar question here "How to bring up the built-in File Copy dialog?" but was not able to understand if this is possible in windows 8.1.
I am trying to develop a console application where i just want to copy a file/folder from a source to destination. I want to give the user the ability to pause/resume or cancel the file download. For this i was looking to bring up the native windows 8.1 "file copy dialogue box" where we have the pause/resume functionality built in. How can i bring it up from my c# code?
IFileOperation is the interface that provides this functionality, but as it is a COM interface you need to use COM interop from C#.
There's an article about it in MSDN magazine.
I have a couple quick questions about Windows Phone applications. How does one know the type of Windows Phone application? For example, is the WP email client XAML or Silverlight?
The reason I am asking is that I have been assigned the task of writing some automated testing scripts for an already developed application (or WP core app) and I'm not sure which automated scripting method to use (CodedUI vs VSTO Test UI). It's my understanding that CodedUI only works for XAML based applications.
Thanks!
From just looking at the app I don't think there is anyway to tell. However, whether it is SilverLight or new Store App (appx) they both support XAML. If you have the source code you can load it in Visual Studio. After the project name you will see:
Windows Phone 8.1 Silverlight
Windows Phone 8.1
The second one is the newer Store App possibly a Universal App.
If you need to know if it is xaml then certianly asking the developer will be the easiest option. I assume they are both XAML no matter what as I am not aware that WinJS is supported for phone.
One other option that could help you get to what you need to know is if you have the executables. Silverlight will be an XAP file extension and the new Store App will be have an APPX file extension.
Good luck & Have fun,
Tom
When you right-click the Skype icon in the taskbar while Skype is running, it has a little group in the "CloseWindow" popup thing titled Tasks, which contains options to sign out or quit Skype.
How would I go about doing this in C#? Thanks.
You need to use Microsofts Windows API Code Pack. For an example on the exact way to implement it in your case, this tutorial will guide you through all the steps!
The tutorial will show you how to do make the same thing Skype and windows media player use very quickly.
Hope this helps!
I answered a similar question here:
This feature is called a JumpList and is for Windows 7. It is part of the Microsoft API. How to use this with C# has been documented thoroughly here and here.
In order to be able to deal with Jumplist classes in Windows Forms, you'd have to include these DLLs (Microsoft.WindowsAPICodePack.dll and Microsoft.WindowsAPICodePack.Shell.dll) in your project. You can get them from this CodeProject project or you can download the Open source library from WindowsAPICodePack which includes the source code that can be used to access Windows 7 and Windows Vista features. You will need to add two usings at the top of your code:
using Microsoft.WindowsAPICodePack.Taskbar;
using Microsoft.WindowsAPICodePack.Shell;
Any Jumplist consists of categories and each category has its own Jumptasks. There are two types of Jumptasks supported till now by WindowsAPICodePack; the JumplistLink and JumplistSeperator. A Jumptask represents an action to be performed by the user like openning a new instance of the application or launching another program. These Jumptasks are grouped in categories called JumplistCustomCategories.
Is there a way to access the Share Picker in my application? I have read about making my own Share Picker Extension, but that isn't really what I am looking for. I want the user to be able to share a generated image from my app.
Thank you,
Doc Haven
No. The SharePicker allows you to add functionality from your application to the Pictures Hub.
There is no way to add that functionality, from the hub, back into your app.
If you want to be able to "share" something with the web (e.g. sent do Facebook/Twitter) then you must implement this yourself.
There is no way to link between your application and another on the device.