Hi kashifrazzaqui and welcome to the Python Dibo,
It seems that the application faces some error and thus quits immediately.
To know what the error is you need to record it to a text file, and modify your code a bit.
Here when you check the Log (C:\\Log.txt) file after the application quits you will be able to find the error it face before quit.
Your main code goes here.
cla, exc, trbk = sys.exc_info()
excName = cla.__name__
excArgs = exc.__dict__["args"]
excArgs = "<no args>"
excTb = traceback.format_tb(trbk, 5)
errorString = repr(excName) + '-' + repr(excArgs) + '-' + repr(excTb) + '\n'
appuifw.note(u'Application errors, see log file for more information', "error")
file = open(u'C:\\Log.txt','a')
if __name__ == "__main__":
Yes, a python application always needs python on the device to work, so you will have to use the ensymble to merge it with your application file.And because of this the files size will obiviously increase.
Hope that helps.