Reputation: 21
I am working on a android project and I need to connect the gPhone with the PC using UDP socket. The same operation, sending a message to from gPhone to the PC, returns different results in different time: Sometimes succeeded and sometimes throws a SocketException
(The system call was cancelled).
Can anyone tell me what possibly results in this SocketException
?
Upvotes: 2
Views: 507
Reputation: 93163
Add this to your app's manifest:
<uses-permission android:name="android.permission.INTERNET" />
Upvotes: 2