UDP-Networking - within the Emulator

Basic Tutorials concerning: GUI, Views, Activites, XML, Layouts, Intents, ...

Re: UDP-Networking - within the Emulator

Postby Makaceli » Tue Dec 13, 2011 6:47 pm

I'm new to JAVA and Android, sorry for dumb questions, and for my poor English :)

When i try to compile the code, it says that i must override the run method in both Server and Client classes. Or try to delete the @Override parameter it says :)

When i delete the @Override parameter, i can compile the code but it gives "java.net.SocketException : Permission Denied" error.

How can i resolve the problem ?
Makaceli
Freshman
Freshman
 
Posts: 2
Joined: Tue Dec 13, 2011 6:40 pm

Top

Re: UDP-Networking - within the Emulator

Postby Makaceli » Tue Dec 13, 2011 7:37 pm

I also added the

<user-permission android:name="android.permission.INTERNET" />
<user-permission android:name="android.permission.NETWORK" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.CHANGE_WIFI_MULTICAST_STATE" />

to the manifest.xml .
Makaceli
Freshman
Freshman
 
Posts: 2
Joined: Tue Dec 13, 2011 6:40 pm

Top
Previous

Return to Novice Tutorials

Who is online

Users browsing this forum: MickeyMazariegos, WilsonMilich and 7 guests