InputText from dialogue? - c#

I have to make a phone application on 3 smartphones: Android, IOS and WinPhone.
This app must open the door of my school via a simple sms. But, for send this message, this app need the phone number of the school, so I have to add an option "Edit Number".
In android and in IOS, I can edit this number (String) via an inputText like an AlertDialogue in android.
I'm searching since two days and I found MessageBox and MessageDialogue but that don't perform like Android'AlertDialogue...
I just would like get string via a simple prompt in alert
Can help me please?

Related

open kaizala (iOS) app and start a chat with specific number via URI possible?

we’re developing a (iOS) phonebook app using Xamarin.
From our app we want to be able to start Kaizala (iOS) App and open a chat to a specific number, ideally using an URI schema like below:
Here is an example of how we did this for MS Teams (iOS) and WhatsApp (iOS):
// try open MSTeams and open a chat to user (CommandParameter)
await Launcher.TryOpenAsync(new Uri("https://teams.microsoft.com/l/chat/0/0?users=" + CommandParameter));
// try open WhatsApp and open a chat to user (CommandParameter)
await Launcher.OpenAsync(new Uri("whatsapp://send?phone=" + CommandParameter));
is that possible for kaizala as well? didn’t find an answer while searching through the docs.
Is there a similar URI schema for Kaizala App? Or an alternative way to achieve this?
Please advise, Thank a lot!

How to replace phonenumber by name for incoming calls in xamarin?

I've saved contacts on a server in an uncommom format. These contacts are regularly evaluated and changed. Using a xamarin app on my android device I want to synchrously connect a phonenumber to a name.
Using a BroadcastReceiver that captures all incoming call I'm able to display a toast and a notification showing the name related to the number.
Because the toast disappear fast and the notification isn't easy available during ringing I search for another way to display the name connected to a number. The best way would be to replace the displayed number on the dialer.

Using CameraCaptureTask to launch the default camera app

Windows Phone 8 gives the ability to change the default camera app with another one downloaded from the store, making this new app the one that's launched when you hit the camera hardware button.
So I was wondering if is there any chance to launch this app using the CameraCaptureTask.
What I'd like to do is something simple like
var camera = new CameraCaptureTask();
camera.Show();
camera.Completed += new EventHandler<PhotoResult>(camera_Completed);
but I want this to work with the default app that the user chose on its device, and not with the basic Microsoft's one.
I've not found anything online, so I'm asking to you guys if I can make what I want.
Sorry, not possible with the current API.

Windows Phone 7 C# Device and User Info

Recently I was thinking of a way to confirm the user info inside an app.
Is the typed email, the windows phone live-id of the device?
Is the typed number, the windows phone card-number of the device?
All I know until now is that I can get some info from windows phone SDK.
For DeviceId (hash) I use DeviceEctendedProperties, based on device serial i suppose
For UserId (hash) I use UserExtendedProperties, based on user live id i suppose
And with that we can identify a user and a device.
To get the right info from user like email and phone number you must ask him.
So the question: Is there any way to validate the user entry?
For example:
App -> Form - > form_info(email, phone) -> Validate(form_info) -> Success OR Unsuccess
For Validate() i was thinking of something like:
form_info -> function_hasher() -> form_info_hash -> IF form_info_hash MATCHES with UserId (hash) and UserPhone (hash)
If there is a UserPhone hash to match the number of card!
I'm pretty sure there's no way to get this data or even verify that it's right, short of asking the user to email/SMS a particular address/phone number. If you want to go that route you can use a SmsComposeTask or an EmailComposeTask.

Windows Phone - Audio Endpoint Device

I can't seem to find this anywhere.
I want to build an Audio Endpoint device that plugs into the Windows Phone Headphone Jack.
I know I need to start with what the phone is capable of receiving and detecting.
Ultimately I would like to use already in existence libraries however I have no heartache about writing my own.
My problem is I can't find any examples of how people access the Audio input on the phone outside of the built in microphone.
Is there a library for this?
You can detect when a headset is plugged in using the VOIP capabilities in Windows Phone 8.
First in the WMAppManifest.xml file, you need to enable ID_CAP_VOIP and ID_CAP_AUDIOROUTING
Then in the App, you need to capture the event
AudioRoutingManager.GetDefault().AudioEndpointChanged += AudioEndpointChanged;
public void AudioEndpointChanged(AudioRoutingManager sender, object args)
{
var AudioEndPoint = sender.GetAudioEndpoint();
switch (AudioEndPoint)
{
case AudioRoutingEndpoint.WiredHeadset:
MessageBox.Show("Headset connected");
break;
}
}
This will enumerate from this list (no custom endpoints allowed)
http://msdn.microsoft.com/en-us/library/windowsphone/develop/windows.phone.media.devices.audioroutingendpoint(v=vs.105).aspx
Sorry, but I can only answer the first part of your question about detecting the device, I'm not familiar with how the hardware device interfaces with the headphone jack to answer the rest.

Categories

Resources