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

Creating notifications in ASE

Author: Rachee Singh
Published? false -- FormatLanguage: W

Problem:

You need to create a notification using python in Android Scripting Environment

Solution:

ASE provides notify method to create notifications.

Discussion:

  • Add a new python script in your ASE app. Lets name it notification.py.

  • Lets add in this tiny piece of code to notification.py
import android

droid = android.Android()

droid.notify('My First Notification!', 'Hello World!')

  • Press the menu button and choose 'Save and Run' from the menu.
  • And this is how it looks:

No records found.