Logo Icon Logo
A Crowd-sourced Cookbook on Writing Great Android® Apps
GitHub logo Twitter logo OReilly Book Cover Art

Making a Toast in Python (Using Android Scripting Environment)

Published? false
FormatLanguage: WikiFormat

Problem:

You need to make a Toast using python (Using ASE)

Solution:

By importing the android library on the python interpreter, we can access the makeToast method

Discussion:

  • The python interpreter is running now. Type the following lines of python code on the interpreter, one by one:
<source lang='python'>
import android
droid = android.Android()
droid.makeToast("Hello, Android!")
</source>