Tag Info

New answers tagged

0

You may use HttpClient in Java ME. It's just located under a different namespace (javax.microedition.io.HttpClient). You can find some sample code in the official MID Profile documentation here


-1

Use an embedded http server - mongoose or civetweb or any of the others, they are trivially easy to implement (add a file to your build, set some options in an array, call a method to start it listening). Then you can make http requests using java, see the 'SO tutorial'


1

Either solution would work. It is a generally good idea to apply a lock when writing to such values. If you're expecting a lot of reads, then you could use ReaderWriterLockSlim to put a write lock on it, which would prevent other threads from writing the value, but it could be read with no locking whatsoever. This assumes that the value, at any point in ...



Top 50 recent answers are included