Making phone call in windows phone 8.1 in a single tap - c#

I'm writing an emergency app and so I need to allow the user to make phone call in a single tap. All the articles I've been reading so far allows phone call in 2 taps. Is there a way to do that in only one tap?

Related

How to localize text of PhoneCallManager windows mobile 10

I have windows mobile 10 app that supports multiple languages. Everything works well until I try to show phone call UI using PhoneCallManager class.
Windows.ApplicationModel.Calls.PhoneCallManager.ShowPhoneCallUI(model.Phone, model.Name);
When I make this call, phone call UI is shown, but the text is always in English.
Does anyone know how to localize this text?
You cannot, it will launch the built-in phone call UI that is always shown in the language of the phone.

Change app root frame in Windows Phone 8.1 Silverlight application

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.

WP8 How to add my app to the lock screen settings

I'm trying to find out if there is a way to programmatically add my app into the allowed lock screen notifications list on Windows Phone 8 / 8.1? Seems like a bit of pain to ask the user to do that themselves.
As far as i know you can't set them programmatically. It's a must for the user to add his app to the lockscreen from the Settingsto show the text notification or the icon.
Lock screen notifications for Windows Phone 8

How to pick up the microphone in background in Windows phone programmatically?

Are there any code samples (C#) how to pick up and handle microphone sounds under Win Phone 7+ ?
You can't, windows phone as a number of APIs that can't be used on background agents, microphone is one of them.

Check if phone is in call (WP7)

In windows phone 7 ... Is there is a way to check if the phone is now busy with a call as in android
if yes, what is the name space that serve this?
As others have commented there is currently no API within the Windows Phone SDK to detect whether a call is in progress.
Tim Askins wrote a fairly detailed post on his attempts to get around this but ultimately it just isn't possible.

Categories

Resources