TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Ken Ekholm
NA
1
841
Problems to open own developed UWP app with uri?
Jun 28 2016 4:07 AM
<p>I have tried to follow the instructions from this link https://msdn.microsoft.com/en-us/windows/uwp/launch-resume/handle-uri-activation to register an uri for my application. But the app only open the logo and then automatically exit after an certian time when using this code.</p><pre class="prettyprint prettyprinted"><em><span class="kwd">private</span><span class="pln"> async </span><span class="kwd">void</span><span class="pln"> buttonInternetRadio_Click</span><span class="pun">(</span><span class="kwd">object</span><span class="pln"> sender</span><span class="pun">,</span><span class="pln"> </span><span class="typ">RoutedEventArgs</span><span class="pln"> e</span><span class="pun">)</span></em></pre><pre class="prettyprint prettyprinted"><em><span class="pun"></span><span class="pln"></span><span class="pun">{</span></em></pre><pre class="prettyprint prettyprinted"><em><span class="pun"></span><span class="pln"></span><span class="kwd">var</span><span class="pln"> uri </span><span class="pun">=</span><span class="pln"> </span><span class="kwd">new</span><span class="pln"> </span><span class="typ">Uri</span><span class="pun">(</span><span class="str">"testapp://"</span><span class="pun">);</span></em></pre><pre class="prettyprint prettyprinted"><em><span class="pun"></span><span class="pln"></span><span class="kwd">var</span><span class="pln"> options </span><span class="pun">=</span><span class="pln"> </span><span class="kwd">new</span><span class="pln"> </span><span class="typ">Windows</span><span class="pun">.</span><span class="typ">System</span><span class="pun">.</span><span class="typ">LauncherOptions</span><span class="pun">();</span></em></pre><pre class="prettyprint prettyprinted"><em><span class="pun"></span><span class="pln">options</span><span class="pun">.</span><span class="typ">TreatAsUntrusted</span><span class="pln"> </span><span class="pun">=</span><span class="pln"> </span><span class="kwd">true</span><span class="pun">;</span></em></pre><pre class="prettyprint prettyprinted"><em><span class="pun"></span><span class="pln"></span><span class="kwd">var</span><span class="pln"> success </span><span class="pun">=</span><span class="pln"> await </span><span class="typ">Windows</span><span class="pun">.</span><span class="typ">System</span><span class="pun">.</span><span class="typ">Launcher</span><span class="pun">.</span><span class="typ">LaunchUriAsync</span><span class="pun">(</span><span class="pln">uri</span><span class="pun">,</span><span class="pln"> options</span><span class="pun">);</span></em></pre><pre class="prettyprint prettyprinted"><em><span class="pun"></span><span class="pln"></span><span class="pun">}</span></em></pre><p>In Declarations part of Package.appxmanifest I have the following properties,</p><p>Logo: testapp.png</p><p>Display Name: Test App</p><p>Name: testapp</p><p>Can someone help me with this issue?</p>
Reply
Answers (
1
)
How to build a XMLRPC service using C#
Using Third Party DLL's in Universal Windows Apps