Native.showPopup opens menu on Android

Hi

this code 

 local function showMailPicker() -- Create mail options -- local options = { to = "my@email.com", subject = "some text", body = " ", attachment = { baseDir=system.DocumentsDirectory, filename="file.txt", type="text" }, } -- Send mail -- native.showPopup("mail", options) end

this function is then triggered on a touch event. but instead of getting straight to the email  program on android, I get the selection menu for Facebook, Twitter, SMS, bluetooth, gmail, …

Can this be avoided?

Check out this link:

http://blog.laptopmag.com/how-to-change-default-apps-in-android

Hi

this code

local function showMailPicker() – Create mail options – local options = { to = “my@email.com”, subject = “some text”, body = " ", attachment = { baseDir=system.DocumentsDirectory, filename=“file.txt”, type=“text” }, } – Send mail – native.showPopup(“mail”, options) end

this function is then triggered on a touch event. but instead of getting straight to the email program on android, I get the selection menu for Facebook, Twitter, SMS, bluetooth, gmail, …

Can this be avoided?

It is designed to work like that. It’s the Android way

Check out this link:

http://blog.laptopmag.com/how-to-change-default-apps-in-android

Hi

this code

local function showMailPicker() – Create mail options – local options = { to = “my@email.com”, subject = “some text”, body = " ", attachment = { baseDir=system.DocumentsDirectory, filename=“file.txt”, type=“text” }, } – Send mail – native.showPopup(“mail”, options) end

this function is then triggered on a touch event. but instead of getting straight to the email program on android, I get the selection menu for Facebook, Twitter, SMS, bluetooth, gmail, …

Can this be avoided?

It is designed to work like that. It’s the Android way