I am creating a softkeyboard for android to play around with ptrace(). I would like t开发者_C百科o set a fix process id for the application I made. Is it possible to to it so that I can play around android app with ptrace()?
You cannot do this. The usual approach is to have your application write its process ID to a file when it starts up; the other application can then read that file.
精彩评论