Hi All!
Just want to ask if it is possible to let the system volume bar for android to show up whenever I adjust the volume using the android volume buttons at the side? If yes, how should I go about doing it?
Thanks
Like the image below.
Hi All!
Just want to ask if it is possible to let the system volume bar for android to show up whenever I adjust the volume using the android volume buttons at the side? If yes, how should I go about doing it?
Thanks
Like the image below.
Bumps!!
Anyone knows?
You need to return False in your key listener. Example:
[lua]local function onKeyEvent(event)
local phase = event.phase
local keyName = event.keyName
if (“back” == keyName and phase == “down”) or (“b” == keyName and phase == “down” and system.getInfo(“environment”) == “simulator”) then
– Go back
return true
end
return false --Important
end
[/lua]
Bumps!!
Anyone knows?
You need to return False in your key listener. Example:
[lua]local function onKeyEvent(event)
local phase = event.phase
local keyName = event.keyName
if (“back” == keyName and phase == “down”) or (“b” == keyName and phase == “down” and system.getInfo(“environment”) == “simulator”) then
– Go back
return true
end
return false --Important
end
[/lua]