2

I'm using android scripting environment with python (ASE), and I'd like to terminate the shell executing the script when the script terminates. Is there a good way to do this?

I have tried executing on the last line: os.system( 'kill %d' % os.getppid() )

but to no avail.

Omer
  • 21
  • 1

2 Answers2

1

You should use android.exit().

Macarse
  • 91,829
  • 44
  • 175
  • 230
0

My guess is that the above answer ought to be android.Android().exit()

Jaap Versteegh
  • 761
  • 7
  • 15