add getLocation and showButtons functions

This commit is contained in:
Evgeny
2021-07-29 10:34:59 +03:00
parent a4803268de
commit 51cf025a14
3 changed files with 22 additions and 4 deletions

10
app_buttons_sample.lua Normal file
View File

@@ -0,0 +1,10 @@
function onResume()
appsNames = { "Telegram", "WhatsApp", "Google PLay" }
appsPkgs = { "org.telegram.messenger.web", "com.whatsapp", "com.android.vending" }
ui:showButtons(appsNames)
end
function onClick(idx)
system:openApp(appsPkgs[idx])
end