httpconnection

None of code can establish http connection over BIS

I am new in developing Blackberry Application. In these three days, I already searched and learned in both forum and tutorial from the RIM itself. But none of them can solve my problem. >.< So. I already tried some different methods to establish http connection over BIS in 4.6. These are the...

Android HttpUrlConnection Url doesn&#39;t work on emulator

I am trying to get json object as string from this url http://digitalcollections.tcd.ie/home/getMeta.php?pid=MS4418_021 . It doesn't work I get an error after downloadUrl function. java.io.IOException: unexpected end of stream on Connection{digitalcollections.tcd.ie:80, [email protected] hostAddress=134...

program crashing at .connect() on Android, not connecting

I been trying to figure this out for hours now. I've searched for answers, but I can't find an answer. I have never bothered to ask before and this is the first time I'm asking a question. Basically what I am doing is breaking up my coding for organization purposes. The following snippet works just...

Communication between UI thread and other threads using handler

How to do inter thread communication between UI thread and background thread? I want use common handler concept here to update my UI. I have the concept as below new Thread(new Runnable() { public void run() { while (mProgressStatus < 100) { mProgressStatus = doWork(); // Update the progress bar...

It is possible to stop a thread that is connecting to URL with httpConnection.connect()?

i have a thread that is connecting to a url to obtaining some data. Sometimes the method httpConnection.connect(); taked too munch time to get the response, and i want to limit the loading dialog of this connection thread to 5 seg. I tryed adding timeouts into the code, but it doesn't work !! URL...