Using Socket() in Android NDK

后端 未结 3 886
盖世英雄少女心
盖世英雄少女心 2020-12-13 10:25

I have a question about using the following line in a native c program:

#include 
#include 

void testSocket()
{
    int s         


        
3条回答
  •  一向
    一向 (楼主)
    2020-12-13 11:14

    What permission do I need to access Internet from an android application?

    The part of this answer which helped me was this: You have to add this line:

     
    

    outside the application tag in your AndroidManifest.xml

提交回复
热议问题