I'm working on a UWP app that uses a RichTextBlock to display some text that the user can enter, I want it to Identify phone numbers so that I can tap the number and then the application should take me to the call app or people app and give me the option to call this number. I search for a solution for that and what I found so far is in this link:
https://msdn.microsoft.com/en-us/windows/uwp/launch-resume/launch-default-app
I couldn't find the URI that I can use to make it work, the best thing that I've achieved so far is by using a hyperlink that contains the following:
if(isPhoneNumber)
hyper = #"ms-people:savetocontact?PhoneNumber="+hyper+"&Email=&ContactName=";
but now when I tap the number the people app is launched on the contacts list screen.
Any advice would be great, thanks.
Try tel:<phone-number> uri scheme. You will get the below page where you can send text message, call or save this number. Eg.:
await Launcher.LaunchUriAsync(new Uri("tel:+36301234567"));
Related
I want to add multiple marker on a button click event !!i am using phonegap with angularjs. What exactly should happen is when i click the button google maps application should open up and multiple markes should be displayed deppending on number of location... I have been succeeded in adding single marker using geo uri..
<a class="button-green button-green--large" ng-href="geo:{{selectedClass.latitude}},{{selectedClass.longitude}}?q={{selectedClass.latitude}},{{selectedClass.longitude}}">Locate</a>
p.s. I have searched stackoverflow previous questions and found that i will be able to complete the above task by adding static map , but i wish to open the google map on button click event, which i wont be able to using aforesaid method.
I do not think you can set multiple markers on google maps anymore. Instead, you can make an activity, or a web service to handle it, just like this one:
IMG: https://maps.googleapis.com/maps/api/staticmap?size=235x227&maptype=roadmap&markers=37.970982,23.724559|37.971487,23.724953|37.973291,23.726862
URL: http://kylelam.github.io/SO/customMarkers.html?size=235x227&maptype=roadmap&markers=37.970982,23.724559|37.971487,23.724953|37.973291,23.726862
Does there exist some kind of plugin or lightweight method of determining whether
A. A user is using a mobile device
B. The user has a particular app
C. The user does not have a particular app.
And depending on what criteria the user satisfies, display a prompt (modal, overlay, pop-up) that allows the user to view the app (if installed) or to install it (if they do not have it installed).
I realize "A" can be achieved by using media queries but I am not sure how to configure the others.
I've seen this done on many many sites so I know that it is not uncommon (view screenshot). Ideally I just want to implement some quick solution. I'm looking for something similar to "Hello Bar" for mobile only, I suppose.
Any help will be appreciated.
Example: http://i.imgur.com/VkWKu.png (the prompt at the top of the browser)
I ended up finding this:
http://developer.apple.com/library/ios/#documentation/AppleApplications/Reference/SafariWebContent/PromotingAppswithAppBanners/PromotingAppswithAppBanners.html
Which is exactly what I was looking for and will work in tandem with the other solutions.
I would try this approach if you really need to know if a user has your app installed.
When your app is installed and first run have it create a cookie. The only thing you have to remember to use is the CookieSyncManager because the set Cookies are stored in RAM and not storage, CookieSyncManager will sync these two.
CookieSyncManager.createInstance(context)
CookieSyncManager.getInstance().sync()
Once you've set the cookie you can then read the Cookie with the website, if its there show popup etc. Oh and only show this popup only if its a mobile device: http://www.quirksmode.org/js/detect.html
Android Developer On CookieSyncManager: http://developer.android.com/reference/android/webkit/CookieSyncManager.html
Bolg Post Explaining the Usage of the CookieSyncManager:
http://blog.tacticalnuclearstrike.com/2010/05/using-cookiesyncmanager/
I know how to do this with android not iOS or Windows...
There's no standard way to do this.
See the end of this post: http://blogs.msdn.com/b/ieinternals/archive/2011/07/14/url-protocols-application-protocols-and-asynchronous-pluggable-protocols-oh-my.aspx for one mechanism available to JavaScript in IE10.
IE10's Metro environment offers this: http://blogs.msdn.com/b/ie/archive/2011/10/20/connect-your-web-site-to-your-windows-8-app.aspx but I don't think that exists for the mobile browser.
I am working on a windows phone app right now.
In the app, I am handling an exception in page 1, that when there is no wifi connection, it will pop a XNA messagebox, user can choose to open the WIFI settings page. I have the following code:
ConnectionSettingsTask connectionSettingsTask = new ConnectionSettingsTask();
connectionSettingsTask.ConnectionSettingsType = ConnectionSettingsType.WiFi;
connectionSettingsTask.Show();
But the problem with this is, when user hit back key in the wifi settings page, they will be navigate back to page 1, which has a loading problem and can not display the proper content. In this case, I would like user to directly go to another page, call it page 2.
Is that possible? Thank you
++++++++++++++Update
Is there are way to customize the back key functionality when showing the XNA messagebox?
I don't know about XNA coding much, but I do know that if you return from wifi connection page to your app, the OnNavigatedTo function is invoked. Try setting out your flow of code according to the application flow. If there is some code you have executed at the constructor, shift it to OnNavigatedTo and vice-verse, which may solve your problem. Also if you want to shift to another page, do it in the same function (OnNavigatedTo) itself. Hope it helps.
Maybe you can change the navigation behavior: http://blogs.msdn.com/b/ptorr/archive/2010/08/28/redirecting-an-initial-navigation.aspx
However it is recommended to merge the two pages together (hide loading bar and show main page) as you will have less problems...
why not handle this code in the IsNetworkAvailable check? that way you'l avoid the exception altogether
I would like to write an enterpise app that displays some slides on the PC (think powerpoint deck)
important is the requirement that the user cannot take a screenshot of the picture, to see the image they must enter a password, I do not want them to be able to keep the picture
is this possible in Silverlight? what about Flash?
thanks!
You mean, how do you disable someone from using [Ctrl - Print Screen] on a PC or [Command-Shift-3] on a Mac?
Ummm... I think the best you could do is create and out of browser app that is fullscreen AND only when it becomes the active window, it will show the images you want to protect. That way you can disable the keys for screen capture and prevent any other programs from capturing a window shot of your what is in your app.
Still, there is nothing preventing a fiddler user from capturing an image downloaded to your app from a webservice or something. All the images would have to be encrypted then decrypted by your app.
Looks like watermarking your images is your best bet.
I have an existing Silverlight 3 app that I want to add Live Mesh support to. This may sound like a simple question but I can't figure out how to get started! I've read a bit on dev.live.com but haven't found a good example. Here's what I want to accomplish:
User visits my SL3 site.
User enters their Live ID and password to login to live (not sure how to do this either).
User sees a list of their files from Live Mesh.
User chooses a file, maybe a text file, and views it in my SL3 app.
Is this possible? I've read about Silverlight enabled Mesh Apps, but it looks like those only run inside the "Live Desktop" part of Mesh. This would be nice as a small addon to my current app but I don't want to push the entire app into the mesh to accomplish this.
This is not possible atm:
http://social.msdn.microsoft.com/Forums/en-US/liveframework/thread/bdeb4de4-3ccd-4510-a227-ae228bf6225f