I have an App for displaying personal details and contact information. I am displaying the mobile number, land line number, Email ID and URL in four different labels/buttons on the screen. When the button containing the mobile number is clicked the phone initiates the process to call the number. I am doing this by creating an Intent and then using the ACTION_CALL or the ACTION_VIEW method along with a string "tel : phoneno" to initialize the intent. I then start the activity and it works perfectly. The syntax is
Dim i As Intent
i.Initialize(i.ACTION_VIEW,"tel: " & mobilelabel.text )
StartActivity(i)
Mobilelabel is a label on the display screen
I want a similar thing to be initiated when the user clicks the Email button/Label. I tried the following but I get an error message
Dim i As Intent
i.Initialize(i.ACTION_VIEW,"email: " & emaillabel.text )
StartActivity(i)
This does not work. Can anyone help me out on how to initiate the Email function on the smartphone in a manner similar to the calling of a phone number.
Ajay
Dim i As Intent
i.Initialize(i.ACTION_VIEW,"tel: " & mobilelabel.text )
StartActivity(i)
Mobilelabel is a label on the display screen
I want a similar thing to be initiated when the user clicks the Email button/Label. I tried the following but I get an error message
Dim i As Intent
i.Initialize(i.ACTION_VIEW,"email: " & emaillabel.text )
StartActivity(i)
This does not work. Can anyone help me out on how to initiate the Email function on the smartphone in a manner similar to the calling of a phone number.
Ajay