1) I made a J2ME app using LWUIT in which I am accessing internet to get info from my server.... 2) The app is perfectly connecting to my sever on Nokia, Android handsets 3) But when the same app is run on Blackberry ....I get NullPointer exception during httpconnection... 4) The code snippet is as follows
import javax.microedition.io.Connector;
import javax.microedition.io.HttpConnection;
StringBuffer b = new StringBuffer();
InputStream is = null;
private HttpConnection connection;
try
{
connection=(HttpConnection) Connector.open("http://curiousinc.in/ipl4app/LiveMatch.txt");
is = connection.openInputStream();
}
5) Now why is this code not working on BB???.....I compiled BB jar & cod file using netbeans & BB SDK v4.6