• Post Reply Bookmark Topic Watch Topic
  • New Topic

Server Discovery using UDP Packet Broadcast-Null Pointer Exception in Android  RSS feed

 
vyshak vijayan
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I use the following code to send UDP Packets to a Server for Server Discovery.This code works fine on PC.But when it comes to Android Device there is a Null Pointer Exception that crashes the App.Please Advice.


Android Side:




I keep getting this exception


UPDATE :

Have the following permissions in Manifest


 
Ron McLeod
Bartender
Posts: 1603
232
Android Angular Framework Eclipse IDE Java Linux MySQL Database Redhat TypeScript
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
vyshak vijayan wrote:UPDATE :

Have the following permissions in Manifest



Is it working now?
 
vyshak vijayan
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ron McLeod wrote:
vyshak vijayan wrote:UPDATE :

Have the following permissions in Manifest



Is it working now?


No its not.. I forgot to add this in the first post ... so added as an Update.Currently the Application is Crashing.
Please advice.
 
vyshak vijayan
Greenhorn
Posts: 8
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Solved this issue.Thanks for your help.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!