luke2012 Well-Known Member Licensed User Longtime User Feb 2, 2014 #1 Hi to all! I'm able to open gmail using intent object. I wish to open mail's phone native app. I have to change only the "com.google.android..." string of the intent? Code: Copy Sub OpenGmail Try Dim pm As PackageManager Dim i As Intent i = pm.GetApplicationIntent("com.google.android.gm") StartActivity(i) ToastMessageShow("GMail", True) Catch ToastMessageShow("Gmail inactive or not installed...", True) End Try End Sub
Hi to all! I'm able to open gmail using intent object. I wish to open mail's phone native app. I have to change only the "com.google.android..." string of the intent? Code: Copy Sub OpenGmail Try Dim pm As PackageManager Dim i As Intent i = pm.GetApplicationIntent("com.google.android.gm") StartActivity(i) ToastMessageShow("GMail", True) Catch ToastMessageShow("Gmail inactive or not installed...", True) End Try End Sub
LucaMs Expert Licensed User Longtime User Feb 2, 2014 #2 This allows you to choose: Code: Copy Dim EMailAddrTo, Subject, Body As String EMailAddrTo = "[email protected]" Subject = "Info" Body = "Hello" Dim message As Email message.To.Add(EMailAddrTo) message.Subject = Subject message.Body = Body StartActivity(message.GetIntent) Upvote 0
This allows you to choose: Code: Copy Dim EMailAddrTo, Subject, Body As String EMailAddrTo = "[email protected]" Subject = "Info" Body = "Hello" Dim message As Email message.To.Add(EMailAddrTo) message.Subject = Subject message.Body = Body StartActivity(message.GetIntent)
luke2012 Well-Known Member Licensed User Longtime User Feb 3, 2014 #3 Thank you Luca! I had solved using the correct package name : "com.google.android.email". My taget was to allow the user to open the mail within my app. Your code is useful for create a new mail ! Thanks! Upvote 0
Thank you Luca! I had solved using the correct package name : "com.google.android.email". My taget was to allow the user to open the mail within my app. Your code is useful for create a new mail ! Thanks!