How to use unix pipes in Android

前端 未结 2 1965
天涯浪人
天涯浪人 2021-02-04 12:40

I need to send some data to a C program from my app in Android, and I think about using pipes. I read that Java can access to existing pipes (and open them as if it\'s a normal

2条回答
  •  情深已故
    2021-02-04 13:32

    I think you can use ParcelFileDescriptor.createPipe()

    It will return an array of pipe for read and write. For more information, visit the developers website.

提交回复
热议问题