Hi Sir
I’m new on develop JNI and now using “NVIDIA CodeWorks for Android”.
When i create a “Android Hello World Demo - Nsight Tegra” project, it works on “Visual Studio Emulator for Android” and my mobile (using usb debug).
But i’m trying to create a simple socket app using JNI, first i calling “int _sock = socket(AF_INET, SOCK_STREAM, 0);”, every time i got a return -1…i’m really don’t know why ?
i’ve already added “” in AndroidManifest.xml
Could someone help me…
Sorry for everyone
i’ve done a stupid thing, the “permission” should be put in a correct place like below…and it works
<?xml version="1.0" encoding="utf-8"?>
<application android:label="@string/app_name">
<activity android:name=".helloworld"
android:label="@string/app_name">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
</application>
wow,you are so niubi,ni you chuizi meide?