add getLocation and showButtons functions
This commit is contained in:
10
app_buttons_sample.lua
Normal file
10
app_buttons_sample.lua
Normal 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
|
||||
Reference in New Issue
Block a user