Results 1 to 1 of 1
- 03-19-2004, 12:27 AM #1gilganticGuest
I get an "Invalid file" in my MIDlet when I tried to read a .txt file,
using Connection.open(). My phone is a Nokia 3595 with mMode
technology by AT&T. Here is my source code in my MIDlet:
try
{
// Open File text file
String filename = "http://www.someurl.com/File.txt";
HttpConnection connection =
(HttpConnection)Connector.open(filename);
InputStream inputStream = connection.openInputStream();
connection.close(); // doesn't close input stream!
} catch (){
ex.printStackTrace();
}
It fails when I trying any combination of Connector.open(filename). I
can connect to my server, because that is how I download app. I also,
have txt mime types defined as plain/text. Using the J2ME emulator my
code works.
What to do?
› See More: J2ME: Invalid file using Connection.open()
Similar Threads
-
How-to: HTC One: Connectivity Settings (Pair with a Bluetooth Device, Receive Files Using Bluetooth)
HTC One - Nokia
- Samsung
- Games
- alt.cellular.nokia
Not getting the horn
in Chit Chat