Hi,
I want my app do be launched from the android image gallery or whereever a user selects an image and opens the share with dialog.
I already managed that my app will show up in the share with dialog and my app will also launch on that request but how will I get the image that the user wants to share with my app ??
i tried to read the launchArgs but without any success.
Some ideas on that?
thx
here is a code snippet of my main.lua
local function handleLaunch(event)
if (event and event.url) then
local url = event.url
if (string.sub(url, 1, 7) == “file://”) then – handle file
local alert = native.showAlert( “Got file url”, url, { “OK” })
else
local alert = native.showAlert( “Got url”, url, { “OK” })
end
end
end
handleLaunch(launchArgs)