This page shows some Py4A snippets and examples.
- tested/in release
import android
droid = android.Android()
droid.makeToast("Hello, Android!")
print("Hello World!")
- tested eventWait() will block until an event occurs or an (optional) timeout (in ms) is exceeded.
import android
droid = android.Android()
droid.startTrackingPhoneState()
try:
print(droid.eventWait(2000))
finally:
droid.stopTrackingPhoneState()
need Skype app.
import android
username = "user to call"
droid = android.Android()
i = droid.makeIntent("android.intent.action.VIEW", "skype://" + username)
droid.startActivityIntent(i)