Launchers, Choosers and Navigation

Launchers, Choosers and navigation in Windows phone

Today i , 'm coming with a new application that will be new to you. An application that can send email, SMS and can make call to the desired number. Some other things will also be added in the application lets see further.
Launchers:
Launchers allows your code to activate a native built in application.Data can be passed to the native application when the native application is launched. Your application is deactivated. Launchers are there to active dialers, media, browser,  and other native applications.

Choosers:
Choosers are used to send the data back to the application. Choosers are used to retrieve photographs, phone number, physical address, phone number etc. Choosers are used to deactivate an application.

Lets start the application,as you can see i have added 6 buttons, their core detail will be discussed below. As you can see these buttons have some properties. You can make buttons as shown below. These are just simple things to do either add button tag in xaml or drag and drop button from the tools.


Now after clicking the first three buttons, i have navigated them to some other page.For that i have added some blank pages in the solution explorer. The picture above shows that clearly. 
the URI has given the name of the page as it is relative. We are not going to access the information or page from the web. Incase, of  web uri would be relative. 


Here is the page for email where i have added to text boxes and a button the text boxes take email address and email content respectively. And the button have the real code that will make the object of email compose task and it will make the send button workable that will send the mail to the destined address. Similarly, you can create buttons for the sms and phone call.


Now here the code for the email send button.
but before that add the library
using Microsoft.Phone.tasks;
Here is the code for email send button.


Here is the code for SMS send button.


Here is the code for call button.


Here is the button for media task from that you can show media element on the phone.







Comments

Popular posts from this blog

How to move an object in Unity 3D

Input.Getaxis, OnMouseDown, GetComponent< > - Unity Scripts

Vector Math - Unity