If you consider installing SL4A on your phone, you have a very powerful environment to make your scripts and doing what you ask requires only a
You could even have something like this
from socket import *
import android, os, time, datetime
droid = android.Android()
UDPSock = socket(AF_INET,SOCK_DGRAM)
data,addr = UDPSock.recvfrom(4*1024)
if not data:
droid.notify(str(addr), data) #Make a notify in the bar
droid.makeToast(data) #Make a small msg
droid.dialogCreateAlert('MSG_FROM:' + str(addr),data)
droid.dialogShow() #Big on screen alert
UDPSock.close() # rly?
Code is just a PoC... actually uses python and opens port 2800 UDP on your phone, if you send a packet via udp to your phone, a msg will be displayed (3 times in 3 different ways, unless you remove some line
). You could then make your PC scripts send a packet to your phone and have your notification displayed.
Look into this