Android Question Touchdown email intent

Sannie72

Member
Licensed User
Longtime User
Hello,

I want to send an email using my company email client Nitrodesk Touchdown HD (8.3.00058). However, when I use the email object from the Phone (2.20) library, all that happens is Touchdown opens a new email, but nothing is entered. The 'To' field is empty, as is the email body.
When I select an other email client, eg. GMail, the same fields are filled as expected.
Does anyone have the same experience or better yet, a solution?
 

macguiwer

Member
Licensed User
Longtime User
I user for my company TouchDown version 8.4.000086 my problen is similar, al fileld empty.
Is user other client for email no problem.
 
Upvote 0

Sannie72

Member
Licensed User
Longtime User
I user for my company TouchDown version 8.4.000086 my problen is similar, al fileld empty.
Is user other client for email no problem.
This is the solution I came up with, instead of using the mail intent I created an intent from scratch:
B4X:
    Dim sEmail() As String = Array As String(PrefManager.GetString("emailto1"),"")
    Dim sCcEmail() As String = Array As String(PrefManager.GetString("emailcc1"),PrefManager.GetString("email"))
    Dim Intent1 As Intent
    Intent1.Initialize(Intent1.ACTION_SEND,"")
    Intent1.SetType("application/zip")
    Intent1.PutExtra("android.intent.extra.SUBJECT",sSubject.ToString)
    Intent1.PutExtra("android.intent.extra.EMAIL",sEmail)
    Intent1.PutExtra("android.intent.extra.CC",sCcEmail)
    Intent1.PutExtra("android.intent.extra.TEXT",sb.ToString)
    Try
    StartActivity(Intent1)
    Catch
    Log("CreateMail: Start Activity Failed... ")
    End Try

This is just a snippet of the complete code, but it shows what you can do. When I code it this way, also Touchdown (8.5.00094) works as email client. Hope this helps!

Regards,
Sander
 
Upvote 0

macguiwer

Member
Licensed User
Longtime User
This is the solution I came up with, instead of using the mail intent I created an intent from scratch:
B4X:
    Dim sEmail() As String = Array As String(PrefManager.GetString("emailto1"),"")
    Dim sCcEmail() As String = Array As String(PrefManager.GetString("emailcc1"),PrefManager.GetString("email"))
    Dim Intent1 As Intent
    Intent1.Initialize(Intent1.ACTION_SEND,"")
    Intent1.SetType("application/zip")
    Intent1.PutExtra("android.intent.extra.SUBJECT",sSubject.ToString)
    Intent1.PutExtra("android.intent.extra.EMAIL",sEmail)
    Intent1.PutExtra("android.intent.extra.CC",sCcEmail)
    Intent1.PutExtra("android.intent.extra.TEXT",sb.ToString)
    Try
    StartActivity(Intent1)
    Catch
    Log("CreateMail: Start Activity Failed... ")
    End Try

This is just a snippet of the complete code, but it shows what you can do. When I code it this way, also Touchdown (8.5.00094) works as email client. Hope this helps!

Regards,
Sander
thank you very much for your help.
if you would not have been able to continue.
 
Upvote 0
Top