views:

105

answers:

0

Hi, I am implementing threading with Blackberry for the first time. I want to read data continuosly from server,i.e. I have to always llisten to server for incoming data.

I am opening DataInputStream to read data. Whenever the thread executes 2nd time,I get null pointer exception while opening datainputstream...

How do I solve this?