Launch a phonecall with windowsPhone - windows-phone-8

I add a page Support in my WindowsPhone Application.
I would like when the user click on Support to launch a phone call.
Do you know how is it possible, i don't find related documentation on it.
[UPDATE]
I try to add this and display in a texblock. doesn't work.
On Android : making a phonecall using a browser application
[UPDATE]
I found http://msdn.microsoft.com/en-us/library/windowsphone/develop/hh394025(v=vs.105).aspx and it works correctly enjoy :)
[Update]
It's a task action as send a mail http://msdn.microsoft.com/en-us/library/windowsphone/develop/hh394025(v=vs.105).aspx this link is really good
Best regards,
Alexandre

One solution is to add a PhoneCallTask:
PhoneCallTask callTask = new PhoneCallTask();
callTask.PhoneNumber = "999999";
callTask.DisplayName = "Support";
callTask.Show();
Remember to enable ID_CAP_PHONEDIALER in your WMAppManifest.xml

Related

Sharing an image with a link in WP8

I want to be able to share the screenshot of the app along with a link. I already know how to grab a screenshot and share it using ShareMediaTask. The problem is that ShareMediaTask does not allow the app to attach a link with the image. I want share target to get a link too. e.g, sharing an image and a link/text to facebook app. If someone knows how to do that just with fb/twitter, that'll also help.
Did you try using the Windows.ApplicationModel.DataTransfer class in order to share links?
Reference: How to share a link
Or else you could go for the ShareLinkTask in order to achieve this:
ShareLinkTask shareLinkTask = new ShareLinkTask();
shareLinkTask.Title = "Code Samples";
shareLinkTask.LinkUri = new Uri("http://code.msdn.com/wpapps", UriKind.Absolute);
shareLinkTask.Message = "Here are some great code samples for Windows Phone.";
shareLinkTask.Show();
Reference: How to use the share link task!

HTML5 getUserMedia - Disable Microphone Feedback

Seems that this is a big problem and I couldnt find anything in the documentations, but how do I disable the microphone feebdack? I know there is an option to disable individual tracks, etc .. but nothing related to output.
Any ideas?
Thanks,
I just had this issue and this is how I got to disable the microphone feedback in my web app (my web app is recording the mic with Matt Diamond recorder js).
First I realized I had in my code something that was telling the app to produce the feedback :)
input.connect(audio_context.destination);
So I just commented this line ... but still got the feedback on my Jabra headset but no more feedback when I use external speakers (while still using the Jabra headset mic).
I then realized there was a setting in my Windows 8.1 control panel > sound > playback tab > properties for the Jabra device I use. The setting is called sidetone and once I got this setting to 0 I could record without any feedback with my headset.
You also need to make sure your microphone is not in "Listen to this device" mode.
Thanks
Do this:
try {
yourSteam.getTracks()[0].stop();
} catch (ex) {
// This fails in some older versions of chrome. Nothing we can do about it.
}
I got that code from https://github.com/saebekassebil/microphone-stream and it is the only way that works for me.

How to detect in HTML5/JQueryMobile App if there is internet connection available?

I have basic JQuery Mobile/Javascript HTML5 app. No PhoneGap etc. Just pages in a browser. I want to sent data to a server if I can detect an available connection? How an this be detected? Thanks
You can use window.navigator.onLine. It returns true if the device is online, false otherwise. I used it while creating an app in jQuery mobile for iOS and it works.
https://developer.mozilla.org/en-US/docs/Web/API/window.navigator.onLine.
Since you are using HTML5, you can check the window.navigator.onLine boolean status.
if (window.navigator.onLine) {
alert("Online")
} else {
alert("Offline")
}
You can also listen to the offline/online events see here for reference:
https://developer.mozilla.org/en-US/docs/DOM/window.navigator.onLine
https://developer.mozilla.org/en-US/docs/Online_and_offline_events
You can also use heyoffline.js if you don't mind having another dependence.
Hope it helps

How do you make an embedded flash player open the little window telling them to update it?

The flash player has a little window that can be opened (similar to flash->settings) telling the user to update the player if the movie loaded is for a more recent version. How can you instruct the player to do this? ITV have managed it with their catchup-tv player.
Context: I am allowing users to copy flash into their PowerPoint presentations and would like to tell them to update their flash player if necessary. I am not embedding a web page in the power point so no JS can be run for checking etc (because I know this is not necessary).
Thanks in advance
For getting the current version of flash:
var version:String = Capabilities.version;
I don't know what ITV has done, but I don't know of any way of forcing the player to show that box, although it may do it automatically.
EDIT:
I just found a complete blog post that answers this.
There is no way to force the window to open itself. It's a user defined setting:
Have a look at the Security class. I have used it in some Flash to prompt users to increase storage limits. The panels that you can show are found in SecurityPanel. However, this may not be the way to prompt for outdated Flash version. (If you are looking to customize these panels, that is off limits.)
You can actually test the browser/Flash version in Javascript, so there really is no point in loading Flash to tell the user to upgrade Flash.

Problem with fb:chat-invite

I have a iFrame based application.
Here I need to Integrate the facebook chat. I have integrated that by using this script.
<fb:serverfbml>
<fb:chat-invite
msg="Hey Rate the Movies. Have fun in knowing latest movie comments and reviews"
condensed="false"
exclude_ids="1,2,3"/>
</fb:serverfbml>
Now I can see only the frame which have loading option... But however, the friend list never gets populated.
Could you please let me know where the problem is?
That's a legacy code ... you should use the new Chat API
http://developers.facebook.com/docs/chat/