Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3441010
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T08:30:01+00:00 2026-05-18T08:30:01+00:00

I just downloaded the Java ME Platform SDK 3.0 and created my frist Midlet

  • 0

I just downloaded the Java ME Platform SDK 3.0 and created my frist Midlet (from some Oracle Tutorial). Which works fine on the Emulator. When I deploy it on my Nokia N97 I can run it but as soon that I press “Connect” and allow to proceed I get a IOException: -1

Here is the code:

package hello;
import java.io.*;
import javax.microedition.io.*;
import javax.microedition.midlet.*;
import javax.microedition.lcdui.*;

public class HelloMIDlet extends MIDlet implements CommandListener {

...

private void connect() {

HttpConnection hc = null;
InputStream in = null;
String url = getAppProperty("HitMIDlet.URL");

try {
  hc = (HttpConnection)Connector.open("http://www.google.ch"); 
  in = hc.openInputStream();
  byte[] raw = new byte[10];
  int length = in.read(raw);
  in.close();
  hc.close();

  // Show the response to the user.
  String s = new String(raw, 0, length);
  mMessageItem.setText(s);

}
catch (IOException ioe) {
  mMessageItem.setText( ioe.toString());
}
mDisplay.setCurrent(mMainForm);
}
}
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-18T08:30:02+00:00Added an answer on May 18, 2026 at 8:30 am

    You have working GPRS or internet connectivity in your phone + for your application ?

    In many phone we have to set access point for app differently double check it

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I just downloaded MVC and I am going through a tutorial. Everything goes fine
I downloaded Java source code of some project that works with Maven. After checking
I have downloaded Java API documentation from http://www.oracle.com/technetwork/java/javase/downloads/index.html#docs and have supposedly attached it to
Im trying to download java for my MAC, but I dont know which platform
Ok, I am beginner in JAVA. I have just started. I downloaded Java SE
I just downloaded Eclipse several hours ago, and needed to add Java3D to the
I just downloaded the ASP.NET MVC beta and wanted to walk through the quickstarts
I just downloaded the ASP.NET MVC beta and the templates are not StyleCop compliant.
I just downloaded MonoDevelop for my Mac, but I cannot figure out how to
I've just downloaded the ASP.MVC MSI package, but the installation fails with the There

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.