No worries Kostya, you have been helpful anyway many times and I appreciate it ;)
You are right, the Http cast I can deal with, for some reason the Socket one is the one that is puzzling and not working. I will play around with it and I will post a soln (hopefully) in case anyone else runs into this. Thanks again On Sep 10, 11:24 am, Kostya Vasilyev <[email protected]> wrote: > Don't know off hand, sorry. > > Your code, however, appears to expect http protocol at least in one case > out of the two: > > streamCon = (HttpConnection) Connector.open(strURL, Connector.READ); > > Note that cast to HttpConnection. > > -- Kostya > > 10.09.2010 18:56, kypriakos пишет: > > > I found out that ConnectionNotFound exception thrown when opening a > > stream-based socket could be thrown when the protocol indicated in > > the Connection class is not supported - does Android support all > > of the following? > > > http, comm, datagram, file, socket etc? I think yes but the exception > > does not seem to make sense. Thanks. > > > On Sep 2, 11:58 pm, kypriakos<[email protected]> wrote: > >> Hey Kostya, > > >> are you referring to the apache http API included in Android? I will > >> give it > >> a shot. I downloaded and included the J2ME-polish that actually does > >> run > >> under Android but I am getting a Connection Not Found exception thrown > >> when I run that piece of code in the emulator. I can actually connect > >> to > >> the location using the browser directly so something is not getting > >> set > >> right in that config ... > > >> Thanks > > >> On Sep 1, 3:34 pm, Kostya Vasilyev<[email protected]> wrote:> The > >> code seems to be really simple, establishing an HTTP connection, > >>> and getting raw streams for reading and writing. > >>> Replace javax.microedition classes with those included with Android. > >>> -- Kostya > >>> 01.09.2010 23:26, kypriakos пишет: > >>>> Hi all - trying this one again .. any ideas? If the Connector class > >>>> was not > >>>> created in the original Android Java, what else can be used in its > >>>> place? > >>>> 3rd Party software or any other part of the API? Thanks. > >>>> On Aug 26, 4:47 pm, kypriakos<[email protected]> wrote: > >>>>> I am pretty much trying to solve these issues: > >>>>> import javax.microedition.io.Connector; > >>>>> socketCon = (SocketConnection) Connector.open(strURL, > >>>>> Connector.READ_WRITE); > >>>>> and > >>>>> import javax.microedition.io.StreamConnection; > >>>>> streamCon = (SocketConnection) Connector.open(strURL, > >>>>> Connector.READ); > >>>>> streamCon = (HttpConnection) Connector.open(strURL, > >>>>> Connector.READ); > >>>>> Any ideas would be greatly appreciated. > >>>>> Thanks > >>> -- > >>> Kostya Vasilyev -- WiFi Manager + pretty widget > >>> --http://kmansoft.wordpress.com > > -- > Kostya Vasilyev -- WiFi Manager + pretty widget > --http://kmansoft.wordpress.com -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

