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)Back to Android Cookbook Home | Up to Chapter: Other Programming Languages

Author: Rachee Singh ('racheesingh')
In Published Edition? No
FormatLanguage: WikiFormat

Making a Toast in Python (Using Android Scripting Environment)

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

<source lang='python'>
import android
droid = android.Android()
droid.makeToast("Hello, Android!")
</source>

See Also