0

My problem is somewhat specific moreover i am working on this scenario for the first time. I am building the application in Windows Phone 8 , here my requirement is to launch the page from my application when user taps on the Listed lens apps list from the ViewFinderLaunch.

This MSDN link helped me a lot.

http://msdn.microsoft.com/en-us/library/windowsphone/develop/jj662936(v=vs.105).aspx

Below link too:

http://www.developer.nokia.com/Community/Wiki/Extending_the_Windows_Phone_8_Camera_App_with_Lenses

So far above tutorials helped me to complete the Camera Lens application. But one problem is stopping me to complete it 100%. When the application is running, if i put the code to navigate to the Page A.xaml, it is not navigating. Unfortunately this works perfectly fine when the my application is not running.

Code that is used to navigate to page A.xaml from ViewFinderLaunch.

if (uri.IsWellFormedOriginalString())
            {
                if (uri.OriginalString.Contains("ViewfinderLaunch"))
                {
                    return new Uri("/A.xaml",UriKind.RelativeOrAbsolute);
                }
            }

Could you please anyone help me on this ?

4

1 回答 1

1

一周后,我找到了问题的原因。在我的 Windows Phone 应用程序中,我在 WPAppManifest.xml 中启用了应用程序恢复。

<Tasks>
      <DefaultTask Name="_default" NavigationPage="HomePage.xaml" ActivationPolicy="Resume" />
    </Tasks>

当 ActivationPolicy 为 Resume 时,它​​产生了这个问题。所以我只是通过将这个 ActivationPolicy 更改为 Replace 来解决这个问题。

于 2013-06-20T10:35:21.287 回答