Creating notifications in ASE
Published? false
FormatLanguage: WikiFormat
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: