Cldc and midp

hi.. am new in j2me.i am doing a project in j2me.Is it possible to retrieve data from a text file and bind in to choice or list box ?

if you can use io package, the easiest thing would be to use InputStream to get the file binary, then use InputStreamReader to get the content. you then just parse the bytes using the reader and you can convert it into whatever format you needed it for.

Similar Messages

  • CLDC and MIDP check

    Is there a way to check that CLDC and MIDP code will work on a mobile or PDA? Can you install something and check?

    You can use the method System.getProperty(String parameter);
    if you want ot get the vesion of CLDC, the parameter should be "microedition.configuration".
    Then, Getting the vesrion fo MIDP uses "microedition.profiles".

  • ClDC and MIDP apllication with images?

    hi...
    I am using NetBeans for developing mobile application. I am facing some problem in emdedding high resolution images in it. After inserting those images i can brows them only up and down not horrizontally. Can any one help me??? i wouls also like to zoom in and zoom out the images. Plz help me.....

    u have to write code for scrolling it horizontally
    vertical scroll gets automatically implemented
    else u can resize the image and upload
    or u can write code to fit the image on the screen

  • J2me wireless toolkit and MIDP,CLDC

    Hi,
    does the j2me wireless toolkit ship the cldc and midp with it ?

    why email, thats a forum because there are more people interested in problems and their solution than you.
    The 2.2beta also ships with the CLDC 1.1 and MIDP 2.0. Its a must because without it, you wouldnt be able to execute anything. And you cant put the JVM, MIDP and CLDC on your phone. The only thing you need is your application. The rest is implemented in hardware (or firmware of the phone). If not, theres no way to ''manually'' put in there (this includes upgrading).
    hth
    Kay

  • Where can I find the referrence implementations for CLDC and MIDP2?

    Can anyone pls get me the implementation packgages for CLDC and MIDP2?

    Look around the downloads section of the Sun site. The file name will be something like midp-2_0-src-windows-i686.zip.
    db

  • How to install cldc and imaps

    All every one please help me, How to install the cldc and imaps.I download already but i don't know how to install them.

    All every one please help me, How to install the cldc
    and imaps.I download already but i don't know how to
    install them.Why do you post this in the algorithms section?
    Anyway, I don't know what you're talking about. I'd start looking on the website of the company that made the software. Presumably they have a FAQ-page and/or a page with installation instructions.
    Good luck.

  • J2ME and MIDP beginner questions

    Can anyone recommend editor/IDE, toolkit etc. for coding, building and testing MIDP2.0 apps/games?
    Until now I've coded a game using J2SE. I used Forte 3.0 for coding and compiling, and IE5.5 for testing.
    Now I want to code mobile games/apps using J2ME and MIDP 2.0. What software do I need? I downloaded Sun ONE studio 4 ME and wireless toolkit 2.0, but are kind of struggeling with it :)
    Regards
    Hallvard

    Ok, I found out that the toolkit compiled the .java files and could bulid the .jar and .jad files, and then test the MIDLet on the emulator.
    But what about a good editor/IDE for MIDLets? In Sun ONE studio ME i finally managed to create a HelloWorld Midlet (with new project wizard), and build and run it in the toolkit.
    I also heard that Borland JBuilder Mobile Edition was a nice IDE for J2ME/MIDLets.
    Hallvard

  • Bluetooth and MIDP-2.0 compatibility?

    Hi
    I'm very new with Java ME Platform SDK 3.0.
    It is also possible develop bluetooth application using MIDP-2.0 and
    CLDC-1.1 or only for MIDP-2.1?
    I read http://developers.sun.com/mobility/apis/articles/bluetoothintro
    but I don't know the compatibility of them.
    Fadel

    Hi.
    If you read the JSR-82 specification you find out that the Bluetooth doesn't depend on any version of MIDP.
    Check here: [http://www.jcp.org/en/jsr/summary?id=82|http://www.jcp.org/en/jsr/summary?id=82] - it's chapter 3.3.2 in latest final revision.
    Rada

  • Cldc and cdc compatibility

    help me in this
    An application deveoped in cldc/midp environment,will it run in cdc/personal profile environment
    Thanks in advance

    Hi,
    I would say yes, in Next Generation Java in Nokia platforms !
    There's a presentation about Next Generation Java in Nokia platforms given in a Forum Nokia Tech Days event last year in August. ( http://www.forum.nokia.com/info/sw.nokia.com/id/792e74ea-faf9-4ea0-8c38-840e799d628c/Next_Generation_Java_Tech_Days_Aug_2005.pdf.html ).
    There is a picture in this slide, were they have MIDP on top of CDC.
    I have this picture in my blog: http://ovenordstrom.blogspot.com/2006/03/is-j2mepersonal-profile-dead-java.html
    -ove

  • XML and MIDP

    Are there any easy to understand tutorials that just show how you connect to a server through Http, query the database and generate an XML file so that MIDP displays it ??
    I already have the database connection stuff working and http it's just that i don't understand the XML part.

    http://developers.sun.com/techtopics/mobility/midp/articles/parsingxml/index.html
    http://www.ericgiguere.com/nanoxml/index.html
    I use the ported NanoXML as a model parser. I find XParseJ too slow, especially on larger XML files.
    Next up you want to use 'astrientlabs.com' LineEnumeration:
    http://fotomica.astrientlabs.com/downloads/textwrap.jsp
    The rest is up to you. Cut and paste some code if you are having problems.

  • Palm and MIDP 2.0

    Hi,
    is it possible to run MIDP 2.0 apps on Palm?
    has neone done so so far?

    Yes, if the device is a PalmOS 5 Tungsten device or Treo 600.
    At PalmOne's site they claim they will be releasing a Treo 650 and T5 update by Dec. 17, 2004.

  • Libraries and midp

    is there a possibility to ship my libary as binary for midp?
    everytime i try to integrate a binary library my m50 Siemens emulator displays "could not launch application" so am i able to bild a new midlet upon a binary library in a jar file?
    if yes
    does this library work on every device if it uses no native methods?
    or
    how do i have to compile such a library?
    if not
    where is the statement from sun that libraries must be available in source code if they will be used in a 3rd party project?
    thanx fro answering
    christian

    Have you tryied to user Sun's emulator J2MEWTK?
    It has the 'lib' folder where the libraries are stored.
    Maybe your emulator works only with sources. Maybe it isn't able to launch binaries, but only compiling sources. This may be so because the emulators launch pure J2SE classes, and do not work with J2ME format for binaries.

  • Cldc and midlet

    hi...
    how to improve d look and feel of an application in MIDlet....like inserting background images and all?
    thanks and regards in advance.

    Is it possible to connect a database sql in cldc ,midlet application?
    No its not possible bcoz in mobile we cant but such tables databases

  • Inverse trigonmetric functions and MIDP

    The inverse (arc) trigonometric functions, which are static methods of the java.lang.Math class, are not included in MIDP. This seems arbitrary to me, since MIDP is used in robotics (viz. the SunSPOT), navigation is important in robotics, navigation requires working with angles, and the inverse trigonometric functions are the only functions that return an angle supported by the Math class. For instance, the angle between two vectors can be computed using arctan() or arctan2().
    I have worked around this problem by implementing arctan2 using the CORDIC algorithm (see http://en.wikipedia.org/wiki/CORDIC). Yet, I am still perplexed by the decision of leaving the inverse trigonometric functions out of MIDP. Can anyone provide the rationale? Is there a library class that provide these functions?

    It was a pain in the ass, but I was finally able to find a way to do it. spline interpolation was actually the easiest to understand, I just don't know where you put the values to form an equation you can use. I found this equation:
    P(t) = (1-t)^3P0 + 3(1-t)^2tP1 + 3(1-t)t^2P2 + t^3P3
    which actually gave me a headache, but, after looking at it, it actually works. The reason I need the arcsine and arccosine is for the Side Angle Side and related equations, a few have solutions such as sin(a) = ...... and I need a way to "unsine" that, which can only be done using the arcsine. But anyway, with this equation, say I have the equation solved, and it looks like sin(a) = .25. Normally you'd just arcsine .25, but when you can't, you can use that table, like you said before, that has values and their arcsines going from 0 to 1, in increments of 0, 0.00001, 0.00002, 0.00003, etc. you'd just take the precalculated arcsines of 0.24998, 0.24999,0.25001,0.25002, and plug them into the equation. Granted, if you had this table of values, you'd already have the precalcuated arcsine of .25, but I'm just giving this as an example. If I had say. 25938430289483.... then this table would be useful. Anyway, with the values plugged in, the equation would look like this:
    t = .25
    P0 = arcsine(0.24998)
    P1 = arcsine(0.24999)
    P2 = arcsine(0.25001)
    P3 = arcsine(0.25002)
    P(t) = (1-t)^3P0 + 3(1-t)^2tP1 + 3(1-t)t^2P2 + t^3P3
    if the equation is filled with the values, the result is a value near what the arcsine of .25. I don't know what the other methods you were talking about, but this works, and it works pretty well. I appreciate the help, this is actually an optimal solution, I'll just save the table as a serialized object(an ArrayList or something similar), and load it via the midlet. The table shouldn't be to large, and I'll adjust the accuracy based upon my space limitations. Thanks for the help, I can't believe this actually works!

  • A J2ME and MIDP 2 question

    2 Questions
    1. If I have a sprite on a layer but the layer manager is only showing a part of the layer and the sprite is not on that part of the screen are any resources being taken up by the sprite? If so what would be a good way to manage sprites (in this case enemies) that have a predetermined position on the much larger layer that need to be added to the layer when the screen is visible?
    2. What is the largest size I can use for a image that I am going to be using as my game area?

    1: yes, the sprite is using resources. it uses space from the offscreen buffer.
    i suppose that you are a game buff. there are two types of having bbiigg maps. one is zelda type (gbc). and the other is pokemon type(gbc). in zelda type, each screen is one layer, and you move from screen to screen by moving from layer to layer, with a 2d matrix of layers coming together to make a map.
    in pokemon type, there is one bbbbbbbbbbiiiiiiiiiigggggggggg layer through which you scroll smoothly. this is tougher. best is to have a condition for each sprite like isVisible. if it is false, suspend all animations for that sprite. if it is on the screen, start it's animation.
    You can divide this into smaller layers by using tricks like 'doors' through which you pass through to go to other layers. never have a layer too big because it will kill performance.
    for an image the largest size can be indeterminate, as long as you have the space for it on the heap. also only a part of it as large as the screen size can be displayed at once.
    hope this helps
    Arjun

Maybe you are looking for

  • I have a HP Officejet Pro 8500 wireless. Does it support "air print'?

    I just purchased an iPad2.  I have setup a wireless network in my home. My laptop, printer and Blu-ray are attached to this. The iPad2 said the wireless printer must be "air print" enabled.  I can not find anywhere there is a mention of "air print" o

  • Problem with Compaq Presario V6000 laptop

    Hi forum members! I am a newbie to this forum and i would like to introduce myself, my name is Hammy and I am from Glasgow. I have a problem with my laptop whih is a Compaq Presario V6000 running windows Vista, 32 bit product number V6254EA. A few we

  • It's 18th of September and my ipad4 says iOS 6.1.3 up to date, help please?

    Hi it's 18th of September and I want to download iOS 7 on my ipad 4, but it says iOS 6.1.3 up to date help please.

  • The photos that I change with "quick fixes" are in error in iPhoto

    I just downloaded the latest version of iphoto'11 (9.2.1) but still having an issue. After the fix (enhance or retouch or crop...), the photos appear like below screenshot in my iphoto. They are not recognized by other photo applications either. What

  • Printing out report using pdf

    I am using report 6i.. i have set the layout parameter to landscape for all three sections, header,main,trailer when I put the report on the web,using pdf, i have to use page setup to have the report print our in a landscape.. I thought that the repo